diff --git a/src/playsim/p_enemy.cpp b/src/playsim/p_enemy.cpp index 3fe51585d0..207f9aaf0d 100644 --- a/src/playsim/p_enemy.cpp +++ b/src/playsim/p_enemy.cpp @@ -2189,6 +2189,7 @@ enum ChaseFlags CHF_NODIRECTIONTURN = 64, CHF_NOPOSTATTACKTURN = 128, CHF_STOPIFBLOCKED = 256, + CHF_DONTIDLE = 512, }; void A_Wander(AActor *self, int flags) @@ -2430,7 +2431,7 @@ void A_DoChase (AActor *actor, bool fastchase, FState *meleestate, FState *missi } if (actor->target == NULL) { - if (actor->flags & MF_FRIENDLY) + if (flags & CHF_DONTIDLE || actor->flags & MF_FRIENDLY) { //A_Look(actor); if (actor->target == NULL) diff --git a/wadsrc/static/zscript/constants.zs b/wadsrc/static/zscript/constants.zs index de7eab3d97..77f99c7f80 100644 --- a/wadsrc/static/zscript/constants.zs +++ b/wadsrc/static/zscript/constants.zs @@ -140,6 +140,7 @@ enum EChaseFlags CHF_NODIRECTIONTURN = 64, CHF_NOPOSTATTACKTURN = 128, CHF_STOPIFBLOCKED = 256, + CHF_DONTIDLE = 512, CHF_DONTTURN = CHF_NORANDOMTURN | CHF_NOPOSTATTACKTURN | CHF_STOPIFBLOCKED };