Freeze tag: force respawning dead players after 1 second delay
authorterencehill <piuntn@gmail.com>
Mon, 11 May 2020 14:56:15 +0000 (16:56 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 11 May 2020 14:56:15 +0000 (16:56 +0200)
qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc

index eaa60f8..5b4c80e 100644 (file)
@@ -366,6 +366,9 @@ MUTATOR_HOOKFUNCTION(ft, PlayerDies)
                return true;
        }
 
                return true;
        }
 
+       frag_target.respawn_time = time + 1;
+       frag_target.respawn_flags |= RESPAWN_FORCE;
+
        // Cases DEATH_TEAMCHANGE and DEATH_AUTOTEAMCHANGE are needed to fix a bug whe
        // you succeed changing team through the menu: you both really die (gibbing) and get frozen
        if(ITEM_DAMAGE_NEEDKILL(frag_deathtype)
        // Cases DEATH_TEAMCHANGE and DEATH_AUTOTEAMCHANGE are needed to fix a bug whe
        // you succeed changing team through the menu: you both really die (gibbing) and get frozen
        if(ITEM_DAMAGE_NEEDKILL(frag_deathtype)