MT_OVERLAY: Support setting fuse

This commit is contained in:
toaster 2023-10-25 17:46:11 +01:00
parent c72fcca57e
commit fe26af8187

View file

@ -5872,8 +5872,21 @@ static void P_MobjSceneryThink(mobj_t *mobj)
P_RemoveMobj(mobj);
return;
}
else
P_AddOverlay(mobj);
if (mobj->fuse)
{
mobj->fuse--;
if (!mobj->fuse)
{
if (!LUA_HookMobj(mobj, MOBJ_HOOK(MobjFuse)))
{
P_RemoveMobj(mobj);
return;
}
}
}
P_AddOverlay(mobj);
if (mobj->target->hitlag) // move to the correct position, update to the correct properties, but DON'T STATE-ANIMATE
return;
switch (mobj->target->type)