mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
MT_OVERLAY: Support setting fuse
This commit is contained in:
parent
c72fcca57e
commit
fe26af8187
1 changed files with 15 additions and 2 deletions
17
src/p_mobj.c
17
src/p_mobj.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue