]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use networked speed at cps instead of client-side.
authorDes <xon@damianv.com.ar>
Fri, 29 Nov 2024 11:58:03 +0000 (08:58 -0300)
committerDes <xon@damianv.com.ar>
Fri, 29 Nov 2024 11:58:03 +0000 (08:58 -0300)
qcsrc/client/hud/panel/racetimer.qc

index 50ea79a3a7bb73bb70c7599605816c1f357bd5ca..ffbda0a696d0eb37849c0c2f3b8a3f3766914e43 100644 (file)
@@ -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);