From d32d6866e1c661ab4d0b173ab97433aaf2d2fa48 Mon Sep 17 00:00:00 2001 From: Des Date: Fri, 29 Nov 2024 08:58:03 -0300 Subject: [PATCH] Use networked speed at cps instead of client-side. --- qcsrc/client/hud/panel/racetimer.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/racetimer.qc b/qcsrc/client/hud/panel/racetimer.qc index 50ea79a3a..ffbda0a69 100644 --- a/qcsrc/client/hud/panel/racetimer.qc +++ b/qcsrc/client/hud/panel/racetimer.qc @@ -224,7 +224,7 @@ void HUD_RaceTimer () { string speed_color = rgb_to_hexcolor(autocvar_hud_progressbar_acceleration_neg_color); float speed_conversion_factor = GetSpeedUnitFactor(autocvar_hud_speed_unit); - float speed = vlen(vec2(csqcplayer.velocity)); + float speed = race_timespeed; //vlen(vec2(csqcplayer.velocity)); float speed_diff = rint(speed - race_checkpoint_splits_speed[race_checkpoint]); string units_text = autocvar_cl_race_cptimes_showspeed_unit ? GetSpeedUnit(autocvar_hud_speed_unit) : ""; if(speed_diff > 0) speed_color = rgb_to_hexcolor(autocvar_hud_progressbar_acceleration_color); -- 2.39.2