From 545ad462d536d474e42e5f1171a2851ea54d4c33 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 1 Sep 2013 02:31:01 +1000 Subject: [PATCH] Fix colors in non teamplay --- qcsrc/common/monsters/cl_monsters.qc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/monsters/cl_monsters.qc b/qcsrc/common/monsters/cl_monsters.qc index 40f5e22ac..0171de220 100644 --- a/qcsrc/common/monsters/cl_monsters.qc +++ b/qcsrc/common/monsters/cl_monsters.qc @@ -7,12 +7,17 @@ void monster_changeteam() { self.glowmod = Team_ColorRGB(self.team - 1); - self.teamradar_color = Team_ColorRGB(self.team - 1); if(self.team) + { + self.teamradar_color = Team_ColorRGB(self.team - 1); self.colormap = 1024 + (self.team - 1) * 17; + } else + { + self.teamradar_color = '1 0 0'; self.colormap = 1024; + } } void monster_die() @@ -46,7 +51,7 @@ void monster_draw2d() if(dist < 10240 && t != self.team) { // TODO: Vehicle tactical hud - o = project_3d_to_2d(self.origin + '0 0 1' * (self.maxs_z + 10)); + o = project_3d_to_2d(self.origin + '0 0 1' * ((self.maxs_z + self.mins_z) * 0.5)); if(o_z < 0 || o_x < (vid_conwidth * waypointsprite_edgeoffset_left) || o_y < (vid_conheight * waypointsprite_edgeoffset_top) -- 2.39.2