]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/Main.qc
Only show the health and armor of team mates, not enemies. Sadly, the health of all...
[voretournament/voretournament.git] / data / qcsrc / client / Main.qc
index f7b08497e608a85ca1af56dcae63ead97fc968b2..7686d9ec3d270677f29333ec122a9b70a23bef1a 100644 (file)
@@ -683,9 +683,9 @@ void Ent_ReadEntCS()
                self.angles_x = self.angles_z = 0;\r
        }\r
        if(sf & 8)\r
-               self.healthvalue = ReadByte() * 10;\r
+               self.healthvalue = ReadCoord();\r
        if(sf & 16)\r
-               self.armorvalue = ReadByte() * 10;\r
+               self.armorvalue = ReadCoord();\r
        if(sf & 32)\r
                self.predator = ReadByte();\r
 \r
@@ -1060,6 +1060,7 @@ void Ent_Init()
        g_healthsize = ReadCoord();\r
 \r
        armor_max = ReadCoord();\r
+       teamheal_max = ReadCoord();\r
 \r
        if(!postinit)\r
                PostInit();\r