Thing_Spawn(); + Deaf Flag?

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Logan MTM
Posts: 179
Joined: Wed Jan 04, 2006 2:52
Location: Rio de Janeiro - BRAZIL
Contact:

Thing_Spawn(); + Deaf Flag?

Post by Logan MTM »

That is possible?
I mean, how to Spawn a monster as Deaf Thing?

If this isn't possible, go to Feature Suggestions. 8)
So as you read this know my friends I'd love to stay with you all.
Please smile when you think of me. My body's gone that's all...
User avatar
Rachael
Developer
Developer
Posts: 3651
Joined: Sat May 13, 2006 10:30

Post by Rachael »

It's actually an ambush flag, (calling it the "deaf" flag wouldn't be totally right) and yes it is possible, if the parent object has one itself. There's a flag for transferring the ambush flag, which can be set on the fly before it even spawns.

More info here:
http://zdoom.org/wiki/A_SpawnItemEx (SXF_TRANSFERAMBUSHFLAG)
http://zdoom.org/wiki/A_ChangeFlag

Of course, these are decorate functions, making it work with Thing_Spawn might be a little more complicated, but I assure you, is quite doable. Just I can't think of a very clean way to do it.
Locked

Return to “GZDoom”