X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fent_cs.qc;h=8fce148d1f2aadb097a4dbb953af1b7260d890d0;hb=cac08f933d832f4b4b63626ddc8c9366f0a69419;hp=f127fb26e83e7a4471b7f6dfe09faaacf648becd;hpb=80cd34d0a48e975018605aabebacba50e8029585;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/ent_cs.qc b/qcsrc/server/ent_cs.qc index f127fb26e8..8fce148d1f 100644 --- a/qcsrc/server/ent_cs.qc +++ b/qcsrc/server/ent_cs.qc @@ -18,7 +18,7 @@ void entcs_init() { print("Initializing ClientSide information entities\n"); -}; +} float entcs_customize() { @@ -26,11 +26,11 @@ float entcs_customize() o = self.owner; if(o.deadflag != DEAD_NO) return FALSE; - if(o.classname != "player") + if not(IS_PLAYER(o)) return FALSE; if(other == o) return FALSE; - if((other.classname == "player") || other.caplayer) + if((IS_PLAYER(other)) || other.caplayer) if(!teamplay || o.team != other.team) if not (radar_showennemies) return FALSE; @@ -56,7 +56,7 @@ float entcs_send(entity to, float sf) if(sf & 16) WriteByte(MSG_ENTITY, self.armorvalue / 10); // FIXME use a better scale? return TRUE; -}; +} void entcs_think() { @@ -85,11 +85,11 @@ void entcs_think() self.armorvalue = o.armorvalue; self.SendFlags |= 16; } -}; +} entity attach_entcs() { - local entity ent; + entity ent; ent = spawn(); ent.classname = "entcs_sender_v2"; @@ -103,10 +103,10 @@ entity attach_entcs() self.entcs = ent; return ent; -}; +} void detach_entcs() { remove(self.entcs); self.entcs = world; -}; +}