MT_ITEMCAPSULE: In GT_TUTORIAL, only respawn after 5 seconds

This commit is contained in:
toaster 2023-12-08 22:18:13 +00:00
parent 24b5bb8f86
commit 7d313af4db

View file

@ -2034,8 +2034,12 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, UINT8 damaget
INT16 spacing = (target->radius >> 1) / target->scale;
// set respawn fuse
if (damagetype == DMG_INSTAKILL || K_CapsuleTimeAttackRules() == true) // no respawns
;
if (damagetype == DMG_INSTAKILL)
; // Don't respawn (external)
else if (gametype == GT_TUTORIAL)
target->fuse = 5*TICRATE;
else if (K_CapsuleTimeAttackRules() == true)
; // Don't respawn (internal)
else if (target->threshold == KITEM_SUPERRING)
target->fuse = 20*TICRATE;
else