ItsMods

Full Version: How to edit direct impact damage?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello again. I have a Ray Gun and Mustang & Sally on my mod. Spalsh damage works on them fine, but direct impact is always instant kill.

How do I modify direct impact dmg?

Also I've changed all custom weapons in callbacksetup onPlayerDamage by doing:

if(sWeapon == "ray_gun_zm")
iDamage = 150;

etc. for all SP weapons that I use. I've tried editing the damages and ammo quantities etc. straight from the weapon file, but they never seem to have any effect.

Tips?
Well u made the damage 150 so it will be a one hit kill, i dont think u can alter the splash dakage anyway only the ditect damage or maybe just increase the health of the players so they can with stand more damage

Im not sure but arnt u meant to have { } between the if statement?
lol I am aware of a normal player having 100 health. The problem arises when the enemy (a zombie) has 500 hp.

The iDamage seems to ONLY affect the splash damage as for both guns the splash dmg is not insta kill, only a direct hit is.

if( sMeansOfDeath == "MOD_IMPACT" )
iDamage = 500;

I think this will work
Will try that thanks. But I have a slight doubt about that as the kill in the killfeed is not the same as a normal direct impact kill. (Doesn't have that icon when a noobtube impact kills someone)

Will try anyway :p
OWMAIGAWD it did work! TYVM!
Remember to set the weapon too...

If you're doing what I think you're doing.
(11-29-2011, 17:44)Rendflex Wrote: [ -> ]Remember to set the weapon too...

If you're doing what I think you're doing.

Yea added the means of death code and dmg first and normal weapon dmg below. Worked like a charm.