Posts: 45
Threads: 10
Joined: Oct 2011
Reputation:
0
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?
Posts: 379
Threads: 37
Joined: Dec 2010
Reputation:
6
11-29-2011, 14:31
(This post was last modified: 11-29-2011, 14:33 by No One.)
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?
Posts: 45
Threads: 10
Joined: Oct 2011
Reputation:
0
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.
Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
if( sMeansOfDeath == "MOD_IMPACT" )
iDamage = 500;
I think this will work
Posts: 45
Threads: 10
Joined: Oct 2011
Reputation:
0
11-29-2011, 15:30
(This post was last modified: 11-29-2011, 16:04 by frozenliquid.)
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!
Posts: 2,157
Threads: 120
Joined: Apr 2011
Reputation:
71
Remember to set the weapon too...
If you're doing what I think you're doing.