mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add MTF_EXTRA flag to monitors, to run linedef exec by Angle (Tag + 16384) upon pop
This commit is contained in:
parent
c75853c92a
commit
565879c5e2
1 changed files with 5 additions and 0 deletions
|
|
@ -3324,6 +3324,11 @@ void A_MonitorPop(mobj_t *actor)
|
||||||
newmobj->sprite = SPR_TV1P;
|
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
|
// Function: A_GoldMonitorPop
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue