Left 4 Dead 2

Left 4 Dead 2

49 个评价
Weapon Damage Boost (Vscript)
   
奖励
收藏
已收藏
取消收藏
Game Content: Weapons, Scripts
Game Modes: Single Player, Co-op
文件大小
发表于
更新日期
107.883 KB
2024 年 6 月 1 日 上午 10:51
4 月 7 日 下午 12:57
2 项改动说明 ( 查看 )

订阅以下载
Weapon Damage Boost (Vscript)

在 kurochama 的 1 个合集中
Useful "Side-Dish" Mods (Especially for Bots)
61 件物品
描述
So, I decided to extract this feature from "Merciless Bots" as a standalone mod. As the title says, this mod can increase weapon damage without having to edit weapon scripts (like "weapon_smg.txt", "weapon_rifle.txt" etc). This one uses event functions instead, & a cfg file.

Q: How does the damage on this mod work?
A: The damage works as the 2nd attack. For example, if magnum default damage on weapon script is 80, & then you set the magnum damage on cfg file to 500, the 500 damage will be added once the 1st attack of 80 damage hits a zombie. So, you'll get 580 damage in total.

Does the damage work on survivors?
A: For now, it only works on zombies. So, only the original/ default damage of the weapons is applied on friendlyfire on survivors.

Q: Can I reduce the weapon damage instead of increasing it?
A: For now, you can't. I can make it happen, but some bugs might show up, like. if the minus value is higher than the default weapon damage, instead of taking damage, the target will be healed. So that's why for now this feature won't be available.

Features on this mod:
  1. "weapon damage boost.txt": This cfg file contains damage settings for all guns, along with weapon damage boost modes to choose.
  2. Chat command "check damage" to check damage on current weapon player is holding.

With this mod, feel free to add damage without editing the weapon scripts.

Notes:
  • A video preview will be added later.
  • The "Melee Damage" feature in the cfg file of this mod is incompatible with "Knockback Power" feature on my other mod "Melee Frenzy" when value of "Knockback Power" is set to 3, so if you set "Melee Damage" other than 0, you'll need to disable "Knockback Power" or set its value to 2 instead of 3.
  • Max damage of each weapon is unlimited, though I haven't tested to set it higher than 700000. Feel free to experiment :D .
53 条留言
rojakperfect 7 月 26 日 上午 12:38 
And with the other mod too?
rojakperfect 7 月 26 日 上午 12:35 
I don't know. I use sv_infinite_ammo 1. Maybe i will try it. Btw thanks.
kurochama  [作者] 7 月 25 日 上午 11:01 
@rojakperfect , did you reload the gun after changing the cfg file? The changes on the cfg only take effects after reloading the gun.
rojakperfect 7 月 25 日 上午 7:46 
I mean the cfgfile.txt and after trying again it have same problem.
rojakperfect 7 月 25 日 上午 7:45 
It works. And after that i change some parameter and it's doesn't work after i changed it.
kurochama  [作者] 7 月 21 日 下午 8:25 
@rojakperfect , play Singleplayer. Once your character spawns, exit to main menu. The cfg file will be generated in "ems" folder.
rojakperfect 7 月 21 日 下午 5:48 
i can't find out the folder of cfgfile.txt
kurochama  [作者] 7 月 1 日 上午 8:41 
@✟𝐆𝐔𝐒𝐈̇𝐎𝐍✟ , I'm not sure, but probably there's already such mod on workshop. It's actually not difficult to modify health, as some of my custom special infected mods have custom special infected with modified health that doesn't affect the normal special infected.
✟𝐆𝐔𝐒𝐈̇𝐎𝐍✟ 7 月 1 日 上午 6:16 
Hello Kurochoma,
I want to give you an idea that I think would be great. It would be better if you put a workshop mod where we can change the health settings of the infected via a txt file. When subscribing from the workshop, a ready txt file would come, and from there we could adjust the health of the infected, including normal zombies. I think it's a good idea.
kurochama  [作者] 5 月 1 日 下午 7:40 
@magicstick9121 , try to play Singleplayer, & then reload your gun. Before posting the last update, I tested it first because there were new features added, & the test worked well.
So, you can try to check the console after spawning or reloading a gun. If there are no red texts about some errors, the cfg file should show up.