diff --git a/VScript-in-Mapbase.md b/VScript-in-Mapbase.md index 87bbde9..afe8ae7 100644 --- a/VScript-in-Mapbase.md +++ b/VScript-in-Mapbase.md @@ -23,6 +23,7 @@ For more information on VScript itself, [click here](https://developer.valvesoft ### Contents * [Known incompatibilities with Valve's VScript](VScript-in-Mapbase#Known-incompatibilities-with-Valves-VScript) +* [Tutorials](VScript-in-Mapbase#Tutorials) * [Documentation](VScript-in-Mapbase#Documentation) * [Global Functions](VScript-in-Mapbase#Global-Functions) * [New VScript Classes](VScript-in-Mapbase#New-VScript-Classes) @@ -40,6 +41,7 @@ For more information on VScript itself, [click here](https://developer.valvesoft * [CLogicExternalData](VScript-in-Mapbase#CLogicExternalData) * [Modified VScript Classes](VScript-in-Mapbase#Modified-VScript-Classes) * [CBaseEntity](VScript-in-Mapbase#CBaseEntity) + * [Hooks](VScript-in-Mapbase#Hooks-2) * [CBasePlayer](VScript-in-Mapbase#CBasePlayer) * [CScriptKeyValues](VScript-in-Mapbase#CScriptKeyValues) @@ -65,6 +67,12 @@ Some features from Valve's games are not available in Mapbase's implementation o * 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` +# Tutorials + +A few tutorials are available for using VScript in Mapbase. + +* [Basic I/O Tutorial](https://github.com/mapbase-source/source-sdk-2013/wiki/VScript-:-Basic-I:O-Tutorial) + # Documentation 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. @@ -361,6 +369,14 @@ Root class of all server-side entities. *** +#### Hooks + +| Signature | Description | +|:------------- | :-----| +| *bool* Input*InputName*()| Called when the entity receives an input from the I/O system. [This already existed in L4D2](https://developer.valvesoftware.com/wiki/List_of_L4D2_Script_Functions#Hooks), but Mapbase adds a `parameter` value which contains the input's parameter. | + +*** + ### CBasePlayer The player entity.