Raised This Month: $202 Target: $400
 50% 

[L4D2] Scavenge Score Fix - Gascan Pouring (2.1) [25-Feb-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.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Fixes the score / gascan pour count from increasing when plugins use the 'point_prop_use_target' entity.
    Old 06-16-2012 , 16:00   [L4D2] Scavenge Score Fix - Gascan Pouring (2.1) [25-Feb-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.
    • The only cvar, plugin version: l4d2_scavenge_score_fix.


    Affected 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.


    Changes:
    Code:
    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 - 124 views - 12.2 KB)
    File Type: smx l4d2_scavenge_score_fix.smx (5.1 KB, 118 views)
    File Type: txt l4d2_scavenge_score_fix.txt (929 Bytes, 152 views)
    __________________

    Last edited by Silvers; 06-18-2021 at 20:39.
    Silvers is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-10-2013 , 04: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 , 08: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 , 04: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 , 03: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 , 07: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
    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 22:51.


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