]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset more STATs when player dies
authorterencehill <piuntn@gmail.com>
Wed, 3 Mar 2021 22:53:07 +0000 (23:53 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 3 Mar 2021 22:53:07 +0000 (23:53 +0100)
qcsrc/server/player.qc

index d7940c89b369ba9e6d881cc6b7fd43b006b45860..74259e3e826e620fe1f2bd7f9645aad1e37e4d8f 100644 (file)
@@ -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;