Left 4 Dead 2

Left 4 Dead 2

37 ratings
Weapon Damage Boost (Vscript)
   
Award
Favorite
Favorited
Unfavorite
Game Content: Weapons, Scripts
Game Modes: Single Player, Co-op
File Size
Posted
Updated
107.883 KB
1 Jun, 2024 @ 10:51am
7 Apr @ 12:57pm
2 Change Notes ( view )

Subscribe to download
Weapon Damage Boost (Vscript)

In 1 collection by kurochama
Useful "Side-Dish" Mods (Especially for Bots)
46 items
Description
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 Comments
rojakperfect 26 Jul @ 12:38am 
And with the other mod too?
rojakperfect 26 Jul @ 12:35am 
I don't know. I use sv_infinite_ammo 1. Maybe i will try it. Btw thanks.
kurochama  [author] 25 Jul @ 11:01am 
@rojakperfect , did you reload the gun after changing the cfg file? The changes on the cfg only take effects after reloading the gun.
rojakperfect 25 Jul @ 7:46am 
I mean the cfgfile.txt and after trying again it have same problem.
rojakperfect 25 Jul @ 7:45am 
It works. And after that i change some parameter and it's doesn't work after i changed it.
kurochama  [author] 21 Jul @ 8:25pm 
@rojakperfect , play Singleplayer. Once your character spawns, exit to main menu. The cfg file will be generated in "ems" folder.
rojakperfect 21 Jul @ 5:48pm 
i can't find out the folder of cfgfile.txt
kurochama  [author] 1 Jul @ 8:41am 
@✟𝐆𝐔𝐒𝐈̇𝐎𝐍✟ , 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.
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  [author] 1 May @ 7:40pm 
@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.