From c836d27448d4bfc7e8d011f155fd5df20f30203e Mon Sep 17 00:00:00 2001 From: SteelT Date: Wed, 28 Jun 2023 00:14:57 -0400 Subject: [PATCH] Thrust player if they are under the UFO --- src/p_map.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/p_map.c b/src/p_map.c index a5cb837d6..db62c9343 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -753,6 +753,19 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing) return BMIT_CONTINUE; } + if (thing->type == MT_BATTLEUFO) + { + if (tm.thing->type != MT_PLAYER) + { + return BMIT_CONTINUE; + } + + if (tm.thing->z > thing->z + thing->height) + return BMIT_CONTINUE; // overhead + P_SetObjectMomZ(tm.thing, FRACUNIT, true); + return BMIT_CONTINUE; + } + if (thing->type == MT_SPB) { if (tm.thing->type != MT_PLAYER