Add MTF_EXTRA flag to monitors, to run linedef exec by Angle (Tag + 16384) upon pop

This commit is contained in:
mazmazz 2018-11-04 20:16:33 -05:00
parent e5d16c520d
commit b7c6661c76

View file

@ -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