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
This commit is contained in:
toaster 2022-12-29 17:44:19 +00:00
parent 7482e11992
commit df3624d96c
2 changed files with 4 additions and 0 deletions

View file

@ -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->flags = (ufo->flags & ~MF_SHOOTABLE) | (MF_SPECIAL|MF_PICKUPFROMBELOW);
ufo->shadowscale = FRACUNIT/3; ufo->shadowscale = FRACUNIT/3;
P_LinedefExecute(LE_PINCHPHASE, ufo, NULL);
ufo_speed(ufo) += addSpeed; // Even more speed! ufo_speed(ufo) += addSpeed; // Even more speed!
return true; return true;
} }

View file

@ -414,6 +414,8 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
if (toucher->hitlag > 0) if (toucher->hitlag > 0)
return; return;
P_LinedefExecute(LE_BOSSDEAD, ufo, NULL);
CONS_Printf("You win!\n"); CONS_Printf("You win!\n");
break; break;
/* /*