Raised This Month: $51 Target: $400
 12% 

[TF2] Random Timelimit (1.3.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Jamster
Veteran Member
Join Date: Jun 2008
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.
    Old 06-09-2009 , 20:05   [TF2] Random Timelimit (1.3.1)
    Reply With Quote #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.
    Attached Files
    File Type: sp Get Plugin or Get Source (randomtimelimit.sp - 1051 views - 6.0 KB)
    File Type: cfg plugin.randomtimelimit.cfg (1.7 KB, 420 views)
    File Type: txt randomtimelimit.phrases.txt (2.1 KB, 385 views)

    Last edited by Jamster; 03-29-2010 at 22:37. Reason: Show version in thread title.
    Jamster is offline
    Jamster
    Veteran Member
    Join Date: Jun 2008
    Old 07-15-2009 , 19:35   Re: Random Timelimit
    Reply With Quote #2

    Update posted, added "default" cvars.
    Jamster is offline
    Jamster
    Veteran Member
    Join Date: Jun 2008
    Old 09-14-2009 , 12:41   Re: Random Timelimit
    Reply With Quote #3

    Update posted, added KOTH support.
    Jamster is offline
    Jamster
    Veteran Member
    Join Date: Jun 2008
    Old 01-17-2010 , 09:41   Re: Random Timelimit
    Reply With Quote #4

    New version, just a general update.
    Jamster is offline
    Jamster
    Veteran Member
    Join Date: Jun 2008
    Old 03-14-2010 , 12:49   Re: Random Timelimit
    Reply With Quote #5

    Small update, just improves the random selection a bit better.
    Jamster is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 18:48.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode