Left 4 Dead 2

Left 4 Dead 2

Melee Attack Speed Modifier (Vscript)
30 条留言
Saeru 11 月 8 日 下午 10:30 
I see, but I was asking not for this script (this is awesome) but for addons that replaces weapons, like any katana or machete addons, I know that some of those usually come with a script that could change the weapons stats, but I don't know if for those addons is also possible to change the weapon speed animation on the model or the animation file rather than using a script (just curious, I don't know and maybe you don't either but asking is worth a shot)
kurochama  [作者] 11 月 8 日 下午 10:22 
@Saeru , the attack speed can be changed as long as the melee model is registered to "registered melee.txt" & the value is set above or lower than 1.
Saeru 11 月 8 日 下午 9:08 
if anyone is looking to match the attack speed of all melees to the fastest one, I've done the math and should look something like this (I've aproximated to one decimal bc is easier to change and i.e. a 0.035 milisecond is unnoticiable):

models/weapons/melee/v_machete.mdl = 1
models/weapons/melee/v_tonfa.mdl = 1.1
models/weapons/melee/v_katana.mdl = 1.1
models/weapons/melee/v_golfclub.mdl = 1.1
models/weapons/melee/v_cricket_bat.mdl = 1.3
models/weapons/melee/v_bat.mdl = 1.2
models/weapons/melee/v_frying_pan.mdl = 1.3
models/weapons/melee/v_pitchfork.mdl = 1.5
models/weapons/melee/v_fireaxe.mdl = 1.3
models/weapons/melee/v_electric_guitar.mdl = 1.3
models/weapons/melee/v_crowbar.mdl = 1.3
models/v_models/v_knife_t.mdl = 1.1
models/weapons/melee/v_shovel.mdl = 1.5
Saeru 11 月 8 日 下午 7:47 
if a weapon model addon doesn't have a weapon script on it means the weapon has the vanilla attack speed? or the attack speed can be changed on animation?
Kали 11 月 4 日 上午 8:31 
@kurochama you're the goat man. thanks
kurochama  [作者] 11 月 4 日 上午 5:36 
@ Kали , I just got time to update this today. Now you can use "allow_only_in_adrenaline_state" feature in case if you only want the melee attack speed to work only during adrenaline state.
Kали 10 月 24 日 下午 7:52 
@kurochama yeah. that would be nice
kurochama  [作者] 10 月 24 日 下午 7:24 
@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али 10 月 24 日 下午 5:33 
could you do that one but that only applies while adrenaline boosted ?
gothhearts 8 月 17 日 上午 1:21 
@ kurochama, omg thank you so much its finally fixed i thought it would also work in notepad haha
kurochama  [作者] 8 月 16 日 下午 9:23 
@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 8 月 16 日 下午 9:05 
@ 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  [作者] 8 月 16 日 下午 3:51 
@ 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 8 月 16 日 下午 2:34 
@ 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  [作者] 8 月 16 日 上午 4:39 
@ 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 8 月 16 日 上午 2:30 
help i did everything step by step but it doesnt work.
Xenorvya 8 月 5 日 下午 5:54 
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  [作者] 7 月 18 日 上午 2:08 
@まきかま , 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.
まきかま 7 月 18 日 上午 1:31 
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 6 月 29 日 下午 6:23 
very usefull
kouga 6 月 29 日 上午 6:49 
@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  [作者] 6 月 29 日 上午 6:27 
@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 6 月 29 日 上午 1:05 
@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 6 月 28 日 下午 9:22 
@kurochama you can research This [github.com], its what i use
kurochama  [作者] 6 月 28 日 下午 1:58 
@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 6 月 28 日 上午 10:18 
yoo finally someone make it, time to goodbye for SM version
Jakiy 6 月 28 日 上午 5:40 
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  [作者] 6 月 28 日 上午 3:48 
@ 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.
Valentinee 6 月 28 日 上午 3:13 
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
Valentinee 6 月 28 日 上午 3:09 
so can i also make it slower?