]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Temporarily tweak entcs so it's sent for both self and enemy players in the view...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 25 Aug 2011 14:55:51 +0000 (17:55 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 25 Aug 2011 14:55:51 +0000 (17:55 +0300)
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;
 }