Skip to content

Commit

Permalink
- make missiles and inventory unaffected
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Jun 8, 2024
1 parent 9c80145 commit 083b258
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zscript.zc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class SMPBEventHandler : StaticEventHandler
float qdist = dx * dx + dy * dy - slowrange * slowrange;
if (qdist < 0)
inrange = true;
if (mo.Default.bMissile || Inventory(mo))
inrange = true; // don't slow down missiles or inventory
}
}
if (!(inrange) && !(mo.player) && (mo.Tics != -1))
Expand Down Expand Up @@ -70,7 +72,11 @@ class AlertEverything : CustomInventory
while (mo = Actor(it.Next()))
{
mo.LastHeard = Self;
mo.bJustHit = true;
mo.Target = Self;
mo.bAmbush = false;
mo.reactiontime = 0;
mo.threshold = 0;
}
it.Destroy();
it = null;
Expand Down

0 comments on commit 083b258

Please sign in to comment.