Super Flicky: toggle noclip through walls if chasing a player within normal flight radius

This commit is contained in:
James R 2024-01-08 02:35:18 -08:00
parent a1ee43c334
commit 3cd05f17b2

View file

@ -473,6 +473,8 @@ struct Flicky : mobj_t
break;
}
}
noclip(chasing() && dist > kFlightRadius * mapobjectscale);
}
void rise()
@ -525,6 +527,12 @@ struct Flicky : mobj_t
P_SetObjectMomZ(this, 8*FRACUNIT, false);
}
void noclip(bool n)
{
constexpr UINT32 kNoClipFlags = MF_NOCLIP | MF_NOCLIPHEIGHT;
flags = (flags & ~kNoClipFlags) | (kNoClipFlags * n);
}
void nerf()
{
light_up(false);