mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Super Flicky: toggle noclip through walls if chasing a player within normal flight radius
This commit is contained in:
parent
a1ee43c334
commit
3cd05f17b2
1 changed files with 8 additions and 0 deletions
|
|
@ -473,6 +473,8 @@ struct Flicky : mobj_t
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
noclip(chasing() && dist > kFlightRadius * mapobjectscale);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rise()
|
void rise()
|
||||||
|
|
@ -525,6 +527,12 @@ struct Flicky : mobj_t
|
||||||
P_SetObjectMomZ(this, 8*FRACUNIT, false);
|
P_SetObjectMomZ(this, 8*FRACUNIT, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void noclip(bool n)
|
||||||
|
{
|
||||||
|
constexpr UINT32 kNoClipFlags = MF_NOCLIP | MF_NOCLIPHEIGHT;
|
||||||
|
flags = (flags & ~kNoClipFlags) | (kNoClipFlags * n);
|
||||||
|
}
|
||||||
|
|
||||||
void nerf()
|
void nerf()
|
||||||
{
|
{
|
||||||
light_up(false);
|
light_up(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue