From: terencehill Date: Wed, 3 Mar 2021 22:53:07 +0000 (+0100) Subject: Reset more STATs when player dies X-Git-Tag: xonotic-v0.8.5~527 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bb91fc75fe1cbf81c17225308e8bd5db89c29497;p=xonotic%2Fxonotic-data.pk3dir.git Reset more STATs when player dies --- diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index d7940c89b..74259e3e8 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -558,6 +558,11 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, // don't play teleportation sounds this.teleportable = TELEPORT_SIMPLE; + STAT(STRENGTH_FINISHED, this) = 0; + STAT(INVINCIBLE_FINISHED, this) = 0; + STAT(SUPERWEAPONS_FINISHED, this) = 0; + STAT(AIR_FINISHED, this) = 0; + STAT(MOVEVARS_SPECIALCOMMAND, this) = false; // sweet release this.death_time = time;