From 322dcc99506ae0f1e772fb0a8e535d90ca472e13 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 8 May 2016 21:45:28 +0200 Subject: [PATCH] Make white arrow indicate player position in the radar, not camera position (they don't match in 3rd person view). It also fixes white arrow not shown when inside a vehicle --- qcsrc/client/hud/panel/radar.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/radar.qc b/qcsrc/client/hud/panel/radar.qc index 4a2e7ee2b..8bbcc29e4 100644 --- a/qcsrc/client/hud/panel/radar.qc +++ b/qcsrc/client/hud/panel/radar.qc @@ -364,11 +364,11 @@ void HUD_Radar() }); AL_EACH(_entcs, e, it != NULL, { if (!it.m_entcs_private) continue; - if (entcs_is_self(it)) continue; + if (it.sv_entnum == current_player) continue; color2 = entcs_GetTeam(it.sv_entnum); draw_teamradar_player(it.origin, it.angles, Team_ColorRGB(color2)); }); - draw_teamradar_player(view_origin, view_angles, '1 1 1'); + draw_teamradar_player(entcs_receiver(current_player).origin, view_angles, '1 1 1'); drawresetcliparea(); -- 2.39.2