]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/g_damage.qc
Always clear the armor of a dead player. Also tweak the balancing a bit more
[voretournament/voretournament.git] / data / qcsrc / server / g_damage.qc
index 31f86668e9c15fa4bd764fde25ca99e25c24e47e..65e2c0920287a1fba9cdb210d0a29fde8f0ae7de 100644 (file)
@@ -633,6 +633,9 @@ void Obituary (entity attacker, entity inflictor, entity targ, float deathtype)
                        LogDeath("accident", deathtype, targ, targ);\r
                }\r
 \r
+               // we lose all armor when we die\r
+               targ.armorvalue = 0;\r
+\r
                targ.death_origin = targ.origin;\r
                if(targ != attacker)\r
                        targ.killer_origin = attacker.origin;\r