From: Mario Date: Mon, 13 Jul 2020 18:33:05 +0000 (+1000) Subject: Reset player survival status on match reset too X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=33528da1d9a38de7c89735b6d5b5381a96b2a05a;p=xonotic%2Fxonotic-data.pk3dir.git Reset player survival status on match reset too --- 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)