Skip to content
Permalink
Browse files

What if I just let A_Chase handle everything?

  • Loading branch information...
MatthewTheGlutton committed Jul 15, 2019
1 parent 19d915a commit 98c9058e052d745cdbb27d074bb4da027ea8cfd1
Showing with 2 additions and 9 deletions.
  1. +2 −9 zscript/mob.zs
@@ -374,18 +374,11 @@ struct HDMobAI play{
int flags=0,
bool flee=false
){
double oldang=caller.angle;
if(!caller.target){
caller.A_ClearTarget();
if(caller.curstate==caller.resolvestate("see")){
if(caller.findstate("idle"))caller.setstatelabel("idle");
else caller.setstatelabel("spawn");
}
return;
}else if(!caller.checkmove(caller.pos.xy)){
if(!caller.checkmove(caller.pos.xy)){
caller.A_Wander();
return;
}else{
double oldang=caller.angle;
bool befrightened=caller.bfrightened;
bool bechasegoal=caller.bchasegoal;
bool benoteleport=caller.bnoteleport;

0 comments on commit 98c9058

Please sign in to comment.
You can’t perform that action at this time.