Unsetting flags inside A_Explode

Sun Feb 20, 2022 1:55 pm

I have a problem, I want to enforce no vertical thrust from certain explosions independently of how compat_explode1 is set. But I don't know how to force in the flag inside A_Explode call. I tried this but it doesn't work.

Code:
MEXP G 1 bright A_Explode(64, 128, XF_HURTSOURCE | ~XF_THRUSTZ, true);


Is it even possible?

Re: Unsetting flags inside A_Explode

Sun Feb 20, 2022 8:40 pm

It's simply set as the default value of the flags argument, so you just need to not pass the flag. (If you didn't want to pass in any other flags, you'd put in 0 instead)

Re: Unsetting flags inside A_Explode

Mon Feb 21, 2022 12:33 am

That still throws me into stratosphere, I tried. It gets overriden by the compat option. I kinda need to enforce it not to use the Zthrust when exploding.