]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
hide "help me" from enemies
authorRudolf Polzer <divverent@xonotic.org>
Sat, 27 Aug 2011 20:40:34 +0000 (22:40 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 27 Aug 2011 20:40:34 +0000 (22:40 +0200)
qcsrc/server/waypointsprites.qc

index b5b6a0beb377bf3b26922c8431c02e5af172ac5d..4f94434e425354dffa9ec2178af13898c9c98e2b 100644 (file)
@@ -308,7 +308,7 @@ float WaypointSprite_SendEntity(entity to, float sendflags)
                WriteByte(MSG_ENTITY, self.colormod_z * 255.0);
 
                dt = (self.waypointsprite_helpmetime - time) / 0.1;
-               if(dt < 0)
+               if(dt < 0 || (teamplay && self.owner && self.owner.team != to.team)) // don't tell enemies about "HELP ME" (FIXME clean this up to handle spectating/observing well too)
                        dt = 0;
                if(dt > 255)
                        dt = 255;