sm_info - "Show debug map info".
sm_horde_pause <'time'> - "Pause/Unpause infinite horde (if command executed without argument (time) by default it equals 0.0 that means infinite pause)".
Forwards:
Spoiler
PHP Code:
// Starts when infinite horde event has started
forward void OnInfiniteHordeStart();
// Starts when infinite horde event has stopped
forward void OnInfiniteHordeEnd();
// Starts when default infinite horde event script has been blocked
forward void OnInfiniteHordeBlock();
// Starts when default infinite horde event script has been overridden
forward void OnInfiniteHordeOverride(char[] defaultScript, char[] overrideScript);
// Starts when active infinite horde has been paused
forward void OnInfiniteHordePause(float pause_duration, float pause_start_time);
// Starts when active infinite horde has been unpaused
forward void OnInfiniteHordeUnpause(float pause_end_time);
Natives:
Spoiler
PHP Code:
// Get current status of infinite horde
// returns <true> if infinite horde is currently active, <false> otherwise
native bool IsInfiniteHordeActive();
// Get current status of active infinite horde
// returns <true> if infinite horde is currently paused, <false> otherwise
native bool IsInfiniteHordePaused();
// Pause active infinite horde
// <pause_duration> - the time during which the pause will be valid (default 0.0 - means infinite pause)
// no return
native int PauseInfiniteHorde(float pause_duration = 0.0);
// Unpause active infinite horde
// no return
native int UnpauseInfiniteHorde();
Changelog:
Spoiler
Code:
1.0.0. (12 Oct. 2022)
- Initial release.
Installation:
Put l4d2_infinite_horde_control.cfg in sourcemod/configs/ folder.
Put l4d2_infinite_horde_control.inc in sourcemod/scripting/include folder.
Put colors.inc in sourcemod/scripting/include folder.