- added a per-level AVOIDMELEE flag.
This already existed as a per-actor flag, but for proper MBF support it needs to be settable on a per-map basis as well.
This commit is contained in:
parent
4614ce41cd
commit
ff497996a3
3 changed files with 3 additions and 1 deletions
|
|
@ -943,7 +943,7 @@ void P_NewChaseDir(AActor * actor)
|
|||
if (target->health > 0 && !actor->IsFriend(target) && target != actor->goal)
|
||||
{ // Live enemy target
|
||||
|
||||
if (actor->flags3 & MF3_AVOIDMELEE)
|
||||
if ((actor->flags3 & MF3_AVOIDMELEE) || (actor->Level->flags3 & LEVEL3_AVOIDMELEE))
|
||||
{
|
||||
bool ismeleeattacker = false;
|
||||
double dist = actor->Distance2D(target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue