mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Merge branch 'EOL-36' into EOL
# Conflicts: # src/p_enemy.c
This commit is contained in:
commit
f76d9f24c9
2 changed files with 17 additions and 2 deletions
|
|
@ -3327,8 +3327,8 @@ void A_MonitorPop(mobj_t *actor)
|
||||||
|
|
||||||
// Run a linedef executor immediately upon popping
|
// Run a linedef executor immediately upon popping
|
||||||
// You may want to delay your effects by 18 tics to sync with the reward giving
|
// 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))
|
if (actor->spawnpoint && actor->lastlook)
|
||||||
P_LinedefExecute((actor->spawnpoint->angle & 16383), actor->target, NULL);
|
P_LinedefExecute(actor->lastlook, actor->target, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function: A_GoldMonitorPop
|
// Function: A_GoldMonitorPop
|
||||||
|
|
@ -3412,6 +3412,11 @@ void A_GoldMonitorPop(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->lastlook)
|
||||||
|
P_LinedefExecute(actor->lastlook, actor->target, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function: A_GoldMonitorRestore
|
// Function: A_GoldMonitorRestore
|
||||||
|
|
|
||||||
10
src/p_mobj.c
10
src/p_mobj.c
|
|
@ -10894,6 +10894,16 @@ ML_EFFECT4 : Don't clip inside the ground
|
||||||
mobj->flags2 |= MF2_OBJECTFLIP;
|
mobj->flags2 |= MF2_OBJECTFLIP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Extra functionality
|
||||||
|
if (mthing->options & MTF_EXTRA)
|
||||||
|
{
|
||||||
|
if (mobj->flags & MF_MONITOR && (mthing->angle & 16384))
|
||||||
|
{
|
||||||
|
// Store line exec tag to run upon popping
|
||||||
|
mobj->lastlook = (mthing->angle & 16383);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Final set of not being able to draw nightsitems.
|
// Final set of not being able to draw nightsitems.
|
||||||
if (mobj->flags & MF_NIGHTSITEM)
|
if (mobj->flags & MF_NIGHTSITEM)
|
||||||
mobj->flags2 |= MF2_DONTDRAW;
|
mobj->flags2 |= MF2_DONTDRAW;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue