Left 4 Dead 2

Left 4 Dead 2

41 ratings
Melee Attack Speed Modifier (Vscript)
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
Game Modes: Single Player, Co-op
Weapons: Melee
File Size
Posted
13.996 KB
27 Jun @ 11:57pm
1 Change Note ( view )

Subscribe to download
Melee Attack Speed Modifier (Vscript)

In 1 collection by kurochama
Useful "Side-Dish" Mods (Especially for Bots)
61 items
Description
"What if you can freely change each melee attack speed without modifying any of melee weapon scripts?"
"What if a cfg file is all you need to change each melee attack speed?"


If you ever used my "Melee Frenzy" mod, you'll be familiar with this feature. I can say that this one is the little brother of that "Melee Frenzy" mod. This mod allows you to freely modify attack speed of any melee you register to the cfg file, & custom melee weapons can be included as long as you register them.

Q: "What makes it different from 'Melee Frenzy' mod?"
A: "That mod applies melee attack speed to all melee instead, while this one can freely choose which melee you want to modify the attack speed, by registering them to the cfg file."


2 cfg files & 1 chat command is available on this mod:
  1. "melee attack speed modifier.txt": This has one feature (for now):
    1. melee_speed_modifier_user: Who can use this (bots/ players/ all).

  2. "registered melee.txt": This one is to register the melee you want to modify the attack speed. The value there represent the attack speed multiplier in decimals. The examples of the content are like this:
    tonfa.mdl = 1 models/weapons/melee/v_fireaxe.mdl = 1.5 frying_pan.mdl = 3.6

  3. Chat Command:
    check weapon model = Check the model name of the weapon you're holding (to check the melee model name if it's a custom melee).


Mechanisms of "Melee Attack Speed Modifier":
  • Play Singleplayer or host a server with this mod, & attack with any melee to generate "registered melee.txt".

  • Register any melee you want to modify the attack speed to "registered melee.txt" with correct formats. The melee model names can be in long names (like the example on the fireaxe above), of the short name (like the examples on tonfa & frying pan above). The formats must be correct.

  • The number after the "=" on the "registered melee.txt" represents the attack speed multiplier (the "1.5" on fireaxe, & "3.6" on frying pan). 1 means 1x attack speed (normal/ default). There's no limit for how fast or slow the attack speed can be modified, but if you set the attack speed to be too fast, the melee attack will be bugged & the attack will miss. The safe value will be around 4-6 (4x-6x speed), depending on the melee (fireaxe can still be modified up to 6x, but knife will start to be bugged if modified above 4x).


So with this, you're ready to become a kungfu master in a zombie apocalypse :D. Hold attack button with shovel or frying pan, & become Wong Fei Hung or Ip Man to smash zombies so fast like kungfu combo with melee weapons :D .


NOTES:
  • The melee attack speed modifier is incompatible with "Melee Attack Speed" feature on "Melee Frenzy" mod. So, if you use this melee modifier & want to use "Melee Frenzy" as well, disable the "Melee Attack Speed" on "Melee Frenzy" to prevent unwanted bugs.
24 Comments
Kали 24 Oct @ 7:52pm 
@kurochama yeah. that would be nice
kurochama  [author] 24 Oct @ 7:24pm 
@Kали , that would be a weaker version than this then. Probably I can add a new feature later, like "allow_speed_only_in_adrenaline_state".
Kали 24 Oct @ 5:33pm 
could you do that one but that only applies while adrenaline boosted ?
gothhearts 17 Aug @ 1:21am 
@ kurochama, omg thank you so much its finally fixed i thought it would also work in notepad haha
kurochama  [author] 16 Aug @ 9:23pm 
@ikc0n , what's with those chinese texts & symbols? I didn't include any chinese texts on the cfg file. If such texts show up, try to delete the cfg file & use different notepad application. Sometimes windows notepad can cause that chinese text bug. One of recommended notepad applications is "Notepad++". You can search via google or any search engines.

& you can shorten the name to only "katana.mdl" & it will still work.
gothhearts 16 Aug @ 9:05pm 
@ kurochama , here is my content inside of my "registered melee.txt"

潴普⹡摭‽റ洊摯汥⽳敷灡湯⽳敭敬⽥彶楦敲硡⹥摭‽റ昊祲湩彧慰⹮摭‽റഊ

models/weapons/melee/v_katana.mdl = 4.5
models/weapons/melee/v_machete.mdl = 4.5
kurochama  [author] 16 Aug @ 3:51pm 
@ ikc0n , that's strange. Even I ever tested to register "sentry.mdl" (model for sentry turret custom weapon) & it worked. What melee did you want to add? Try to copy-paste the content of your "registered melee.txt" here.
gothhearts 16 Aug @ 2:34pm 
@ kurochama , i have the correct model name and used the "check model name" chat command. i put it in "registered melee.txt" but it doesnt work.
kurochama  [author] 16 Aug @ 4:39am 
@ ikc0n , did you write the correct model name of the melee? If you're not sure about the melee model name, you can use "check model name" chat command. The model name will show up as a notification in chat. Just copy-paste the long name or simply just the "meleename.mdl" & it should start to work.
gothhearts 16 Aug @ 2:30am 
help i did everything step by step but it doesnt work.