]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset player survival status on match reset too
authorMario <mario.mario@y7mail.com>
Mon, 13 Jul 2020 18:33:05 +0000 (04:33 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 13 Jul 2020 18:33:05 +0000 (04:33 +1000)
qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc

index 6514165d11413017b1a22d629fd94fffa6a2526c..6ada448a25da947175382e53d369079b20a4dd6b 100644 (file)
@@ -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)