From 28baa4e8af5d32397c65908f473acd0fe5fe2b8e Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 13 Jul 2016 17:39:50 +1000 Subject: [PATCH] Some tweaks for clickable radar --- qcsrc/client/hud/panel/radar.qc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/radar.qc b/qcsrc/client/hud/panel/radar.qc index 85e682d08..36668ba65 100644 --- a/qcsrc/client/hud/panel/radar.qc +++ b/qcsrc/client/hud/panel/radar.qc @@ -26,6 +26,13 @@ void HUD_Radar_Show_Maximized(bool doshow,float clickable) if(autocvar_hud_cursormode) setcursormode(1); hud_panel_radar_mouse = 1; + + // we must unset the player's buttons, as they aren't released elsewhere + localcmd("-fire\n"); + localcmd("-fire2\n"); + localcmd("-use\n"); + localcmd("-hook\n"); + localcmd("-jump\n"); } } else if ( hud_panel_radar_mouse ) @@ -348,7 +355,7 @@ void HUD_Radar() FOREACH_ENTITY_FLAGS(teamradar_icon, 0xFFFFFF, { if ( hud_panel_radar_mouse ) - if ( it.health > 0 ) + if ( it.health > 0 || !it.health ) if ( it.team == myteam+1 || gametype == MAPINFO_TYPE_RACE ) { vector coord = teamradar_texcoord_to_2dcoord(teamradar_3dcoord_to_texcoord(it.origin)); -- 2.39.2