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

[L4D2] Scavenge Score Fix - Gascan Pouring (2.5) [11-Dec-2022]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
3020
Plugin Version:
2.5
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    10 
    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 , 16:00   [L4D2] Scavenge Score Fix - Gascan Pouring (2.5) [11-Dec-2022]
    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.5 (11-Dec-2022)
        - Changes to fix compile warnings on SourceMod 1.11.
    
    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:
    1. Click "Get Plugin" and put the .smx file 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 - 736 views - 17.7 KB)
    File Type: txt l4d2_scavenge_score_fix.txt (925 Bytes, 737 views)
    __________________

    Last edited by Silvers; 02-23-2023 at 10:05.
    Silvers is offline
     



    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 13:49.


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