mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Kill Battle UFOs outside of the Overtime Barrier
This commit is contained in:
parent
835981d299
commit
99091036fb
1 changed files with 12 additions and 0 deletions
12
src/p_mobj.c
12
src/p_mobj.c
|
|
@ -8448,6 +8448,18 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
|||
}
|
||||
case MT_BATTLEUFO:
|
||||
{
|
||||
if (battleovertime.enabled >= 10*TICRATE)
|
||||
{
|
||||
fixed_t distance = R_PointToDist2(mobj->x, mobj->y, battleovertime.x, battleovertime.y);
|
||||
|
||||
if (distance > battleovertime.radius)
|
||||
{
|
||||
// Delete emeralds to let them reappear
|
||||
P_KillMobj(mobj, NULL, NULL, DMG_NORMAL);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Obj_BattleUFOThink(mobj);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue