From 727fb037fff9838b3ebfbf3a8782d7f4c9936f65 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Tue, 23 Jun 2020 02:24:14 +0200 Subject: [PATCH] strafehud: apply antiflicker_speed value while swimming to detect when player stops completely --- qcsrc/client/hud/panel/strafehud.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index 1a66c8327..689417bd4 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -472,7 +472,7 @@ void HUD_StrafeHUD() overturn_width_visible = (hudangle/2 - maxangle) / hudangle * panel_size.x; // the strafe bar fills the whole hud panel - if(speed == 0) + if(speed <= (is_swimming ? antiflicker_speed : 0)) { // add a background to the strafe-o-meter if(panel_size.x > 0 && panel_size.y > 0) -- 2.39.2