void View_Lock()
{
- int lock_type = (!autocvar_hud_cursormode && ((autocvar__hud_configure && spectatee_status <= 0) || intermission > 1 || QuickMenu_IsOpened()));
- if (lock_type == 0)
- lock_type = autocvar_cl_lockview;
+ int lock_type = autocvar_cl_lockview;
+
+ if (!autocvar_hud_cursormode
+ && ((autocvar__hud_configure && spectatee_status <= 0)
+ || intermission > 1
+ || HUD_Radar_Clickable()
+ || HUD_MinigameMenu_IsOpened()
+ || QuickMenu_IsOpened()
+ )
+ )
+ lock_type = 1;
// lock_type 1: lock origin and angles
// lock_type 2: lock only origin