From 6fba9da84899eca37f19d49e69d6cfe780f00cd2 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 27 Aug 2011 22:40:34 +0200 Subject: [PATCH] hide "help me" from enemies --- qcsrc/server/waypointsprites.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2