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

[L4D2] Melee Weapon Fatigue (1.4) [25-Mar-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
8618
Plugin Version:
1.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Introduces the shove penalty fatigue system to melee weapon, combining the two together.
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 - 16 views - 14.2 KB)
File Type: smx l4d2_melee_fatigue.smx (9.6 KB, 20 views)
File Type: txt l4d2_melee_fatigue.txt (1.5 KB, 126 views)
File Type: cfg l4d2_melee_fatigue.cfg (1.2 KB, 114 views)
__________________

Last edited by Silvers; 03-25-2024 at 18:44.
Silvers is offline
Shimo
Junior Member
Join Date: Dec 2023
Old 01-15-2024 , 08:31   Re: [L4D2] Melee Weapon Fatigue (1.2) [13-Jan-2024]
Reply With Quote #2

Is there a way to change the data config without restarting the server?
Shimo is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-15-2024 , 10:34   Re: [L4D2] Melee Weapon Fatigue (1.2) [13-Jan-2024]
Reply With Quote #3

Data config can be reloaded by the command sm_melee_fatigue_reload or by changing map.
__________________
Silvers is offline
lower_oil
New Member
Join Date: Mar 2024
Old 03-21-2024 , 04:52   Re: [L4D2] Melee Weapon Fatigue (1.3) [28-Jan-2024]
Reply With Quote #4

I'm having a problem with the plugin where swinging a melee weapon also does a shove at the same time, even though I am not pressing the button to shove.
lower_oil is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-21-2024 , 09:08   Re: [L4D2] Melee Weapon Fatigue (1.3) [28-Jan-2024]
Reply With Quote #5

Quote:
Originally Posted by lower_oil View Post
I'm having a problem with the plugin where swinging a melee weapon also does a shove at the same time, even though I am not pressing the button to shove.
Does that always happen? Any steps to replicate? Can you test the plugin on it's own without any other plugins and report back if it still happens. I never saw this issue.
__________________
Silvers is offline
lower_oil
New Member
Join Date: Mar 2024
Old 03-21-2024 , 15:24   Re: [L4D2] Melee Weapon Fatigue (1.3) [28-Jan-2024]
Reply With Quote #6

Quote:
Originally Posted by Silvers View Post
Does that always happen? Any steps to replicate? Can you test the plugin on it's own without any other plugins and report back if it still happens. I never saw this issue.
Alright so I just tested it now and went with a completely fresh install of sourcemod, the melee fatigue plugin, and Left 4 Dhooks Direct. Below is the plugins list I had, of which I only left in the default stuff that a fresh sourcemod install has. I am not aware of any steps to replicate, because the shoving bug, for me at least, appears to just have happened for me, and it consistently happens any and every time I go to swing my melee, even on this fresh install. I should also note that I did not use the optional config file.

[SM] Listing 19 plugins:
01 "Admin File Reader" (1.11.0.6956) by AlliedModders LLC
02 "Admin Help" (1.11.0.6956) by AlliedModders LLC
03 "Admin Menu" (1.11.0.6956) by AlliedModders LLC
04 "Anti-Flood" (1.11.0.6956) by AlliedModders LLC
05 "Basic Ban Commands" (1.11.0.6956) by AlliedModders LLC
06 "Basic Chat" (1.11.0.6956) by AlliedModders LLC
07 "Basic Comm Control" (1.11.0.6956) by AlliedModders LLC
08 "Basic Commands" (1.11.0.6956) by AlliedModders LLC
09 "Basic Info Triggers" (1.11.0.6956) by AlliedModders LLC
10 "Basic Votes" (1.11.0.6956) by AlliedModders LLC
11 "Client Preferences" (1.11.0.6956) by AlliedModders LLC
12 "Fun Commands" (1.11.0.6956) by AlliedModders LLC
13 "Fun Votes" (1.11.0.6956) by AlliedModders LLC
14 "[L4D2] Melee Weapon Fatigue" (1.3) by SilverShot
15 "[L4D & L4D2] Left 4 DHooks Direct" (1.144) by SilverShot
16 Disabled: "Nextmap" (1.11.0.6956) by AlliedModders LLC
17 "Player Commands" (1.11.0.6956) by AlliedModders LLC
18 "Reserved Slots" (1.11.0.6956) by AlliedModders LLC
19 "Sound Commands" (1.11.0.6956) by AlliedModders LLC

Last edited by lower_oil; 03-21-2024 at 15:24.
lower_oil is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-25-2024 , 18:45   Re: [L4D2] Melee Weapon Fatigue (1.4) [25-Mar-2024]
Reply With Quote #7

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



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


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