Left 4 Dead 2

Left 4 Dead 2

44 个评价
Melee Attack Speed Modifier (Vscript)
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts
Game Modes: Single Player, Co-op
Weapons: Melee
文件大小
发表于
更新日期
15.378 KB
6 月 27 日 下午 11:57
11 月 4 日 上午 5:31
2 项改动说明 ( 查看 )

订阅以下载
Melee Attack Speed Modifier (Vscript)

在 kurochama 的 1 个合集中
Useful "Side-Dish" Mods (Especially for Bots)
64 件物品
描述
"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":
    1. melee_speed_modifier_user: Who can use this (bots/ players/ all).

    2. allow_only_in_adrenaline_state: When enabled, melee attack speed is changed only if survivor is in adrenaline state after using adrenaline shot.

  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.
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