GunGame Time
Description:
Enables and disables
GunGame:SM and alternative mapcycle in specified hours.
Also, executes a config for gungame (/cstrike/cfg/sourcemod/ggtime_exec.cfg).
ConVars:
Code:
ggtime_altmapcycle (default: 1 ) - To use alternative mapcycle (ggmapcycle.txt, in /cstrike) or not
ggtime_starttime (def: 22 ) - Hour to start GG
ggtime_stoptime (def: 8 ) - Hour to stop GG
ggtime_command (def: "gg_enable" ) - Command to start GG
Changelog:
Code:
1.0.0 (alpha)
*Initial release
1.0.1 (alpha)
*Fixed major bug - the plugin tried to run gungame all the time ;)
+Added checking if alternative mapcycle exists
1.0.2 (alpha)
*Fixed checking for alternative mapcycle file, the old version would never find it
1.1.0 (alpha)
*Fixed CVar handles using (suggested by ~Berni, thanks)
*Fixed checking the time
+added executing the config instead of just running some commands
1.2.0 (alpha)
+added checking if the next map will be in gungame mode
+included maplists.cfg in the .zip - map lists everywhere will be the same as the mapcycle
1.2.1(beta)
*Fixed changing mapcycle file
*Fixed checking if config to execute exist
To do:
Code:
*Find out what do these warnings mean ;)
*Check if compatible with other mods (like deathmatch, ggtime_command "cssdm_enable", maybe you're able to try?)
*Change in-written commands to some config execute
*Add checking if next map will be in the GG-time (if so, change the mapcyclefile earlier)
*Improve the one above - change the mapcycle just before voting for next map (rtv will result in gg map without gungame enabled)
*[maybe]Add chat notifications about changing the gameplay type on next map
*Add checking if alternative mapcycle file exists
*Maybe sth else, make a request!
Plugin is in beta. I'm testing it in different configurations right now.
WARNING! Before use, make sure, that ggmapcycle.txt has at least 2 maps. Otherwise, nextmap.smx will crash (a bit ) and, for example, nomination menu will show all maps on the server.