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

[NMRiH] Objective Time Limiter (v1.0.3, 01-10-14)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bubka3
Sir Buzz Killington, Esq.
Join Date: Jan 2010
Location: New York, NY
Plugin ID:
4019
Plugin Version:
1.0.2
Plugin Category:
Server Management
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Encourages users to complete objectives or get slayed.
    Old 12-29-2013 , 03:14   [NMRiH] Objective Time Limiter (v1.0.3, 01-10-14)
    Reply With Quote #1

    [NMRiH] Objective Time Limiter (v1.0.3, 01-10-14)


    Description: Encourages users to complete objectives or get slayed. This plugin is an improvement of the original version released here.

    Features:
    • Proper Backstory: Survivors must complete the objectives in time or the National Guard will leave without them!
    • Sounds: The National Guard will announce 30 seconds before they are leaving.
    • Flexibility: You may, enable, or disable, the objective time limits at any time.

    CVAR / Command List:
    • sv_objtimelimit_enabled - Turns the plugin on or off. (Default 1 = Enabled)
    • sv_objtimelimit - Sets the timelimit on each objective. (Default 300 seconds)
    • sv_objtimelimit_warn - Sets the amount of time between chat warnings. (Default 120 seconds)
    • sm_objtime - Simple chat trigger to display how much time is left for this objective.
    • sm_objtimeleft - <timeleft> [-1 will cancel timer], allows for changing of the time left.

    Installation: Place the .smx into addons/sourcemod/plugins and the cvars into your server.cfg.

    Change Log:
    v1.0.3, 01-10-14
    * Fixed plugin timer not ending on a non-round map ending.
    v1.0.2, 01-01-14
    * Fixed plugin starting on survival maps.
    v1.0.1, 12-29-13
    * Fixed timer becoming one second faster on each round end or objective completion.
    * Fixed sounds playing on round end when time left is less than 30 and an admin manually changes the timeleft.
    v1.0.0, 12-29-13
    * Initial release.

    Special Thanks:
    ELITE_eNergizer for the original plugin and idea.
    Attached Files
    File Type: sp Get Plugin or Get Source (objtimelimit.sp - 1076 views - 9.4 KB)

    Last edited by Bubka3; 03-29-2014 at 00:20. Reason: Fixing plugin meta data.
    Bubka3 is offline
    machede
    Member
    Join Date: Nov 2011
    Location: Italia
    Old 12-30-2013 , 07:52   Re: [NMRiH] Objective Time Limiter (v1.0.1, 12-29-13)
    Reply With Quote #2

    works for tf2 ?

    not work sm_objtimeleft
    Unknown command: sm_objtimeleft
    N
    Unknown command: rcon sm_objtimeleft
    N
    __________________

    Last edited by machede; 12-30-2013 at 08:08.
    machede is offline
    Marcus_Brown001
    AlliedModders Donor
    Join Date: Nov 2012
    Location: Illinois, United States
    Old 12-30-2013 , 13:12   Re: [NMRiH] Objective Time Limiter (v1.0.1, 12-29-13)
    Reply With Quote #3

    This only works on No More Room In Hell, hence the [NMRiH] tag inside the thread name.
    Marcus_Brown001 is offline
    machede
    Member
    Join Date: Nov 2011
    Location: Italia
    Old 12-30-2013 , 16:23   Re: [NMRiH] Objective Time Limiter (v1.0.1, 12-29-13)
    Reply With Quote #4

    Quote:
    Originally Posted by Marcus_Brown001 View Post
    This only works on No More Room In Hell, hence the [NMRiH] tag inside the thread name.
    I have seen [NMRiH]
    but I read Plugin Game: Any
    there is nothing to tf2 ?
    __________________

    Last edited by machede; 12-30-2013 at 16:26.
    machede is offline
    ys24ys
    Junior Member
    Join Date: Nov 2013
    Old 12-30-2013 , 18:10   Re: [NMRiH] Objective Time Limiter (v1.0.1, 12-29-13)
    Reply With Quote #5

    Quote:
    Originally Posted by machede View Post
    I have seen [NMRiH]
    but I read Plugin Game: Any
    there is nothing to tf2 ?
    It [NMRiH] because there is no specific tags.
    ys24ys is offline
    khanhtruong777
    Junior Member
    Join Date: Apr 2013
    Location: Vietnam
    Old 01-01-2014 , 04:48   Re: [NMRiH] Objective Time Limiter (v1.0.1, 12-29-13)
    Reply With Quote #6

    I don't know what you did, but it is still working on survival maps, me and my friends got killed by the National Guard after 5 minutes of wave 1.
    __________________

    khanhtruong777 is offline
    Bubka3
    Sir Buzz Killington, Esq.
    Join Date: Jan 2010
    Location: New York, NY
    Old 01-01-2014 , 09:47   Re: [NMRiH] Objective Time Limiter (v1.0.1, 12-29-13)
    Reply With Quote #7

    Quote:
    Originally Posted by khanhtruong777 View Post
    I don't know what you did, but it is still working on survival maps, me and my friends got killed by the National Guard after 5 minutes of wave 1.
    Released v1.0.2 to fix this. I had a fix yesterday but I was busy.
    Bubka3 is offline
    khanhtruong777
    Junior Member
    Join Date: Apr 2013
    Location: Vietnam
    Old 01-07-2014 , 22:15   Re: [NMRiH] Objective Time Limiter (v1.0.2, 01-01-14)
    Reply With Quote #8

    I find that the plugin doesn't stop working until it kills the players. When we finished an objective map and then changed to survival map, the timer was still running, after all players received 1 death, it finally stopped. Please fix it.

    Edit: Besides, I've set time limit to 10 minutes and warn every 2 minutes, but it doesn't warn the players when there's 1 minute left.
    __________________


    Last edited by khanhtruong777; 01-07-2014 at 22:21.
    khanhtruong777 is offline
    Bubka3
    Sir Buzz Killington, Esq.
    Join Date: Jan 2010
    Location: New York, NY
    Old 01-10-2014 , 17:10   Re: [NMRiH] Objective Time Limiter (v1.0.2, 01-01-14)
    Reply With Quote #9

    Quote:
    Originally Posted by khanhtruong777 View Post
    I find that the plugin doesn't stop working until it kills the players. When we finished an objective map and then changed to survival map, the timer was still running, after all players received 1 death, it finally stopped. Please fix it.
    Looking into this.

    Quote:
    Originally Posted by khanhtruong777 View Post
    Edit: Besides, I've set time limit to 10 minutes and warn every 2 minutes, but it doesn't warn the players when there's 1 minute left.
    Um, how do you take away 2 from 10 and get 1? The only possible values in that scenario are 0 2 4 6 8 10.
    Bubka3 is offline
    khanhtruong777
    Junior Member
    Join Date: Apr 2013
    Location: Vietnam
    Old 01-10-2014 , 20:10   Re: [NMRiH] Objective Time Limiter (v1.0.2, 01-01-14)
    Reply With Quote #10

    Quote:
    Originally Posted by Bubka3 View Post
    Um, how do you take away 2 from 10 and get 1? The only possible values in that scenario are 0 2 4 6 8 10.
    Then what is this for? I thought no matter how much time is left, it should warn players at last minute.
    Code:
    if(g_iTimeLeft/60 == 1)
                PrintToChatAll("[SM] You have 1 minute to complete this objective before the National Guard abandon you!");
            else
                PrintToChatAll("[SM] You have %d minutes to complete this objective before the National Guard abandon you!", g_iTimeLeft/60);
    I changed the text a bit bcos it's too long. I also altered the code in OnMapEnd(), then the timer stopped properly and no longer kill players in the first waves of survival maps.
    Code:
    public OnMapEnd()
    {
        if(g_bObjMap)
        RemoveOldObjective();
    }
    Attached Files
    File Type: sp Get Plugin or Get Source (objtimelimit.sp - 738 views - 9.1 KB)
    __________________

    khanhtruong777 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:37.


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