mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Kill Battle UFOs outside of the Overtime Barrier
This commit is contained in:
parent
4d24eb71b6
commit
82cf995e35
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:
|
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);
|
Obj_BattleUFOThink(mobj);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue