mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
MT_ITEMCAPSULE: In GT_TUTORIAL, only respawn after 5 seconds
This commit is contained in:
parent
24b5bb8f86
commit
7d313af4db
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue