Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Callbacks

Sw1ft edited this page Aug 10, 2021 · 3 revisions

Configuration files

All .cfg files will be executed from directory left4dead2/cfg/left4tas/

tas_round_start.cfg

Executed when round was (re)started

tas_map_load.cfg

Executed when map was loaded from command: map

tas_intro_finish.cfg

Executed when intro was finished

tas_server_transition.cfg

Server's transition to next level was finished (still in load for clients)

tas_map_transition.cfg

First player was fully loaded during transition

tas_segment_finish.cfg

Executed when segment was finished from level transition or survivors were escaped

tas_plugin_load.cfg

Executed when the plugin was loaded

VScripts

Server module calls VScript function Left4TAS_Callbacks from root table

Left4TAS_Callbacks

This function takes 1 argument: segment type (number of callback)

Callbacks:

L4TAS_CB_ROUND_RESTART <- 0;
L4TAS_CB_MAP_LOADED <- 1;
L4TAS_CB_INTRO_FINISHED <- 2;
L4TAS_CB_SERVER_TRANSITION_FINISHED <- 3;
L4TAS_CB_TRANSITION_FINISHED <- 4;
L4TAS_CB_TIMER_STARTED <- 5;
L4TAS_CB_TIMER_STOPPED <- 6;

Signature:

void Left4TAS_Callbacks(int type)
Clone this wiki locally