From c3c2059a87e313f12183fe15c627741e0dd58334 Mon Sep 17 00:00:00 2001 From: otta8634 Date: Tue, 24 Sep 2024 15:47:47 +0800 Subject: [PATCH] Display physics hud's max acceleration properly on config Previously when configuring the hud, it used an acceleration value relative to _acceleration_max. This meant players with the acceleration text off saw no visible change when changing the cvar. Configuring the hud now uses a static 0.45 acceleration so the change is reflected. 0.45 was shown before with the default 1.5 _acceleration_max --- qcsrc/client/hud/panel/physics.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/physics.qc b/qcsrc/client/hud/panel/physics.qc index edc46b65d..2da1903aa 100644 --- a/qcsrc/client/hud/panel/physics.qc +++ b/qcsrc/client/hud/panel/physics.qc @@ -81,7 +81,7 @@ void HUD_Physics() //compute acceleration float acceleration, f; if (autocvar__hud_configure) - acceleration = autocvar_hud_panel_physics_acceleration_max * 0.3; + acceleration = 0.45; //use a hardcoded value so that the hud responds to hud_panel_physics_acceleration_max changing else { // 1 m/s = 0.0254 qu/s; 1 g = 9.80665 m/s^2 -- 2.39.2