From: terencehill Date: Mon, 11 May 2020 14:56:15 +0000 (+0200) Subject: Freeze tag: force respawning dead players after 1 second delay X-Git-Tag: xonotic-v0.8.5~1084 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ddd92adfb6efbb7017c371b9a1a66a889e5ac5e9;p=xonotic%2Fxonotic-data.pk3dir.git Freeze tag: force respawning dead players after 1 second delay --- diff --git a/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc b/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc index eaa60f827..5b4c80e7f 100644 --- a/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc +++ b/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc @@ -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)