Tell retreating enemies to head for the jumpgate.

This commit is contained in:
Steve 2016-04-17 09:11:49 +01:00
parent c729d59c3a
commit dde34beedb
1 changed files with 6 additions and 0 deletions

View File

@ -607,7 +607,12 @@ void retreatEnemies(void)
{
if (e->type == ET_FIGHTER && e->side != SIDE_ALLIES)
{
e->flags |= EF_RETREATING;
e->aiFlags |= AIF_AVOIDS_COMBAT;
e->aiFlags |= AIF_UNLIMITED_RANGE;
e->aiFlags |= AIF_GOAL_JUMPGATE;
e->aiFlags &= ~AIF_MOVES_TO_LEADER;
}
}
}
@ -627,6 +632,7 @@ void retreatAllies(void)
e->aiFlags |= AIF_GOAL_JUMPGATE;
e->aiFlags &= ~AIF_FOLLOWS_PLAYER;
e->aiFlags &= ~AIF_MOVES_TO_PLAYER;
e->aiFlags &= ~AIF_MOVES_TO_LEADER;
}
}
}