Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to make the player immune to his own splash damage?

Recommended Posts

I am creating a custom weapon that uses a custom projectile, but the thing is that I want the player to be immune to the splash damage from it. I am using the "A_Explode" action function but on the zdoom page for it I don't see any option for making it ignore the player, but only for harming him (which the page says it does by default anyway). How can I make the splash damage inflict damage to monsters only?

Share this post

Link to post

What tempdecal.wad said will work, but you could also set the flags in A_Explode to 0, which would clear the XF_HURTSOURCE flag, which is set by default.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now