Author
|
|
Veteran Member
|
Plugin ID:
|
922
|
Plugin Version:
|
1.3.1
|
Plugin Category:
|
Server Management
|
Plugin Game:
|
Team Fortress 2
|
Plugin Dependencies:
|
|
Servers with this Plugin:
|
|
| |
Plugin Description:
|
Sets random timelimit based on gametype.
|
|
|
06-09-2009
, 20:05
[TF2] Random Timelimit (1.3.1)
|
#1
|
About
Simple OP here since it's a simple plugin.
TF2 only but can probably be modified to run on any game you want (feel free to).
Set the Cvar's to what you want the timelimit to be "between" for that gametype, the cvars are (0 by default, values are in minutes):
sm_randomtimelimit_arena_high
sm_randomtimelimit_arena_low
sm_randomtimelimit_cp_high
sm_randomtimelimit_cp_low
sm_randomtimelimit_koth_high
sm_randomtimelimit_koth_low
sm_randomtimelimit_ctf_high
sm_randomtimelimit_ctf_low
sm_randomtimelimit_pl_high
sm_randomtimelimit_pl_low
sm_randomtimelimit_def_high
sm_randomtimelimit_def_low
sm_randomtimelimit_enable to enable/disable the plugin.
For example set a cp low of 15 and a cp high of 30 and you will get a timelimit exactly or between 15 to 30 every time the gametype comes up.
Use the default ("def") cvars for maps that don't set the gametype and/or the limit to use if you don't set other gametype cvars. Leave these at 0 to use your servers default timelimit.
This plugin creates an auto configuration in your sourcemod cfg folder, also attached. Though clear the settings out of this if you want to set the limits on a per map basis (though I created this plugin to eliminate having to EVEN use per map configs)
Support
Support is only provided if you're using the latest official SM release or later (but it shouldn't matter if you compile it yourself).
Future Changes
I will not be adding anything else to this plugin, I am simply releasing this plugin as I thought others might find it useful. Only bugfixes will be applied, if there are any.
Changelog
1.3.1
- Added better random number generations with SM 1.3 specific code (thanks to psychonic).
1.3
- Full translation support for cvars and errors.
- TF2 game check added.
- Some code optimisation.
- Removed FailSafe's and use better fallbacks.
1.2
- Added KOTH support.
1.1
- Added default timelimit option.
1.0
- Initial release.
Last edited by Jamster; 03-29-2010 at 22:37.
Reason: Show version in thread title.
|
|
|
|