Left 4 Dead 2

Left 4 Dead 2

Menu Framework (Dev Preview)
shqke  [developer] 2 Mar, 2017 @ 9:46am
Notes
Config files
Unsupported[www.l4d.com]

Aliases
It's possible to make a shortcut for a bunch of commands. Usage:
alias AliasName "command1; command2; command3; ..."

Test scripts
You can use them to partially replace a CFG functionality. Located in testscripts folder. They might have any extension name, though they've been stated to be .vtest files. Inside testscript double quotes with ";" have no effect, for example - it's impossible to define alias with more than one command. Last symbol in testscript will be ignored - make sure to add a line break at the end of the file.

Commands supported:
Execute a specified file located relative to testscripts folder. Usage:
Test_StartScript [filename]

Roll the dice and maybe run the command following the percentage chance. Usage:
Test_RandomChance [chance, 0-100] [command]

Delay execution of following testscript commands for a given number of seconds. Usage:
Test_Wait [delay in seconds]

Checkpoints
Can be used to execute commands on specific named event - checkpoint. Checkpoints are fired in-game.

Setup a "endframe" checkpoint. Following commands will be executed at the end of the current frame.
Test_RunFrame
Last edited by shqke; 2 Mar, 2017 @ 10:54am