From 33528da1d9a38de7c89735b6d5b5381a96b2a05a Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 14 Jul 2020 04:33:05 +1000 Subject: [PATCH] Reset player survival status on match reset too --- qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc b/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc index 6514165d1..6ada448a2 100644 --- a/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc +++ b/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc @@ -195,7 +195,6 @@ void surv_Initialize() // run at the start of a match, initiates game mode MUTATOR_HOOKFUNCTION(surv, ClientObituary) { // in survival, announcing a frag would tell everyone who the hunter is - // for the sake of anonymity, a barebones entity frag_attacker = M_ARGV(1, entity); entity frag_target = M_ARGV(2, entity); if(IS_PLAYER(frag_attacker) && frag_attacker != frag_target) @@ -252,6 +251,7 @@ MUTATOR_HOOKFUNCTION(surv, reset_map_players) { FOREACH_CLIENT(true, { CS(it).killcount = 0; + it.survival_status = 0; if (!it.caplayer && IS_BOT_CLIENT(it)) it.caplayer = 1; if (it.caplayer) -- 2.39.2