Page 1 of 1

Monster run away from player

Posted: Wed Jan 09, 2013 11:42 am
by bleson
I need to make a monster run away [from the player]. The only thing I could find on the internet about this is a ZDoom flag called "FRIGHTENED", which doesn't actually work when tested with Zandronum (or I'm doing it wrong).
Do you know of any alternatives?

EDIT: Yes I've heard of the method of giving it a negative speed and reversing the sprites to create the illusion of running away, but that isn't suitable in my situation I'm afraid. Its facing direction does matter.

RE: Monster run away from player

Posted: Wed Jan 09, 2013 1:41 pm
by Ivan
Check if the monster is frightened in it's missile/melee state, then if so, force it to run away. (AFAIK, you gotta define a new state that is different than see state otherwise it has a chance to enter infinite loop, that is, this new state doesn't make the monster go to it's melee/missile states)

RE: Monster run away from player

Posted: Wed Jan 09, 2013 3:35 pm
by bleson
Just to make sure, having the "FRIGHTENED" flag causes Zandronum to crash with an error message suggesting that it's an invalid identifier.

RE: Monster run away from player

Posted: Wed Jan 09, 2013 3:52 pm
by Ivan
Really? Damn. You can check how KDIZD did it, they had a terror sphere which had the same effect on monsters. That should give you an idea, as I know it works in Zandronum. (At least 80% sure it works :P)

RE: Monster run away from player

Posted: Wed Jan 09, 2013 5:54 pm
by Ænima
Give PowerFrightener

RE: Monster run away from player

Posted: Wed Jan 09, 2013 9:05 pm
by Torr Samaho
bleson wrote: Just to make sure, having the "FRIGHTENED" flag causes Zandronum to crash with an error message suggesting that it's an invalid identifier.
FYI, this is not a crash. Zandronum informs you that the supplied DECORATE code is erroneous and exits gracefully.

RE: Monster run away from player

Posted: Wed Jan 09, 2013 9:10 pm
by MAST0D0N
There is a command to make monsters run away, and the command is "Anubis" :>

RE: Monster run away from player

Posted: Wed Jan 09, 2013 9:47 pm
by Combinebobnt
+FRIGHTENED works just fine in my wads for me.

RE: Monster run away from player

Posted: Thu Jan 10, 2013 2:10 am
by bleson
Yep, sorry, my mistake!
+FRIGHTENED does work.

So I'd use A_ChangeFlag ("FRIGHTENED", 1) in its See state for it to run away, right?

RE: Monster run away from player

Posted: Thu Jan 10, 2013 2:34 am
by Ænima
Correct.