mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-23 20:27:57 +03:00
Updated VScript in Mapbase (markdown)
parent
15f129c5b5
commit
406a99ea18
@ -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
|
||||
**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
|
||||
|
Loading…
x
Reference in New Issue
Block a user