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

how do i make a projectile that can hurt enemies but not the player?

Question

I was trying to make a weapon that shoots an explosive projectile.

I know you can add "flags" so the projectile can have different properties

and i was wondering if there is a flag or something to make the explosion of the projectile hurt enemies but not the player who shot it

 

(sorry if my english is not that good)

Edited by Jaori_Daevans

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 1

Here's an example of the stock rocket that doesn't hurt the player.


ACTOR SafeRocket : Rocket
{
  States
  {
  Spawn:
    MISL A 1 Bright
    Loop
  Death:
    MISL B 8 Bright A_Explode(128,128,0) //Here's the change. By setting the flag section to 0 "XF_HURTSOURCE " is disabled
    MISL C 6 Bright
    MISL D 4 Bright
    Stop
  }
}

 

Check this for more details - https://zdoom.org/wiki/A_Explode

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
×