Monthly Target: $400 Donations: $126
 31% 

Round Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: United States
Plugin ID:
3153
Plugin Version:
1.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    95 
    Plugin Description:
    Creates a round timer that executes commands when the round ends.
    Old 08-12-2012 , 01:24   Round Timer
    Reply With Quote #1

    Round Timer

    Description:
    Creates a round timer that executes commands when the round ends. Specifically made for Deathrun and Jailbreak.
    Control Variables:
    • sm_roundtimer_enabled (default: 1) Enable/Disable plugin
    • sm_roundtimer_time (default: 300) Round timer time
    • sm_roundtimer_hud (default: 1) Enable/Disable displaying timer in hud
    • sm_roundtimer_center (default: 0) Enable/Disable displaying timer in center text
    • sm_roundtimer_xhud (default: -1) X hud position
    • sm_roundtimer_yhud (default: 0.15) Y hud position
    • sm_roundtimer_commands (default: "sm_say The round time has ended!;sm_slay @red") Commands to run once the timer ends
    Version Log:
    • Version 1.3
      • Added support for most games
    • Version 1.2
      • Fixed invalid handle errors on map change
      • Added convar to enable/disable timer from displaying in hud
      • Added convar to enable/disable timer from displaying in center text
      • Now automatically determines when round timer starts
      • Now supports any game
      • Changed name of plugin and convars
    • Version 1.1
      • Fixed bugs
    • Version 1.0
      • Initial release
    My Plugins
    intox Gaming
    Attached Files
    File Type: sp Get Plugin or Get Source (roundtimer.sp - 530 views - 5.8 KB)

    Last edited by ReFlexPoison; 06-24-2015 at 21:06. Reason: 1.3
    ReFlexPoison is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: United States
    Old 08-12-2012 , 01:26   Re: Round Countdown
    Reply With Quote #2

    *Reserved
    __________________
    ReFlexPoison is offline
    away000
    Veteran Member
    Join Date: Sep 2010
    Old 08-12-2012 , 02:10   Re: Round Countdown
    Reply With Quote #3

    can u make to the time be random?
    __________________
    away000 is offline
    danne2
    SourceMod Donor
    Join Date: Jul 2011
    Location: Unoriginal computer joke
    Old 08-12-2012 , 19:58   Re: Round Countdown
    Reply With Quote #4

    Nice to see this turned into something more than just a slayer.


    I'm not a good coder, but since it's ANY, shouldn't this include round_start? I think teamplay_round_start is a TF2 event.



    Edit again: Just tested this, and it didn't reset the timer on the new round.
    __________________

    Last edited by danne2; 08-12-2012 at 20:54.
    danne2 is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: United States
    Old 08-13-2012 , 00:31   Re: Round Countdown
    Reply With Quote #5

    Quote:
    Originally Posted by danne2 View Post
    Nice to see this turned into something more than just a slayer.


    I'm not a good coder, but since it's ANY, shouldn't this include round_start? I think teamplay_round_start is a TF2 event.



    Edit again: Just tested this, and it didn't reset the timer on the new round.
    Round start is determined by an event, the cvar designates either it starts on teamplay_round_start or arena_round_start.

    And my mistake it is only for Team Fortress 2, as hud text is only designed for a few games. I may add support for other games soon.
    __________________

    Last edited by ReFlexPoison; 08-13-2012 at 00:33.
    ReFlexPoison is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: United States
    Old 12-31-2012 , 21:56   Re: [TF2] Round Countdown
    Reply With Quote #6

    Version 1.1.0 Released

    Changes:
    > Fixed several bugs.
    > Now actually works!
    __________________
    ReFlexPoison is offline
    AeroAcrobat
    AlliedModders Donor
    Join Date: Apr 2011
    Location: lives in a circus
    Old 01-19-2013 , 17:34   Re: [TF2] Round Countdown
    Reply With Quote #7

    Code:
    L 01/19/2013 - 22:24:55: [SM] Displaying call stack trace for plugin "countdown.smx":
    L 01/19/2013 - 22:24:55: [SM]   [0]  Line 170, /home/groups/alliedmodders/forums/files/1/4/9/0/9/0/107685.attach::ClearTimer()
    L 01/19/2013 - 22:24:55: [SM]   [1]  Line 95, /home/groups/alliedmodders/forums/files/1/4/9/0/9/0/107685.attach::OnRoundStart()
    L 01/19/2013 - 22:29:30: [SM] Native "KillTimer" reported: Invalid timer handle d578159a (error 1)
    Wanted to use for freak and deathrun.
    worked at first then people reported that its not working anymore :/
    __________________
    AeroAcrobat is offline
    Avaray
    Member
    Join Date: Dec 2011
    Location: Germany
    Old 03-26-2013 , 10:06   Re: [TF2] Round Countdown
    Reply With Quote #8

    Is possible to change this plugin to work with mp_timelimit?
    I need plugin like this for my Deathmatch server.
    Theres no round time, so I have problem :/
    Avaray is offline
    redwerewolf
    r3dw3r3w0lf
    Join Date: Sep 2009
    Old 06-21-2013 , 09:55   Re: [TF2] Round Countdown
    Reply With Quote #9

    I went ahead and did a quick fix for this plugin, should be working. (I say should!)
    Attached Files
    File Type: sp Get Plugin or Get Source (countdown.sp - 283 views - 5.3 KB)
    __________________
    I no longer do Sourcemod commissions, don't message me please.
    redwerewolf is offline
    Powerlord
    Oh Ross.
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 06-21-2013 , 10:35   Re: [TF2] Round Countdown
    Reply With Quote #10

    Just happened to be reading threads and saw this:

    Quote:
    Originally Posted by ReFlexPoison View Post
    Very useful for arena servers without map time limits
    tf_arena_round_time is your friend.
    __________________
    So long and thanks for all the fish.
    Powerlord 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 04:34.


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