]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/ent_cs.qc
Temporarily tweak entcs so it's sent for both self and enemy players in the view...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / ent_cs.qc
index 9c4bf59758770d4fc6f90f6abcf3560a21e27081..e60717e25b6de4cf8751982c536df59bb0911a9f 100644 (file)
@@ -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;
 }