Left 4 Dead 2

Left 4 Dead 2

Melee Attack Speed Modifier (Vscript)
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.
Xenorvya 5 Aug @ 5:54pm 
This works better than Melee Speed Modifier, because in that mod if you don't hold down M1, you can attack as quickly as vanilla setting, but with this mod, holding or clicking to swing the melee after the animation is over WILL STILL wait, so if a fireaxe is 0.25 it will be a long time until you can swing it again, even when clicking. Lovely.
kurochama  [author] 18 Jul @ 2:08am 
@まきかま , wrong model names for knife & baseball bat. Try to check the model names by using "check weapon model" chat command when holding knife or baseball_bat.
まきかま 18 Jul @ 1:31am 
The attack speed doesn't change for only the baseball bat and knife. I added "baseball_bat.mdl = 2" and "knife.mdl = 2" respectively, but it doesn't reflect. Is there something wrong with the way I wrote them?
o_-KILLJOY-_o 29 Jun @ 6:23pm 
very usefull
kouga 29 Jun @ 6:49am 
@kurochama, gotcha! ill do just that. thanks for your response! if its alright to throw another request, what do you think about updating "Scope on all guns" to include melees?
kurochama  [author] 29 Jun @ 6:27am 
@L_M , thanks for the link :steamhappy:

@Kouga , normally it's possible to add such "registered melee.txt" on my "Throwable Melee", but I don't plan to add that as the purpose of that mod is to make all melee throwable. If you want to study the mechanisms to register melee, you can check the "weapon_fire" event function on this mod. & if you want to try to use it on your modified "Throwable Melee", you simply need to put it on "weapon_fire" if you use normal throw instead of low-gravity throw.
kouga 29 Jun @ 1:05am 
@kurochama wow this looks fantastic. can you add the sameb registering mechanic to the "throwable melee" mod? it would be awesome to configure which weapons can be thrown and which not. im probably gonna use it to exclude the hands custom melee if so. im sounding a bit lazy by requesting this but i just think it would be better to have such a mechanic in the original "throwable melee" mod anyway, that way others can come up with their own combinations. that said, while waiting for your response im going to dig into the code of this and melee frenzy for some clues as well.
L_M 28 Jun @ 9:22pm 
@kurochama you can research This [github.com], its what i use
kurochama  [author] 28 Jun @ 1:58pm 
@Jakiy , I'm not sure about how fast melee exploit works, but this one can increase melee attack speed without any tricks. & yeah, it's useful for bots as they're usually can't use melee properly during horde. With this, they should be able to handle horde better with increased attack speed :steamhappy:

@L_M , probably I'll need to check the sm version later, as I'm curious enough about how the mechanisms of sm version works.
L_M 28 Jun @ 10:18am 
yoo finally someone make it, time to goodbye for SM version
Jakiy 28 Jun @ 5:40am 
Would love to see the random speed option. Could be fun. Is this still needed if people already use their fast melee exploit script? But for bots, this can come in handy since they can't even slay a group of hordes or good with melees. :steamhappy:
kurochama  [author] 28 Jun @ 3:48am 
@ Valentinee , you can try it. Normally value below 1 will make the attack speed slower. But the lowest limit would be above 0 (like 0.1). Setting the value to minus might cause a bug.
As for the "quick melee", this mechanism might require melee weapon script that modifies the deploy duration. If you have a melee script mod that makes the deploy duration fast, you can try to make it manually by using "bind" with several combined commands like switching to melee, attacking & then switching back to primary.
Karmine 28 Jun @ 3:13am 
i wonder if you could make a "quick melee" keybind script. For example, pressing V will automatically switch to your melee and attack then switch back to whatever you were holding
Karmine 28 Jun @ 3:09am 
so can i also make it slower?