]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 eaa60f82715cb73d70e1e66c28a8f0ac95275b5e..5b4c80e7f619c6fc0ce768f8c2cb2a09e5067004 100644 (file)
@@ -366,6 +366,9 @@ MUTATOR_HOOKFUNCTION(ft, PlayerDies)
                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)