diff --git a/VScript-in-Mapbase.md b/VScript-in-Mapbase.md index 4b97d8b..79ea8ce 100644 --- a/VScript-in-Mapbase.md +++ b/VScript-in-Mapbase.md @@ -29,6 +29,9 @@ Mapbase's implementation of VScript does **not** use any leaked code whatsoever. * [CAI_Network](VScript-in-Mapbase#CAI_Network) * [CAI_Expresser](VScript-in-Mapbase#CAI_Expresser) * [CLogicExternalData](VScript-in-Mapbase#CLogicExternalData) + * [Modified VScript Classes](VScript-in-Mapbase#Modified-VScript-Classes) + * [CBaseEntity](VScript-in-Mapbase#CBaseEntity) + * [CBasePlayer](VScript-in-Mapbase#CBasePlayer) *** @@ -81,10 +84,15 @@ The base class shared all NPCs derive from. | *Vector* GetEnemyLKP()| Get the last known position of the NPC's current enemy. | | *handle* FindEnemyMemory()| Get information about the NPC's current enemy. | | *int* GetNPCState()| Get the NPC's current state. | +| *int* CapabilitiesGet()| Get the capabilities the NPC currently possesses. | +| *void* CapabilitiesAdd(int *capabilities*)| Add capabilities to the NPC. | +| *void* CapabilitiesRemove(int *capabilities*)| Remove capabilities from the NPC. | +| *void* CapabilitiesClear()| Clear capabilities for the NPC. | | *string* GetSchedule()| Get the NPC's current schedule. | | *string* GetTask()| Get the NPC's current task. | | *void* SetSchedule(string *schedule*)| Set the NPC's current schedule. | | *void* ClearSchedule(string *reason*)| Clear the NPC's current schedule for the specified reason. | +| *bool* IsMoving()| Check if the NPC is moving. | | *handle* GetExpresser()| Get a handle for this NPC's expresser. | | *bool* IsCommandable()| Check if the NPC is commandable. | | *bool* IsInPlayerSquad()| Check if the NPC is in the player's squad. | @@ -138,3 +146,21 @@ An entity which loads keyvalues from an external data file. | *void* SetKeyValueBlock(handle *keyvalues*)| Sets the current external data block from a CScriptKeyValues object. | | *void* LoadFile()| Loads external data from the external file. | | *void* SaveFile()| Saves the external data to the external file. | + +## Modified VScript Classes +These are classes that were already exposed to VScript, but have new features or changes included with Mapbase. + +### CBaseEntity +Root class of all server-side entities. + +| Signature | Description | +|:------------- | :-----| +| *int* Classify()| Get Class_T class ID | + +### CBasePlayer +The player entity. + +| Signature | Description | +|:------------- | :-----| +| *handle* GetExpresser()| Get a handle for this player's expresser. | +