X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=blobdiff_plain;f=data%2Fqcsrc%2Fserver%2Fent_cs.qc;h=733c449cd7b66892d7932fcde66f49e013e48a4d;hp=ff20effe5db672836dc4153e085984df995583cf;hb=f84370bd8d5c0c079182d3c76a5fa962cf7561a5;hpb=748ddc43b328660e11fb54634f3d4141074e6c1b diff --git a/data/qcsrc/server/ent_cs.qc b/data/qcsrc/server/ent_cs.qc index ff20effe..733c449c 100644 --- a/data/qcsrc/server/ent_cs.qc +++ b/data/qcsrc/server/ent_cs.qc @@ -30,10 +30,6 @@ float entcs_customize() return FALSE; if(other == o) return FALSE; - if(other.classname == "player") - if(!teamplay || o.team != other.team) - if not (radar_showennemies) - return FALSE; return TRUE; } @@ -52,9 +48,9 @@ float entcs_send(entity to, float sf) if(sf & 4) WriteByte(MSG_ENTITY, self.angles_y * 256.0 / 360); if(sf & 8) - WriteByte(MSG_ENTITY, self.health / 10); // FIXME use a better scale? + WriteShort(MSG_ENTITY, self.health); if(sf & 16) - WriteByte(MSG_ENTITY, self.armorvalue / 10); // FIXME use a better scale? + WriteShort(MSG_ENTITY, self.armorvalue); if(sf & 32) WriteByte(MSG_ENTITY, num_for_edict(self.predator)); return TRUE;