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

[L4D2] Scavenge Quick End


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ProdigySim
SourceMod Plugin Approver
Join Date: Feb 2010
Plugin ID:
2906
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Checks for tiebreaker win conditions mid round
    Old 04-14-2012 , 22:15   [L4D2] Scavenge Quick End
    Reply With Quote #1

    Scavenge Quick End

    Scavenge has 2 tiebreaker win conditions:
    • Team A gets 0 cans, Team B gets 0 cans --> Team whose round lasts longest wins.
    • Team A gets N cans, Team B gets N cans --> Team which got N cans poured fastest wins.
    This plugin checks these tiebreaker conditions in the middle of the round, and if one is definitively met, the round ends early--preventing survivor teams from running around collecting cans fruitlessly, or to grief.


    Example 1:
    Team A gets wiped with 0 gas cans poured. Team B decides to grab 1 gas can and carry it to a "god spot" on the map, holding out and griefing with an assured win.

    Instead of the round continuing indefinitely, this plugin will automatically end the round when Team B has survived longer than Team A did.


    Example 2:
    Team A gets 15 gas cans in, and then wipes. They took 4:22.39 to get their cans in. Team B pours in their 15th gas can at 3:59.60--ensuring their victory. This plugin ends the round immediately, since Team B is a decided winner at this point.


    Example 3:
    Team A gets all 16 cans on the map poured in 4:54.03. Team B only has 14 cans poured by the time 4:54.03 has elapsed. This plugin ends the round immediately, since Team A is the decided winner at this point.


    CVars/Commands:
    sm_time - If called during a scavenge round, checks the current round's elapsed time. Also displays the first round's time if this is the second half of the round.



    Possible future revisions:
    -CVar control for which win conditions should be ended early on. (or "Notify-only" mode)
    -Better !time output/availability
    -Whatever others suggest.


    Changelog
    1.2.
    - Improved !time output and round_end time display.
    1.1
    - Uses "scenario_end" instead of slaying the survivor team.
    1.0
    -Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (scavenge_quick_end.sp - 1014 views - 4.8 KB)

    Last edited by ProdigySim; 04-17-2012 at 21:46. Reason: 1.2
    ProdigySim is offline
    ProdigySim
    SourceMod Plugin Approver
    Join Date: Feb 2010
    Old 04-17-2012 , 18:47   Re: [L4D2] Scavenge Quick End
    Reply With Quote #2

    Version 1.1: Uses "scenario_end" to end the round instead of slaying all survivors.
    ProdigySim is offline
    ProdigySim
    SourceMod Plugin Approver
    Join Date: Feb 2010
    Old 04-17-2012 , 21:47   Re: [L4D2] Scavenge Quick End
    Reply With Quote #3

    Version 1.2: Better !time and round_end output.

    Last Round: N cans in MM:SS.FF
    This Round: N cans in MM:SS.FF
    ProdigySim is offline
    Sidder
    Member
    Join Date: Jan 2012
    Old 04-18-2012 , 17:48   Re: [L4D2] Scavenge Quick End
    Reply With Quote #4

    Well after trying it for a while now, id say hell its even usefull for pubs xD (needed some triess to convince me otherwise)
    No more useless time waste on lost rounds

    id say a must have addon for people who love to play scavenge; amazing its just not by default tbh

    gw

    Last edited by Sidder; 04-24-2012 at 14:45. Reason: meh useless suggestion
    Sidder is offline
    Sidder
    Member
    Join Date: Jan 2012
    Old 07-02-2012 , 13:20   Re: [L4D2] Scavenge Quick End
    Reply With Quote #5

    L 07/02/2012 - 18:59:52: [SM] [0] Line 157, /home/groups/alliedmodders/forums/files/7/1/5/3/3/102340.attach::GameRules_GetScavengeTeamScore ()
    L 07/02/2012 - 18:59:52: [SM] [1] Line 98, /home/groups/alliedmodders/forums/files/7/1/5/3/3/102340.attach::OnCanPoured()
    L 07/02/2012 - 19:01:03: [SM] Native "GameRules_GetProp" reported: Element 11 is out of bounds (Prop m_iScavengeTeamScore has 10 elements).
    L 07/02/2012 - 19:01:03: [SM] Displaying call stack trace for plugin "scavenge_quick_end.smx":
    L 07/02/2012 - 19:01:03: [SM] [0] Line 157, /home/groups/alliedmodders/forums/files/7/1/5/3/3/102340.attach::GameRules_GetScavengeTeamScore ()
    L 07/02/2012 - 19:01:03: [SM] [1] Line 115, /home/groups/alliedmodders/forums/files/7/1/5/3/3/102340.attach:rintRoundEndTimeData()
    L 07/02/2012 - 19:01:03: [SM] [2] Line 69, /home/groups/alliedmodders/forums/files/7/1/5/3/3/102340.attach::RoundEnd()
    L 07/02/2012 - 19:01:27: [SM] Native "GameRules_GetProp" reported: SendProp m_iScavengeTeamScore type is not integer ([6,0] != 0)
    L 07/02/2012 - 19:01:27: [SM] Displaying call stack trace for plugin "scavenge_quick_end.smx":
    L 07/02/2012 - 19:01:27: [SM] [0] Line 157, /home/groups/alliedmodders/forums/files/7/1/5/3/3/102340.attach::GameRules_GetScavengeTeamScore ()

    L 07/02/2012 - 19:01:27: [SM] [1] Line 119, /home/groups/alliedmodders/forums/files/7/1/5/3/3/102340.attach:rintRoundEndTimeData()
    L 07/02/2012 - 19:01:27: [SM] [2] Line 69, /home/groups/alliedmodders/forums/files/7/1/5/3/3/102340.attach::RoundEnd()


    ps, how on earth do ppl squees this nice and tidely in code box this stuff? Always seems cramped up in one small box for me?

    Last edited by Sidder; 07-02-2012 at 13:22.
    Sidder 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:50.


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