From: Mircea Kitsune Date: Thu, 25 Aug 2011 14:55:51 +0000 (+0300) Subject: Temporarily tweak entcs so it's sent for both self and enemy players in the view... X-Git-Tag: xonotic-v0.6.0~110^2^2~98 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9a7544b57ac57e73f3cecfbfe1e6b1331714ad0e;p=xonotic%2Fxonotic-data.pk3dir.git Temporarily tweak entcs so it's sent for both self and enemy players in the view. This might be buggy and needs to be discussed first! --- diff --git a/qcsrc/server/ent_cs.qc b/qcsrc/server/ent_cs.qc index 9c4bf5975..e60717e25 100644 --- a/qcsrc/server/ent_cs.qc +++ b/qcsrc/server/ent_cs.qc @@ -28,11 +28,12 @@ float entcs_customize() return FALSE; if(o.classname != "player") return FALSE; - if(other == o) - return FALSE; + //if(other == o) // allow sending entcs for self, for damage effects to work. To be decided! + // return FALSE; if(other.classname == "player") if(!teamplay || o.team != other.team) - if not (radar_showennemies) + //if not (radar_showennemies) + if not (checkpvs(other.origin + other.view_ofs, o)) // allow sending entcs for enemies in view, for damage effects to work. To be decided! return FALSE; return TRUE; }