Description:
This plugin will change the mapcyclefile variable at the end of the map to a value determined by the date and time. It is useful if you want to change the mapcycle depending on the time of day, or if you want to have more control over what maps show up in votes during different times of day.
Installation:
1) Upload timecycle.smx to addons/sourcemod/plugins/
2) Navigate to MOD/cfg/sourcemod/timecycle. You will see 7 folders, one for each day of the week. If you use sm_timecycle_daily = 1, your mapcycles must go inside those folders. If you use sm_timecycle_daily = 0, your mapcycles must stay in the /timecycle/ folder.
3) To create the mapcycles, create as many files as you need, depending on when you want the mapcycles to change, named xx.txt (where xx is the hour in 24 hour format. i.e. 01.txt 13.txt, 22.txt, etc.)
Cvars:
sm_timecycle_interval - Number of hours between mapcycle updates. For example, if set to 2, the mapcycle will only change every two hours.
(Default = 1)
sm_timecycle_daily - Should the plugin use a different set of mapcycles for each day (1=yes 0=no)?
(Default = 0)
Notes:
-If the plugin cannot find the mapcycle for the current time, it will keep the previous mapcycle.
-I haven't tested the plugin extensively, so please report any bugs you might find!
Changelog:
Code:
1.1
- Set mapcycle on server startup (will be mapcycle.txt if the current day/day+hour doesn't have a mapcycle).
1.0
- Initial Release