]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/ent_cs.qc
Send health and armor as shorts instead of coords
[voretournament/voretournament.git] / data / qcsrc / server / ent_cs.qc
index ff20effe5db672836dc4153e085984df995583cf..733c449cd7b66892d7932fcde66f49e013e48a4d 100644 (file)
@@ -30,10 +30,6 @@ float entcs_customize()
                return FALSE;\r
        if(other == o)\r
                return FALSE;\r
-       if(other.classname == "player")\r
-               if(!teamplay || o.team != other.team)\r
-                       if not (radar_showennemies)\r
-                               return FALSE;\r
        return TRUE;\r
 }\r
 \r
@@ -52,9 +48,9 @@ float entcs_send(entity to, float sf)
        if(sf & 4)\r
                WriteByte(MSG_ENTITY, self.angles_y * 256.0 / 360);\r
        if(sf & 8)\r
-               WriteByte(MSG_ENTITY, self.health / 10); // FIXME use a better scale?\r
+               WriteShort(MSG_ENTITY, self.health);\r
        if(sf & 16)\r
-               WriteByte(MSG_ENTITY, self.armorvalue / 10); // FIXME use a better scale?\r
+               WriteShort(MSG_ENTITY, self.armorvalue);\r
        if(sf & 32)\r
                WriteByte(MSG_ENTITY, num_for_edict(self.predator));\r
        return TRUE;\r