diff --git a/VScript-in-Mapbase.md b/VScript-in-Mapbase.md index e36f030..5b46d99 100644 --- a/VScript-in-Mapbase.md +++ b/VScript-in-Mapbase.md @@ -1,5 +1,6 @@ *** *** +*** # NOTICE @@ -11,6 +12,29 @@ Mapbase supports a custom implementation of VScript based off of the Alien Swarm SDK and reductor's Squirrel integration. VScript is a scripting layer which allows external scripts to be used as an extension of map logic. -Mapbase's VScript is more limited and primitive compared to the original VScript in Valve's games, as a lot of the original VScript code is inaccessible. Some common global methods and data types are not (yet) implemented, but since the Alien Swarm SDK includes entity script descriptions, most of the entity implementations are fully functional. +Mapbase's VScript is more limited and primitive compared to the original VScript in Valve's games, as a lot of the original VScript code is inaccessible. Some common global methods and data types are not *(yet)* implemented, but since the Alien Swarm SDK includes entity script descriptions, most of the entity implementations are fully functional. -Mapbase also adds its own \ No newline at end of file +**Note:** Mapbase's implementation of VScript does **not** use any leaked code whatsoever. + +A lot of the documentation for VScript on the VDC applies to Mapbase, but Mapbase also extends the VScript support in various ways, mostly to make it able to operate upon NPCs and other Source 2013/Half-Life 2 conventions. Those changes will be documented here. + +## Classes + +### CBaseCombatCharacter +The base class shared by players and NPCs. + +| Signature | Description | +|:------------- | :-----| +| *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. | + +### CAI_BaseNPC + +### CAI_BaseActor + +### CAI_Network + +*** + +### CLogicExternalData