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