]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/player.qc
Reset more STATs when player dies
[xonotic/xonotic-data.pk3dir.git] / 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;