I'm making a duel mod involving rocket launchers. My goal is to have the explosions of the rockets deal full damage to opponents and 50% reduced damage to the person that fired it, to encourage rocket jumping around.
Is reduced self damage possible? If so, how can I do it?
Reduce self damage from an explosive
Re: Reduce self damage from an explosive
Instead of one explosion action ...
EXPL A 2 A_Explode(128,128,1)
... split it into two calls, one of which has the “damage shooter” flag and the other doesn’t:
EXPL A 0 A_Explode(64,128,1)
EXPL A 2 A_Explode(64,128,0)
EXPL A 2 A_Explode(128,128,1)
... split it into two calls, one of which has the “damage shooter” flag and the other doesn’t:
EXPL A 0 A_Explode(64,128,1)
EXPL A 2 A_Explode(64,128,0)
Doom64: Unabsolved: New weapons, monsters, and gameplay features for coop !
ZandroSkins: a pack made by our community
Doom64: Unabsolved: New weapons, monsters, and gameplay features for coop !
ZandroSkins: a pack made by our community
Re: Reduce self damage from an explosive
That works for reducing the self damage!
One problem though, now when I rocket jump, I'm not going as high.
Is there a way to make the explosion still push me at full force while dealing half damage?
One problem though, now when I rocket jump, I'm not going as high.
Is there a way to make the explosion still push me at full force while dealing half damage?
-
- Forum Regular
- Posts: 227
- Joined: Tue Jun 05, 2012 1:17 am
- Location: Somewhere in the future
- Contact:
Re: Reduce self damage from an explosive
Actually the engine has an internal console command for such effect which is splashfactor.
Setting that to 0.5 should give you the desired effect without any extra-code.
Setting that to 0.5 should give you the desired effect without any extra-code.
Re: Reduce self damage from an explosive
Maybe A_RadiusThrust would help.
"For the world is hollow, and I have touched the sky."