From cf236b83dffa4a36b6ca64b7eb6d199d79ccb864 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Sat, 20 Jun 2020 17:40:04 +0200 Subject: [PATCH] make sure angle indicator changes color when inside any strafe acceleration zone --- qcsrc/client/hud/panel/strafehud.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index 6a0c6218c..39e97bdc7 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -561,12 +561,12 @@ void HUD_StrafeHUD() // draw the actual strafe angle if(!bestangle_anywhere) // player gains speed with strafing { - if((direction > 0 && angle >= bestangle) || - (direction < 0 && angle <= bestangle)) + if((direction > 0 && (angle >= bestangle || angle <= -(bestangle + wishangle*2))) || + (direction < 0 && (angle <= bestangle || angle >= -(bestangle + wishangle*2)))) currentangle_color = autocvar_hud_panel_strafehud_good_color; } - if(fabs(moveangle) > 89.9) // player is overturning + if(fabs(moveangle) > 90) // player is overturning { currentangle_color = autocvar_hud_panel_strafehud_alert_color; } -- 2.39.2