Updated VScript in Mapbase (markdown)

Blixibon 2020-05-25 00:35:40 -05:00
parent 47632deba3
commit 0ba1c6ecfe

@ -16,6 +16,8 @@ Mapbase's VScript is more limited and primitive compared to the VScript in Valve
Mapbase's implementation of VScript does **not** use any leaked code whatsoever. Mapbase's implementation of VScript does **not** use any leaked code whatsoever.
For more information on VScript itself, [click here](https://developer.valvesoftware.com/wiki/VScript) to see its article on the Valve Developer Community.
*** ***
### Contents ### Contents
@ -45,11 +47,23 @@ Mapbase's implementation of VScript does **not** use any leaked code whatsoever.
# Known incompatibilities with Valve's VScript # Known incompatibilities with Valve's VScript
Some features are not available in Mapbase's implementation of VScript, although some may be available in the future. #### [List of L4D2 Script Functions](https://developer.valvesoftware.com/wiki/List_of_L4D2_Script_Functions)
#### [List of Portal 2 Script Functions](https://developer.valvesoftware.com/wiki/List_of_Portal_2_Script_Functions)
* Most of the global functions (e.g. `SpawnEntityFromTable`) are not yet available because many of them are game-specific and are not included in the Alien Swarm SDK. Some features from Valve's games are not available in Mapbase's implementation of VScript, although some may be available in the future.
* Some singletons like `Convars` or `NetProps` are not available. (`Entities` *is* available)
* Most of the global functions are not yet available because many of them are game-specific and are not included in the Alien Swarm SDK.
* Notable functions which are in Mapbase's implementation:
* `AddThinkToEnt`
* `EntIndexToHScript`
* `PrecacheEntityFromTable`
* `SpawnEntityFromTable`
* Some singletons are not yet available.
* Notable singletons which are in Mapbase's implementation:
* `Entities`
* `Convars`
* It is currently not possible to use in-game documentation methods, such as `script_help`. * It is currently not possible to use in-game documentation methods, such as `script_help`.
* In the source code, the following `IScriptVM` functions are currently unsupported: `ConnectDebugger`, `DisconnectDebugger`, `AddSearchPath`, `Frame`, `DumpState`, `SetOutputCallback`, `SetErrorCallback`
# Documentation # Documentation