Raised This Month: $32 Target: $400
 8% 

[L4D2] Charger Actions (1.14) [25-Sep-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6201
Plugin Version:
1.14
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    10 
    Plugin Description:
    Changes how the Charger can be used.
    Old 07-21-2018 , 08:00   [L4D2] Charger Actions (1.14) [25-Sep-2023]
    Reply With Quote #1

    Related Plugins:

    Thanks:
    • "Sev" for the initial idea and testing
    • "paul92" for lots of help testing version 1.2.


    Features:
    • Jumping:
      The cvar l4d2_charger_jump lets chargers jump while charging.
    • Collision:
      The cvar l4d2_charger_charge controls if charging into a survivor grabs them (default game behaviour) or throws them out the way.
    • Pummel:
      The cvar l4d2_charger_finish will drop survivors after charging with them instead of default game behaviour to pummel.
    • Pickup:
      The cvar l4d2_charger_pickup allows chargers to melee punch survivors to grab and drop them.
    • Survivor Shove:
      The cvar l4d2_charger_shove allows survivors to shove chargers and release a survivor being pummeled or carried.


    ConVars:
    • Saved to l4d2_charger_action.cfg in your servers \cfg\sourcemod\ folder.
    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d2_charger_allow      "1"

    // Bots can: 0=Grab survivor on contact (game default). 1=Fling survivors on contact instead of grab. 2=Random choice.
    l4d2_charger_bots       "1"

    // Humans can: 0=Grab survivor on contact (game default). 1=Fling survivors on contact instead of grab.
    l4d2_charger_charge     "1"

    // Amount of damage to deal on collision when hitting or grabbing a survivor
    l4d2_charger_damage     "10"

    // After carrying and charging: 0=Pummel (game default). 1=Drop survivor. 2=Drop when a carried survivor is incapped. 3=Both 1 and 2. 4=Continue to carry.
    l4d2_charger_finish     "3"

    // Allow chargers to automatically pick up incapacitated players whilst charging over them. 0=Off. 1=On. 2=Only when not pinned by other Special Infected.
    l4d2_charger_incapped   "1"

    // Allow chargers to jump while charging. 0=Off. 1=When alone. 2=Also when carrying a survivor.
    l4d2_charger_jump       "2"

    // 0=Unlimited. Maximum number of jumps per charge.
    l4d2_charger_jumps      "0"

    // Allow chargers to carry and drop survivors with the melee button (RMB). 0=Off. 1=Grab Incapped. 2=Grab Standing. 4=Drop Incapped. 8=Drop Standing. 16=Grab while charging (requires l4d2_charger_punch cvar). Add numbers together.
    l4d2_charger_pickup     "31"

    // Allow pummel to be started and stopped while carrying a survivor (LMB) or Scope/Zoom (MMB/M3) when l4d2_charger_repeat is on. 0=Off. 1=Incapped only. 2=Any survivor.
    l4d2_charger_pummel     "2"

    // 0=Off. 1=Allow punching while charging.
    l4d2_charger_punch      "1"

    // 0=Off. 1=Allow charging while carrying either after charging or after grabbing a survivor and after the charge meter has refilled.
    l4d2_charger_repeat     "0"

    // Survivors can shove chargers to release pummeled victims. 0=Off. 1=Release only. 2=Stumble survivor. 4=Stumble charger. 7=All. Add numbers together.
    l4d2_charger_shove      "7" 

    Changes:
    Code:
    1.14 (25-Sep-2023)
        - Fixed not resetting variables causing some rare bugs. Thanks to "Voevoda" for reporting.
    
    1.13 (25-May-2023)
        - Changed cvar "l4d2_charger_incapped" to control if the Charger can pickup incapped players who are pinned while charging. Requested by "fortheloveof98".
        - Fixed incapped players being revived when a Charger carrying them dies. Thanks to "Mosey" for reporting.
    
    1.12 (10-Feb-2023)
        - Added cvar "l4d2_charger_incapped" to automatically pick up incapacitated Survivors when Charging over them. Requested by "Voevoda"
        - Picking up an incapacitated Survivor now shows the carry animation on the Survivor.
        - Fixed the 3rd person view positioning of a carried survivor. This will somewhat obscure the Chargers 1st person view unfortunately.
        - Fixed punching whilst Charging allowing to steer for a split second. Thanks to "alasfourom" for reporting.
    
    1.11 (05-Jul-2022)
        - Fixed invalid entity error caused by some 3rd party plugins. Thanks to "Voevoda" for reporting.
    
        - Plugin is now compiled with SourceMod 1.11.
    
    1.10 (15-Jun-2022)
        - Fixed small mistake in coding when detecting incapacitated players.
    
    1.9 (20-Mar-2022)
        - Minor change to block pressing attack key when repeat charge is off.
        - Updated GameData signatures to avoid breaking when detoured by the "Left4DHooks" plugin version 1.90 or newer.
    
    1.8 (14-Nov-2021)
        - Changes to fix warnings when compiling on SourceMod 1.11.
        - Updated GameData signatures to avoid breaking when detoured by the "Left4DHooks" plugin.
    
    1.7 (23-May-2020)
        - Added check and fix for Survivors stuck in the falling animation. Thanks to "hoanganh81097" for reporting.
    
    1.6 (15-May-2020)
        - Re-added blocking listen servers.
        - Replaced "point_hurt" entity with "SDKHooks_TakeDamage" function.
    
    1.5 (10-May-2020)
        - Added better error log message when gamedata file is missing.
        - No longer blocking listen servers.
        - Various changes to tidy up code.
    
    1.4 (20-Jan-2020)
        - Added cvar "l4d2_charger_jumps" to limit number of jumps per charge. Requested by "Ethan Max".
        - Optimized cvars for faster CPU processing.
    
    1.3 (17-Jan-2020)
        - Fixed "l4d2_charger_punch" not working unless "l4d2_charger_pickup" was enabled. Thanks to "Ethan Max" for reporting.
    
    1.2 (01-Nov-2019)
        - Big thanks to "paul92" for lots of help testing.
        - Added cvar "l4d2_charger_damage" to deal damage when hitting or grabbing a survivor.
        - Changed cvar "l4d2_charger_finish" by adding "4" to allow carrying after charging.
        - Fixed cvar "l4d2_charger_repeat" not working. Pummel is moved to Scope/Zoom button (MMB/M3) when on.
        - Fixed punching while charging not working without the "Charger Steering" plugin.
        - Players will be able to steer very slightly for 1 frame when punching while charging.
        - This is the only method I know to enable punching while charging. Other attempts failed.
    
    1.1 (10-Oct-2019)
        - Added cvar "l4d2_charger_bots" to control if bots can grab or push survivors when Charging.
        - Fixed not being able to pickup Survivors during Charging.
    
    1.0.2 (10-Sep-2019)
        - Removed PrintToChatAll "Attack time" debug spew...
    
    1.0.1 (01-Jun-2019)
        - Minor changes to code, has no affect and not required.
    
    1.0 (21-Jul-2018)
        - Initial release.

    Requirements:

    Installation:
    • Download the .zip and extract the files to their respective folders in your servers \addons\sourcemod\ folder.


    Updating from 1.3 or older:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
    Attached Files
    File Type: zip l4d2_charger_action.zip (27.5 KB, 291 views)
    __________________

    Last edited by Silvers; 09-25-2023 at 02:20.
    Silvers is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 07-21-2018 , 09:11   Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
    Reply With Quote #2

    Very innovative!
    __________________
    Psyk0tik is offline
    Pyc
    Senior Member
    Join Date: Jan 2014
    Old 07-23-2018 , 10:51   Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
    Reply With Quote #3

    not bad...
    coop, versus?
    Pyc is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-23-2018 , 11:44   Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
    Reply With Quote #4

    Quote:
    Originally Posted by Pyc View Post
    not bad...
    coop, versus?
    Works on both. Lemme know of any issues.
    __________________
    Silvers is offline
    csomania2015
    New Member
    Join Date: Jun 2017
    Old 07-24-2018 , 00:41   Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
    Reply With Quote #5

    it's not work on me, even compile successful
    csomania2015 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-24-2018 , 04:56   Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
    Reply With Quote #6

    Quote:
    Originally Posted by csomania2015 View Post
    it's not work on me, even compile successful
    Compile with debug enabled and see what happens. No error logs?
    __________________
    Silvers is offline
    csomania2015
    New Member
    Join Date: Jun 2017
    Old 07-25-2018 , 00:21   Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
    Reply With Quote #7

    Quote:
    Originally Posted by Silvers View Post
    Compile with debug enabled and see what happens. No error logs?
    it's no log, but still work nothing
    csomania2015 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-27-2018 , 19:04   Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
    Reply With Quote #8

    Quote:
    Originally Posted by csomania2015 View Post
    it's no log, but still work nothing
    The issue was running on a Listen server. This plugin only supports Dedicated servers. Sorry.
    __________________
    Silvers is offline
    chatyak
    Senior Member
    Join Date: Aug 2011
    Old 08-10-2018 , 17:09   Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
    Reply With Quote #9

    Good to see you back in action Silvers
    chatyak is offline
    Pyc
    Senior Member
    Join Date: Jan 2014
    Old 11-02-2018 , 12:07   Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
    Reply With Quote #10

    SI bots doesn't grap survs after pounch
    Pyc 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 07:47.


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