Left 4 Dead 2

Left 4 Dead 2

97 ratings
Melee Weapon Increased Ragdoll Knockback (Lite)
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
Game Modes: Single Player, Co-op
Weapons: Melee
File Size
Posted
53.407 KB
17 Oct, 2024 @ 11:37pm
1 Change Note ( view )

Subscribe to download
Melee Weapon Increased Ragdoll Knockback (Lite)

Description
Made by request, a toned down version of this mod
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3246980935&tscn=1729231596

Killing an infected with a melee weapon will cause their ragdoll to fly backwards. It's much further than in vanilla gameplay, but not as ridiculous as the original.
31 Comments
Geebanger0  [author] 30 Jun @ 12:54am 
Or there might be another way (probably is) but I experimented with it a while back and the animations always broke unless I used the existing swings.
Geebanger0  [author] 30 Jun @ 12:53am 
Yes as far as I know you can only reuse whats already there unless you want to make custom animations
Fawk Meias 29 Jun @ 11:44pm 
oh wait, you can only change the millisecond from either of each swing's og millisecond?, not customise it?
Geebanger0  [author] 29 Jun @ 12:20am 
The Tonfa has 2 swings. The first swing is 1 second, the next is 0.8 seconds. I could make them both 0.8 seconds.
Fawk Meias 28 Jun @ 11:03pm 
can you do a .1 swing speed as experimental version?
Geebanger0  [author] 28 Jun @ 10:34pm 
Yes but the difference will come down to fractions of a second. It won't be anywhere near what you're imagining with fists of fury. You likely won't even be able to tell the difference.
Fawk Meias 28 Jun @ 10:17pm 
a faster melee attack speed, from the simple one
Geebanger0  [author] 28 Jun @ 4:24am 
Which one?
Fawk Meias 28 Jun @ 1:45am 
do you think you can do it?
Geebanger0  [author] 27 Jun @ 11:33pm 
As far as I know, it can be done in 2 ways.

Melee weapons are controlled by weapon.txt script files. These files contain information relating to the swing patterns; which direction the weapon is swung, which animations are played, which hitrays to draw, etc.

The simplest way of buffing a melee is to add or change the swing pattern to a faster one. A melee might have 3 different swings in its swing pattern, EG: Swing 1 = 0.6 seconds, Swing 2 = 0.8 seconds, Swing 3 = 0.75 seconds. You can edit the weapon.txt script and change swings 2 and 3 to be identical to swing 1, making the pattern faster overall. You could also add a 4th swing, which matches swing 1.

The other way is similar, but instead of copying existing swings you make new ones. I think it requires new animations to be made though.