{
self.monster_movestate = MONSTER_MOVE_OWNER;
self.last_trace = time + 0.3;
- if(self.monster_owner)
- return self.monster_owner.origin;
+ return (self.monster_owner) ? self.monster_owner.origin : self.origin;
}
case MONSTER_MOVE_SPAWNLOC:
{
const float MONSTERFLAG_APPEAR = 2; // delay spawn until triggered
const float MONSTERFLAG_NORESPAWN = 4;
const float MONSTERFLAG_FLY_VERTICAL = 8; // fly/swim vertically
-const float MONSTERFLAG_INFRONT = 16; // only check for enemies infront of us
+const float MONSTERFLAG_INFRONT = 32; // only check for enemies infront of us
const float MONSTERFLAG_MINIBOSS = 64; // monster spawns as mini-boss (also has a chance of naturally becoming one)
const float MONSTERFLAG_SPAWNED = 16384; // flag for spawned monsters