- MBF21: ported the code pointers to ZScript.

So far it's just the functions and some initial changes to Dehacked's parser. None of this is usable yet.
This commit is contained in:
Christoph Oelckers 2021-06-30 23:15:56 +02:00
commit c700682a36
18 changed files with 677 additions and 60 deletions

View file

@ -3306,7 +3306,7 @@ bool AActor::IsOkayToAttack (AActor *link)
// its target; and for a summoned minion, its tracer.
AActor * Friend;
if (flags5 & MF5_SUMMONEDMONSTER) Friend = tracer;
else if (flags2 & MF2_SEEKERMISSILE) Friend = target;
else if (flags & MF_MISSILE) Friend = target;
else if ((flags & MF_FRIENDLY) && FriendPlayer) Friend = Level->Players[FriendPlayer-1]->mo;
else Friend = this;