Fires a list of commands at the start and end of a round and when sudden death begins.
Thanks to Milo|/Chris-_- for the sudden death fix.
Installation:
Put the .smx in the plugins folder with all your other plugins.
Cvars:
sm_rtrigs "1" - Enable/disable plugin
sm_rtrigs_start "" - Commands to execute when a round starts.
sm_rtrigs_end "" - Commands to execute when a round ends.
sm_rtrigs_sd "" - Commands to execute when sudden death starts.
sm_rtrigs_wfp "" - Commands to execute when the waiting for players period begins.
sm_rtrigs_mapend "" - Commands to execute on map end.
sm_rtrigs_notify "sv_tags" - Cvars to remove the FCVAR_NOTIFY flag from
Commands:
sm_printca <msg> - Print a message to chat.
sm_printct <msg> - Print a center text message.
sm_rtrigs_cvar <cvar> <value> - Changes <cvar> to <value>. (server only)
Changes:
21/8/09 - 1.10 Will exec sm_rtrigs_mapend in OnMapEnd if needed
14/6/09 - 1.9 Added sm_rtrigs_mapend (code from
here)
31/3/09 - 1.8 Added sm_rtrigs_cvar
29/3/09 - 1.7 Adds sm_rtrigs_wfp and makes sm_rtrigs_notify update cvars when it changes
27/2/09 - 1.6 Adds TrimString for convenience
21/2/09 - 1.5 Changes convar flags on map change
1/2/09 - 1.4 Sudden death fix
14/12/08 - 1.3 Added removal of notify tags to specified cvars and added sm_printca
4/12/08 - 1.2 Renamed to Round Triggers and changed plugin to execute a list of commands
1/12/08 - 1.1 Added option to enable during sudden death
30/11/08 - 1.0 Initial release
Example:
Code:
sm_rtrigs_end "mp_friendlyfire 1, tf_weapon_criticals 1, sm_printca FF and crits enabled for end of round rampage!"
sm_rtrigs_start "mp_friendlyfire 0, tf_weapon_criticals 0; sm_rtrigs_cvar tf_avoidteammates 1"
sm_rtrigs_notify "sv_tags, mp_friendlyfire, tf_weapon_criticals"
sm_rtrigs_wfp "sm_rtrigs_cvar tf_avoidteammates 0"