View Single Post
Author Message
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-11-2024 , 10:48   [L4D2] Melee Weapon Fatigue (1.4) [25-Mar-2024]
Reply With Quote #1

Related Plugins:

About:
  • Melee weapons will now share the Shove penalty system. Both affect each other and prevent melee or shove attacks when on the penalty cooldown.
  • The shove/melee cooldown circle when the penalty is reached does not start from 0, this is a known issue with setting the next shove time and penalty. Client side issue that cannot be fixed.
  • Optional data config allows you to add or subtract the next attack delay time to any melee weapon.
  • Data config can be reloaded by the command sm_melee_fatigue_reload or by changing map.


Thanks:
  • TBK Duy - For the request.
  • Forgetest - For feedback.


Admin Commands: (requires "z" flag)
PHP Code:
sm_melee_fatigue_reload // Reloads the Melee Weapon Fatigue data config. 

Cvars:

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

PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d2_melee_fatigue_allow "1"

// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d2_melee_fatigue_modes ""

// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d2_melee_fatigue_modes_off ""

// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d2_melee_fatigue_modes_tog "0"

// Melee Weapon Fatigue plugin version.
l4d2_melee_fatigue_version 


Changes:
Code:
1.4 (25-Mar-2024)
    - Fixed melee swings shoving the victim. Thanks to "lower_oil" for reporting and "HarryPotter" for testing.

1.3 (28-Jan-2024)
    - Fixed memory leak caused by clearing StringMap/ArrayList data instead of deleting.

1.2 (13-Jan-2024)
    - Fixed the plugin affecting some clients when the plugin is disabled.

1.1 (12-Jan-2024)
    - Data config now supports any melee script name, including those from 3rd party maps.
    - Fixed switching weapons being able to bypass the melee time.
    - Fixed glitches with constantly shooting if the melee delay was less than 0.1.

1.0 (11-Jan-2024)
    - Initial release.


Requirements:
  1. Left 4 DHooks Direct plugin.


Installation:
DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires Left4DHooks!
  • Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
  • Download the .txt file and put into your servers \addons\sourcemod\gamedata folder.
  • Optionally download the .cfg file and put into your servers \addons\sourcemod\data folder.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_melee_fatigue.sp - 41 views - 14.2 KB)
File Type: smx l4d2_melee_fatigue.smx (9.6 KB, 50 views)
File Type: txt l4d2_melee_fatigue.txt (1.5 KB, 174 views)
File Type: cfg l4d2_melee_fatigue.cfg (1.2 KB, 152 views)
__________________

Last edited by Silvers; 03-25-2024 at 18:44.
Silvers is offline