DECORATE A-explode: turn XF_HURTSOURCE flag off.

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
NaturalTvventy
Posts: 92
Joined: Sat May 22, 2010 9:38 am

DECORATE A-explode: turn XF_HURTSOURCE flag off.

Post by NaturalTvventy »

Total newbie question. I don't know to to set the flag XF_HURTSOURCE in A_explode to false. I've tried A_explode (5, 32, XF_HURTSOURCE = False) and other varieties but to no avail.
User avatar
wildweasel
Posts: 21705
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

Re: DECORATE A-explode: turn XF_HURTSOURCE flag off.

Post by wildweasel »

If you do not intend to set any other flags, simply set the flags argument to 0. Example:

Code: Select all

A_Explode(5, 32, 0)
NaturalTvventy
Posts: 92
Joined: Sat May 22, 2010 9:38 am

Re: DECORATE A-explode: turn XF_HURTSOURCE flag off.

Post by NaturalTvventy »

wildweasel wrote:If you do not intend to set any other flags, simply set the flags argument to 0. Example:

Code: Select all

A_Explode(5, 32, 0)

Cool, thanks, though it didn't have the desired affect. I'm trying to make an explosive projectile attack that doesn't hurt the monster type that attacks with it. An example would be cyberdemons being unable to hurt one another, though I recognize that this is because cyberdemons don't take explosive damage. I'd like a monster with an explosive attack that can take explosive damage but can't hurt inter-species. Can this be done?

Thanks!

Edit: Found it. +DONTHURTSPECIES actor flag.

Return to “Editing (Archive)”