mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-24 04:37:57 +03:00
Added modified classes
parent
0b7d7c2c2a
commit
0ef4e51716
@ -29,6 +29,9 @@ Mapbase's implementation of VScript does **not** use any leaked code whatsoever.
|
|||||||
* [CAI_Network](VScript-in-Mapbase#CAI_Network)
|
* [CAI_Network](VScript-in-Mapbase#CAI_Network)
|
||||||
* [CAI_Expresser](VScript-in-Mapbase#CAI_Expresser)
|
* [CAI_Expresser](VScript-in-Mapbase#CAI_Expresser)
|
||||||
* [CLogicExternalData](VScript-in-Mapbase#CLogicExternalData)
|
* [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. |
|
| *Vector* GetEnemyLKP()| Get the last known position of the NPC's current enemy. |
|
||||||
| *handle* FindEnemyMemory()| Get information about the NPC's current enemy. |
|
| *handle* FindEnemyMemory()| Get information about the NPC's current enemy. |
|
||||||
| *int* GetNPCState()| Get the NPC's current state. |
|
| *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* GetSchedule()| Get the NPC's current schedule. |
|
||||||
| *string* GetTask()| Get the NPC's current task. |
|
| *string* GetTask()| Get the NPC's current task. |
|
||||||
| *void* SetSchedule(string *schedule*)| Set the NPC's current schedule. |
|
| *void* SetSchedule(string *schedule*)| Set the NPC's current schedule. |
|
||||||
| *void* ClearSchedule(string *reason*)| Clear the NPC's current schedule for the specified reason. |
|
| *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. |
|
| *handle* GetExpresser()| Get a handle for this NPC's expresser. |
|
||||||
| *bool* IsCommandable()| Check if the NPC is commandable. |
|
| *bool* IsCommandable()| Check if the NPC is commandable. |
|
||||||
| *bool* IsInPlayerSquad()| Check if the NPC is in the player's squad. |
|
| *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* SetKeyValueBlock(handle *keyvalues*)| Sets the current external data block from a CScriptKeyValues object. |
|
||||||
| *void* LoadFile()| Loads external data from the external file. |
|
| *void* LoadFile()| Loads external data from the external file. |
|
||||||
| *void* SaveFile()| Saves the external data to 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. |
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user