Raised This Month: $ Target: $400
 0% 

[L4D2] Melee Weapon Fatigue (1.8) [05-Nov-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.8
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
2 
Plugin Description:
Introduces the shove penalty fatigue system to melee weapon, combining the two together.
Old 01-11-2024 , 11:48   [L4D2] Melee Weapon Fatigue (1.8) [05-Nov-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.8 (05-Nov-2024)
    - Fixed immediately swinging after switching weapons. Thanks to "TBK Duy" for reporting.
    - Fixed the "Tonfa" from "Riot" zombies, and possibly other melee weapons not being recognized when missing their script name.

1.7 (07-Sep-2024)
    - Fixed playing the shove sound when hitting common with melee weapons. Thanks to "Tighty Whitey" for reporting.

1.6 (13-Aug-2024)
    - Fixed playing the shove sound when hitting walls with melee weapons. Thanks to "Tighty Whitey" for reporting.

1.5 (06-Aug-2024)
    - Fixed playing the shove sound when using melee weapons. Thanks to "Tighty Whitey" for reporting.

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 - 50 views - 16.7 KB)
File Type: smx l4d2_melee_fatigue.smx (10.9 KB, 43 views)
File Type: txt l4d2_melee_fatigue.txt (1.5 KB, 343 views)
File Type: cfg l4d2_melee_fatigue.cfg (1.2 KB, 297 views)
__________________

Last edited by Silvers; 11-05-2024 at 07:26.
Silvers is offline
Shimo
Junior Member
Join Date: Dec 2023
Old 01-15-2024 , 09: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 , 11: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 , 05: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 , 10: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 , 16: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 16:24.
lower_oil is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-25-2024 , 19: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
Tighty Whitey
Junior Member
Join Date: Aug 2024
Old 08-05-2024 , 07:54   Re: [L4D2] Melee Weapon Fatigue (1.4) [25-Mar-2024]
Reply With Quote #8

While attacking with a melee weapon, the shove sound is played simultaneously and both overlap one another. Because the range of melee weapons and shove differ, you can still hear the shove sound playing and hitting a wall by swinging in its direction, even if melee weapon doesn't hit the wall. Is there a way you could remove the shove sound while swinging a melee weapon or it's client sided and out of your reach?
Tighty Whitey is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-06-2024 , 13:47   Re: [L4D2] Melee Weapon Fatigue (1.5) [06-Aug-2024]
Reply With Quote #9

Code:
1.5 (06-Aug-2024)
    - Fixed playing the shove sound when using melee weapons. Thanks to "Tighty Whitey" for reporting.
__________________
Silvers is offline
Tighty Whitey
Junior Member
Join Date: Aug 2024
Old 08-07-2024 , 04:27   Re: [L4D2] Melee Weapon Fatigue (1.5) [06-Aug-2024]
Reply With Quote #10

Quote:
Originally Posted by Silvers View Post
Code:
1.5 (06-Aug-2024)
    - Fixed playing the shove sound when using melee weapons. Thanks to "Tighty Whitey" for reporting.
This issue appears not to be fixed still. A couple of days ago i sent you a private message where i explained that it's still not fixed. Did it not get sent?

"This does not fix the issue. No difference. Shove sound and melee swinging sounds are still playing together and it still registrates shove sound while swinging melee."
Tighty Whitey 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 04:33.


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