]> 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 dfb8a4066dfa3159e373ba98a5f7677a25102482..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
@@ -62,7 +58,7 @@ float entcs_send(entity to, float sf)
 \r
 void entcs_think()\r
 {\r
-       self.nextthink = time + 0.01;\r
+       self.nextthink = time + 0.03;\r
 \r
        entity o;\r
        o = self.owner;\r