Updated VScript in Mapbase (markdown)

Blixibon 2020-05-25 01:17:49 -05:00
parent 82276183a6
commit 287fe35fe5

@ -41,7 +41,7 @@ For more information on VScript itself, [click here](https://developer.valvesoft
* [CLogicExternalData](VScript-in-Mapbase#CLogicExternalData) * [CLogicExternalData](VScript-in-Mapbase#CLogicExternalData)
* [Modified VScript Classes](VScript-in-Mapbase#Modified-VScript-Classes) * [Modified VScript Classes](VScript-in-Mapbase#Modified-VScript-Classes)
* [CBaseEntity](VScript-in-Mapbase#CBaseEntity) * [CBaseEntity](VScript-in-Mapbase#CBaseEntity)
* [Hooks](VScript-in-Mapbase#Hooks-2) * [Hooks](VScript-in-Mapbase#Hooks_2)
* [CBasePlayer](VScript-in-Mapbase#CBasePlayer) * [CBasePlayer](VScript-in-Mapbase#CBasePlayer)
* [CScriptKeyValues](VScript-in-Mapbase#CScriptKeyValues) * [CScriptKeyValues](VScript-in-Mapbase#CScriptKeyValues)
@ -105,6 +105,7 @@ The base class shared by players and NPCs.
| *handle* FindWeapon(string *classname*)| Find a specific weapon in the character's inventory by its classname. | | *handle* FindWeapon(string *classname*)| Find a specific weapon in the character's inventory by its classname. |
| *Vector* ShootPosition()| Get the character's shoot position. | | *Vector* ShootPosition()| Get the character's shoot position. |
| *void* DropAllWeapons()| Make the character drop all of its weapons. | | *void* DropAllWeapons()| Make the character drop all of its weapons. |
| *void* EquipWeapon()| Make the character equip the specified weapon. If they don't already own the weapon, they will acquire it instantly. |
| *int* GetAmmoCount(string *type*)| Get the ammo count of the specified ammo type. | | *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. | | *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* GetRelationship(handle *target*)| Get a character's relationship to a specific entity. |