AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Charger Actions (1.14) [25-Sep-2023] (https://forums.alliedmods.net/showthread.php?t=309321)

Silvers 07-21-2018 08:00

[L4D2] Charger Actions (1.14) [25-Sep-2023]
 
17 Attachment(s)
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.

Psyk0tik 07-21-2018 09:11

Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
 
Very innovative!

Pyc 07-23-2018 10:51

Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
 
not bad...
coop, versus?

Silvers 07-23-2018 11:44

Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
 
Quote:

Originally Posted by Pyc (Post 2605627)
not bad...
coop, versus?

Works on both. Lemme know of any issues.

csomania2015 07-24-2018 00:41

Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
 
it's not work on me, even compile successful

Silvers 07-24-2018 04:56

Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
 
Quote:

Originally Posted by csomania2015 (Post 2605790)
it's not work on me, even compile successful

Compile with debug enabled and see what happens. No error logs?

csomania2015 07-25-2018 00:21

Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
 
Quote:

Originally Posted by Silvers (Post 2605827)
Compile with debug enabled and see what happens. No error logs?

it's no log, but still work nothing

Silvers 07-27-2018 19:04

Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
 
Quote:

Originally Posted by csomania2015 (Post 2606003)
it's no log, but still work nothing

The issue was running on a Listen server. This plugin only supports Dedicated servers. Sorry.

chatyak 08-10-2018 17:09

Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
 
Good to see you back in action Silvers

Pyc 11-02-2018 12:07

Re: [L4D2] Charger Actions (1.0) [21-Jul-2018]
 
SI bots doesn't grap survs after pounch :(


All times are GMT -4. The time now is 02:25.

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