Monster run away from player
Monster run away from player
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.
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.
Last edited by bleson on Wed Jan 09, 2013 1:03 pm, edited 1 time in total.
RE: Monster run away from player
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)
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
RE: Monster run away from player
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
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)
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
RE: Monster run away from player
Give PowerFrightener
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: Monster run away from player
FYI, this is not a crash. Zandronum informs you that the supplied DECORATE code is erroneous and exits gracefully.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.
RE: Monster run away from player
There is a command to make monsters run away, and the command is "Anubis" :>
- Combinebobnt
- Retired Staff / Community Team Member
- Posts: 1905
- Joined: Mon Jun 04, 2012 3:37 am
- Location: Earth
- Contact:
RE: Monster run away from player
+FRIGHTENED works just fine in my wads for me.
RE: Monster run away from player
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?
+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
Correct.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
