- implemented MBF's monsters_avoid_hazards feature.

Both as a map flag for MBF21 support and as an actor flag for better control.
This commit is contained in:
Christoph Oelckers 2021-08-21 12:29:24 +02:00
commit d15f450fef
8 changed files with 85 additions and 7 deletions

View file

@ -1443,10 +1443,10 @@ DEFINE_ACTION_FUNCTION_NATIVE(AActor, HitFriend, P_HitFriend)
ACTION_RETURN_BOOL(P_HitFriend(self));
}
DEFINE_ACTION_FUNCTION_NATIVE(AActor, MonsterMove, P_Move)
DEFINE_ACTION_FUNCTION_NATIVE(AActor, MonsterMove, P_SmartMove)
{
PARAM_SELF_PROLOGUE(AActor);
ACTION_RETURN_BOOL(P_Move(self));
ACTION_RETURN_BOOL(P_SmartMove(self));
}
DEFINE_ACTION_FUNCTION_NATIVE(AActor, NewChaseDir, P_NewChaseDir)