mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Add MTF_EXTRA flag to monitors, to run linedef exec by Angle (Tag + 16384) upon pop
This commit is contained in:
parent
e5d16c520d
commit
b7c6661c76
1 changed files with 5 additions and 0 deletions
|
@ -3324,6 +3324,11 @@ void A_MonitorPop(mobj_t *actor)
|
|||
newmobj->sprite = SPR_TV1P;
|
||||
}
|
||||
}
|
||||
|
||||
// Run a linedef executor immediately upon popping
|
||||
// You may want to delay your effects by 18 tics to sync with the reward giving
|
||||
if (actor->spawnpoint && (actor->spawnpoint->options & MTF_EXTRA) && (actor->spawnpoint->angle & 16384))
|
||||
P_LinedefExecute((actor->spawnpoint->angle & 16383), actor->target, NULL);
|
||||
}
|
||||
|
||||
// Function: A_GoldMonitorPop
|
||||
|
|
Loading…
Reference in a new issue