MapChooser
Version 1.3
By: ferret!
Description
Faithful port of MapChooser from AMXX, with one addition: It now extends winlimit and maxrounds.
MapChooser will automatically begin a vote for the next map when the time is almost up. For mods with mp_maxrounds and mp_winlimit, they will trigger the vote when only 2 rounds remain. The vote is random. The list comes from addons/sourcemod/configs/maps.ini if it exists. If it doesn't, your mapcycle is used.
Cvars- sm_extendmap_max
- Maximum time a map can be extended
- Default 90 minutes
- sm_extendmap_step
- How much longer does each extension make the map?
- Default 15 minutes
- sm_extendmap_rmax
- Maximum rounds a map can be extended?
- Default 12 rounds
- sm_extendmap_rstep
- How many more rounds does each extension make the map?
- Default 2 rounds
- sm_lastmap
- Provided for fun or convience. The last map played will be contained in this cvar.
- sm_startvotetime
- When to start the map vote, based on timeleft.
- Default is 180 seconds. Remember to use seconds, not minutes.
- sm_mapchooser_file
- Specify a map list to use for MapChooser. This is relative to the Sourcemod folder
- Default is "configs/maps.ini" (That is, addons/sourcemod/configs/maps.ini)
Change Log:- Version 1.3 (June 29th)
- Conform to plugin submission standards
- Add version cvar sm_mapchooser_version
- Add sm_mapchooser_file cvar for specifying map list.
- Version 1.2 (June 26th)
- Now grab a new starting time from GetEngineTime on Round_Commence.
- Updated to use new filenames and standard for translations
- Reverted to TIMER_REPEAT timer, due to fixes in Sourcemod
- Reset the map counter when reloading maps (Whoops)
- Add CVAR sm_startvotetime (See above)
- YOU MUST DOWNLOAD PLUGIN.MAPCHOOSER.TXT!!! You may delete the old .cfg version.
- June 24th
- lol another update: Added round_end/RC=16 check for g_fStartTime
- Secondary update: Moved g_fStartTime to OnMapStart.
- Only check mp_winlimit and mp_maxrounds for Cstrike now (Hidden: Source should work now)
- Removed use of TIMER_REPEAT, due to issues with KillTimer().
- Winlimit and maxrounds will not be extended when they are 0.
- German translations by Isias (Redownload plugin.mapchooser.cfg)
- French translations by magicyan (Get the file!)
Bugs, Requests, Translations, or Other Issues
Please use my project area on the
Allied Modders Bug Tracker to report any issues or make requests. Your login for the bug tracker is the same as your forum login. Set the category to this plugin's name.