From df3624d96cabd9d57f0c85050f8f2e89768301fd Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 29 Dec 2022 17:44:19 +0000 Subject: [PATCH] Executor calls for UFO Catcher special events Requested by Charyb. - LE_PINCHPHASE (-2 or 65534) for busting open the Catcher - LE_BOSSDEAD (-4 or 65532) for grabbing the emerald Would like to use args for UDMF compatibility but there is no spawnpoint for the Catcher so it's hardcoded for now --- src/objects/ufo.c | 2 ++ src/p_inter.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/objects/ufo.c b/src/objects/ufo.c index 6fe0af881..f9a44127b 100644 --- a/src/objects/ufo.c +++ b/src/objects/ufo.c @@ -607,6 +607,8 @@ boolean Obj_SpecialUFODamage(mobj_t *ufo, mobj_t *inflictor, mobj_t *source, UIN ufo->flags = (ufo->flags & ~MF_SHOOTABLE) | (MF_SPECIAL|MF_PICKUPFROMBELOW); ufo->shadowscale = FRACUNIT/3; + P_LinedefExecute(LE_PINCHPHASE, ufo, NULL); + ufo_speed(ufo) += addSpeed; // Even more speed! return true; } diff --git a/src/p_inter.c b/src/p_inter.c index 89229f8ac..a630d96bf 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -414,6 +414,8 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck) if (toucher->hitlag > 0) return; + P_LinedefExecute(LE_BOSSDEAD, ufo, NULL); + CONS_Printf("You win!\n"); break; /*