From 92fd5c54e364ac2f8bac61889e9af7e95f77d327 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 12 Jul 2016 22:54:30 +1000 Subject: [PATCH] Don't allow zooming with secondary attack while spectating/observing --- qcsrc/client/view.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index af7eb35b3..4ca30d4a8 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -447,7 +447,7 @@ vector GetCurrentFov(float fov) zoomspeed = 3.5; zoomdir = button_zoom; - if(hud == HUD_NORMAL) + if(hud == HUD_NORMAL && !spectatee_status) if(switchweapon == activeweapon) if((activeweapon == WEP_VORTEX && !WEP_CVAR(vortex, secondary)) || (activeweapon == WEP_RIFLE && !WEP_CVAR(rifle, secondary))) // do NOT use switchweapon here zoomdir += button_attack2; -- 2.39.2