From e818b7d68119e86f8efe05563ea6bb559d20fe1e Mon Sep 17 00:00:00 2001 From: Blixibon Date: Thu, 21 May 2020 09:40:15 -0500 Subject: [PATCH] Added all CBaseCombatCharacter functions so far --- VScript-in-Mapbase.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/VScript-in-Mapbase.md b/VScript-in-Mapbase.md index 5b46d99..b648ccb 100644 --- a/VScript-in-Mapbase.md +++ b/VScript-in-Mapbase.md @@ -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