Raised This Month: $32 Target: $400
 8% 

[CS:S] Roundtime Extender (Version 1.0.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Plugin ID:
2353
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Longers the round, if there are a certain amount of players alive at round end
    Old 05-22-2011 , 10:24   [CS:S] Roundtime Extender (Version 1.0.1)
    Reply With Quote #1

    Roundtime Extender

    Ever been on a big server with so much players, the CTs didn't even get near the hostages during the regular roundtime? Why don't they get some extra time, if there are that much players alive?

    Specify the amount of seconds to extend the current round timer depending on the alive player count.

    The config file (roundtime_extender.cfg) is put up as follows:
    Code:
    "RoundtimeExtender"
    {
        "config"
        {
            "maxplayers"    "5" // If there are <= 5 players alive at round end, don't change the roundtime
            "extendseconds"    "0"
        }
    
        "config"
        {
            "maxplayers"    "10" // If there are > 5 and <= 10 players alive at round end, the roundtime is increased by 120 seconds
            "extendseconds"    "120"
        }
    }
    Keep the correct order from lowest player amount to highest player amount. The "maxplayers" value determines up to which amount of players this config part is executed. If there is a lower maxplayers value before, it's the lower limit for the higher config.

    This plugin only has one convar for version tracking (sm_roundtimeextender_version). Use the above config file to configure.

    Install:
    1. Download roundtime_extender.cfg and roundtime_extender.smx from this post. (Get Plugin)
    2. Upload roundtime_extender.cfg into sourcemod/configs and roundtime_extender.smx into sourcemod/plugins
    3. Change the map
    Credits:
    • psychonic - Creating the useful GameRules Prop Hax extension (now integrated in SourceMod 1.4
    • Grandma - Had the idea

    Changelog:
    Quote:
    1.0: Initial release
    1.0.1: Removed gamerules include due to native sourcemod support
    Total downloads: 17
    Attached Files
    File Type: cfg roundtime_extender.cfg (891 Bytes, 744 views)
    File Type: sp Get Plugin or Get Source (roundtime_extender.sp - 1934 views - 7.1 KB)
    __________________

    Last edited by Peace-Maker; 11-24-2011 at 06:02. Reason: "Updated" to 1.0.1
    Peace-Maker is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 05-22-2011 , 17:45   Re: [CS:S] Roundtime Extender (Version 1.0)
    Reply With Quote #2

    Can this also be used to end the round if there is no objective in the map? (jailbreak)
    Groger is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 05-22-2011 , 17:51   Re: [CS:S] Roundtime Extender (Version 1.0)
    Reply With Quote #3

    No. This is to extend the round not to end it.
    It's pretty easy to create a timer on round start for x seconds and call TerminateRound after that time though, but that's not the purpose of this plugin!
    __________________
    Peace-Maker is offline
    lassiter
    Junior Member
    Join Date: Aug 2006
    Old 02-12-2012 , 13:13   Re: [CS:S] Roundtime Extender (Version 1.0.1)
    Reply With Quote #4

    I tried this plugin to extend the timer and it did not work the round still ended. I then noticed that it was set for 1/2 a second to change the time I changed this to 1.5 seconds but did no good the timer changed time the round still ended as it was supposed too. I do not think your plugin is working the way it was supposed to work.

    Last edited by lassiter; 02-12-2012 at 13:15.
    lassiter is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 09-20-2012 , 19:54   Re: [CS:S] Roundtime Extender (Version 1.0.1)
    Reply With Quote #5

    Added plugin + .cfg to the server. Set the mp_roundtime to 1 in server.cfg.

    Contents of the .cfg:

    Code:
    "RoundtimeExtender"
    {
        "config"
        {
            "maxplayers"    "1" // If there are <= 5 players alive at round end, don't change the roundtime
            "extendseconds"    "20"
        }
    }
    ^I assume this would make it extend the round timer if there are 2 or more people alive on the server.

    I reset the server and asked a friend to join. We waited the 60 seconds and the round ended no extension.

    Did I do something wrong?
    __________________
    Fearts is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 09-20-2012 , 21:47   Re: [CS:S] Roundtime Extender (Version 1.0.1)
    Reply With Quote #6

    Quote:
    Originally Posted by Fearts View Post
    Added plugin + .cfg to the server. Set the mp_roundtime to 1 in server.cfg.

    Contents of the .cfg:

    Code:
    "RoundtimeExtender"
    {
        "config"
        {
            "maxplayers"    "1" // If there are <= 5 players alive at round end, don't change the roundtime
            "extendseconds"    "20"
        }
    }
    ^I assume this would make it extend the round timer if there are 2 or more people alive on the server.

    I reset the server and asked a friend to join. We waited the 60 seconds and the round ended no extension.

    Did I do something wrong?
    The "maxplayers" "x" key should be read as "number of players less or equal to x" -> that section is executed, if there are maximal x players alive at the end of the round and there is no lower "maxplayers" setting already catching that number of players.

    Your config extends the round for 20 seconds if there is only 1 player left alive at the end of the round.

    If you want it to extend if there are 2 or more people alive you would need to do

    Code:
    "RoundtimeExtender"
    {
        "config"
        {
            "maxplayers"    "1" // If there is only 1 player alive at round end, don't change the roundtime
            "extendseconds"    "0"
        }
        "config"
        {
            "maxplayers"    "100" // If there are 2 to 100 (bogus value higher than maxplayers..) players alive, extend by 20 seconds.
            "extendseconds"    "20"
        }
    }
    __________________
    Peace-Maker is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 09-21-2012 , 00:05   Re: [CS:S] Roundtime Extender (Version 1.0.1)
    Reply With Quote #7

    Oh I see now. Thanks I got it working.
    __________________
    Fearts is offline
    Gnaskern
    Junior Member
    Join Date: Apr 2013
    Old 04-26-2013 , 07:55   Re: [CS:S] Roundtime Extender (Version 1.0.1)
    Reply With Quote #8

    i have one problem....
    when the timer is on 0 its going to extend BUT when the time is on 0 too its going to end the round...
    i you understand...

    what could i do ^^ (sorry for ma' bad english=)
    Gnaskern is offline
    Gnaskern
    Junior Member
    Join Date: Apr 2013
    Old 04-28-2013 , 05:23   Re: [CS:S] Roundtime Extender (Version 1.0.1)
    Reply With Quote #9

    is there a way to do so the time is going to be extended when the timer is at 00

    (sorry for double comment)
    Gnaskern is offline
    Reply


    Thread Tools
    Display Modes

    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 23:43.


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