X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=data%2Fqcsrc%2Fserver%2Fent_cs.qc;h=687e9d544a7ebc14c577dd070ce70c31ef04676d;hb=248cf47b022caea9730cae1a8d13ca1dfbfe5db3;hp=9f564b4ebca3484ee6e1d68610bfce7d715bcc7a;hpb=f800c788719a692e238cdab036df7abfc0f9ed6c;p=voretournament%2Fvoretournament.git diff --git a/data/qcsrc/server/ent_cs.qc b/data/qcsrc/server/ent_cs.qc index 9f564b4e..687e9d54 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, self.stat_eaten); return TRUE; @@ -62,7 +58,7 @@ float entcs_send(entity to, float sf) void entcs_think() { - self.nextthink = time + 0.01; + self.nextthink = time + 0.03; entity o; o = self.owner;