From: Rudolf Polzer Date: Sat, 27 Aug 2011 20:40:34 +0000 (+0200) Subject: hide "help me" from enemies X-Git-Tag: xonotic-v0.5.0~42 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6fba9da84899eca37f19d49e69d6cfe780f00cd2;p=xonotic%2Fxonotic-data.pk3dir.git hide "help me" from enemies --- diff --git a/qcsrc/server/waypointsprites.qc b/qcsrc/server/waypointsprites.qc index b5b6a0beb..4f94434e4 100644 --- a/qcsrc/server/waypointsprites.qc +++ b/qcsrc/server/waypointsprites.qc @@ -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;