mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-23 20:27:57 +03:00
Added all CBaseCombatCharacter functions so far
parent
406a99ea18
commit
e818b7d681
@ -28,6 +28,21 @@ The base class shared by players and NPCs.
|
||||
| *handle* GetActiveWeapon()| Get the character's active weapon entity. |
|
||||
| *handle* GetWeapon(int *index*)| Get a specific weapon in the character's inventory. |
|
||||
| *handle* FindWeapon(string *classname*)| Find a specific weapon in the character's inventory by its classname. |
|
||||
| *Vector* ShootPosition()| Get the character's shoot position. |
|
||||
| *void* DropAllWeapons()| Make the character drop all of its weapons. |
|
||||
| *int* GetAmmoCount(string *type*)| Get the ammo count of the specified ammo type. |
|
||||
| *void* SetAmmoCount(string *type*, int *count*)| Set the ammo count of the specified ammo type. |
|
||||
| *int* GetRelationship(handle *target*)| Get a character's relationship to a specific entity. |
|
||||
| *int* GetRelationPriority(handle *target*)| Get a character's relationship priority for a specific entity. |
|
||||
| *void* SetRelationship(handle *target*, int *disposition*, int *priority*)| Set a character's relationship with a specific entity. |
|
||||
| *handle* GetVehicleEntity()| Get the entity for a character's current vehicle if they're in one. |
|
||||
| *Vector* BodyAngles()| Get the body's angles. |
|
||||
| *Vector* BodyDirection2D()| Get the body's 2D direction. |
|
||||
| *Vector* BodyDirection3D()| Get the body's 3D direction. |
|
||||
| *Vector* HeadDirection2D()| Get the head's 2D direction. |
|
||||
| *Vector* HeadDirection3D()| Get the head's 3D direction. |
|
||||
| *Vector* EyeDirection2D()| Get the eyes' 2D direction. |
|
||||
| *Vector* EyeDirection3D()| Get the eyes' 3D direction. |
|
||||
|
||||
### CAI_BaseNPC
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user