Raised This Month: $4 Target: $400
 1% 

[L4D2] Scavenge Score Fix - Gascan Pouring (2.4a) [07-Oct-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
3020
Plugin Version:
2.4a
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    11 
    Plugin Description:
    Fixes the score and gascan pour count from increasing when plugins use the 'point_prop_use_target' entity. Also respawns gascans when used for something other than a Scavenge event.
    Old 06-16-2012 , 17:00   [L4D2] Scavenge Score Fix - Gascan Pouring (2.4a) [07-Oct-2021]
    Reply With Quote #1

    About:
    • This prevents the score / gascan poured count / remaining scavenge time from increasing.
    • Problem occurs when plugins use the point_prop_use_target entity.
    • Bug affects all gamemodes with Scavenge style crescendos not only the Scavenge gamemode. For example: c1m4_atrium or c6m3_port.


    Affected Plugins:

    Related Plugins:

    Thanks:
    • irogue - Reporting the problem and lots of help testing.
    • Don't Fear The Reaper - Lots of help testing.
    • Lux - Helping with version 2.0 method.


    CVars:

    Saved to l4d2_scavenge_score.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0.0=Off. Any other value is number of seconds until respawning a gascan when used for something other than a Scavenge pour event.
    l4d2_scavenge_score_respawn "20.0" 

    Changes:
    Code:
    2.4a (19-Oct-2021)
        - Wildcarded the .txt GameData signature for compatibility with "Left4DHooks" plugin version 1.64+.
    
    2.4 (07-Oct-2021)
        - Fixed not detecting Scavenge gascans the game respawns. Thanks to "a2121858" for reporting.
    
    2.3 (06-Oct-2021)
        - Added cvar "l4d2_scavenge_score_respawn" to set the timer until a Scavenge gascan is respawned.
        - Now creates a cvar config saved as "l4d2_scavenge_score".
        - Now respawns Scavenge event gascans when poured for something other than the Scavenge event.
        - GameData file updated.
    
    2.2 (03-Oct-2021)
        - Added a delay to detect "point_prop_use_target" entities. Thanks to "a2121858" for reporting.
    
    2.1 (25-Feb-2021)
        - Fixed a mistake that would have broken the plugin if multiple 'point_prop_use_target' entities existed on the map.
    
    2.0 (25-Feb-2021)
        - Completely changed the blocking method. Now requires DHooks to properly block the call and prevent score bugs.
        - Thanks to "Lux" for help with this method.
    
    1.3 (10-May-2020)
        - Various changes to tidy up code.
    
    1.2 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
    
    1.1 (10-Aug-2013)
        - Fixed a rare bug which could crash the server.
    
    1.0 (16-Jun-2012)
        - Initial release.

    Requirements:

    Installation:
    DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires DHooks!
    1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
    2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_scavenge_score_fix.sp - 42 views - 17.5 KB)
    File Type: smx l4d2_scavenge_score_fix.smx (6.8 KB, 39 views)
    File Type: txt l4d2_scavenge_score_fix.txt (925 Bytes, 38 views)
    __________________

    Last edited by Silvers; 10-19-2021 at 05:32.
    Silvers is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-10-2013 , 05:54   Re: [L4D2] Scavenge Score Fix - Gascan Pouring (1.1) [10-Aug-2013]
    Reply With Quote #2

    Plugin updated, I highly suggest all who need this plugin to update:

    1.1 (10-Aug-2013)
    - Fixed a rare bug which could crash the server.
    __________________
    Silvers is offline
    Xada
    Junior Member
    Join Date: May 2017
    Old 02-23-2021 , 09:24   Re: [L4D2] Scavenge Score Fix - Gascan Pouring (1.3) [10-May-2020]
    Reply With Quote #3

    Recently this mod has stopped working properly (at least on newest beta Sourcemod revisions.)

    It appears to prevent the display ticker up top from counting cans poured (most of the time, anyway) but in conjunction with mods like freelance Gascan Pouring and Chainsaw Refuel it won't display the count yet it still registers.
    On c1m4_atrium for instance if you refill your chainsaw or pour gas on the floor it'll still count towards the goal, but won't 'show' on the UI. This way if you pour gas or refill chainsaw the escape vehicle will still activate after a number of these actions. In my tests the counter was 8/13 or 5/13 for example and the vehicle was already ready due to doing the other actions with gascans.

    I never noticed the issue until recent so I figured I'd report my findings as when this mod works properly it's a must.
    Xada is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 02-25-2021 , 05:01   Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.0) [25-Feb-2021]
    Reply With Quote #4

    Thanks. Had to completely change the method how this plugin works. Now requires DHooks. Please let me know of any issues.
    __________________
    Silvers is offline
    kalmas77
    New Member
    Join Date: Sep 2021
    Old 09-02-2021 , 04:30   Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.0) [25-Feb-2021]
    Reply With Quote #5

    Quote:
    Originally Posted by Silvers View Post
    Thanks. Had to completely change the method how this plugin works. Now requires DHooks. Please let me know of any issues.
    Now, the plugin has an issue in all game modes when your team dies completely the gas cans doesn't count anymore. Thanks for your amazing plug-ins, I'm a fan of you.
    kalmas77 is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-02-2021 , 08:33   Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.0) [25-Feb-2021]
    Reply With Quote #6

    Quote:
    Originally Posted by kalmas77 View Post
    Now, the plugin has an issue in all game modes when your team dies completely the gas cans doesn't count anymore. Thanks for your amazing plug-ins, I'm a fan of you.
    Thank you!

    Can you please tell me which map/mode so I can replicate the issue? Windows or Linux server? Listen server or dedicated server?
    __________________
    Silvers is offline
    a2121858
    Member
    Join Date: Sep 2020
    Old 10-03-2021 , 05:15   Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.1) [25-Feb-2021]
    Reply With Quote #7

    HI, Mr. Silvers.

    This plugin blocked the gascan score of the map ‘c14m2_lighthouse’. Could you please fix it?I am a windows server.

    Also, can I make a request?

    Is it possible to add a cvar, the gascan that is not counted in the score, and restore it in place after use, just like being destroyed.

    On some maps, for example: c6m3_port, after refueling for Extinguishers, the number of gascans is insufficient and the ending cannot be reached.

    sorry, my English is not well.

    Last edited by a2121858; 10-03-2021 at 05:20.
    a2121858 is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-03-2021 , 13:50   Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.2) [03-Oct-2021]
    Reply With Quote #8

    Quote:
    Originally Posted by a2121858 View Post
    HI, Mr. Silvers.

    This plugin blocked the gascan score of the map ‘c14m2_lighthouse’. Could you please fix it?I am a windows server.
    Code:
    2.2 (03-Oct-2021)
        - Added a delay to detect "point_prop_use_target" entities. Thanks to "a2121858" for reporting.


    Quote:
    Originally Posted by a2121858 View Post
    Is it possible to add a cvar, the gascan that is not counted in the score, and restore it in place after use, just like being destroyed.

    On some maps, for example: c6m3_port, after refueling for Extinguishers, the number of gascans is insufficient and the ending cannot be reached.

    sorry, my English is not well.
    This is something I should write as a separate plugin. I have the code ready to go, will post soon.

    Also recommend viewing: [L4D2] Scavenge Pouring - Unleaded Gas Only to block pouring with specific models so you have enough gascans for the finale/event. Btw the cvar "l4d2_block_gascan_types" for that plugin should be set to "1" or it blocks pouring and completing c14m2. Will update that at some point.

    Edit: Maybe it makes sense to respawn from this plugin when detecting non-game event pouring.

    Edit2: Sent PM with new version that respawns if you could test please and report back... Thanks.
    __________________

    Last edited by Silvers; 10-03-2021 at 16:43.
    Silvers is offline
    a2121858
    Member
    Join Date: Sep 2020
    Old 10-05-2021 , 09:35   Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.2) [03-Oct-2021]
    Reply With Quote #9

    There is no problem after the update and it works very well.

    I used the "l4d2_block_gascan_types" method to determine the objects that the fire extinguisher can use, and it's good now.

    Thank you, Mr. Silvers.
    a2121858 is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-06-2021 , 07:18   Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.3) [06-Oct-2021]
    Reply With Quote #10

    Code:
    2.3 (06-Oct-2021)
        - Added cvar "l4d2_scavenge_score_respawn" to set the timer until a Scavenge gascan is respawned.
        - Now creates a cvar config saved as "l4d2_scavenge_score".
        - Now respawns Scavenge event gascans when poured for something other than the Scavenge event.
        - GameData file updated.
    So now it's possible to allow pouring, this plugin will respawn the gascan in such a case. Should work for all cases and all the time.
    __________________
    Silvers 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 20:14.


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