]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add new physics cvars to export function
authorotta8634 <k9wolf@pm.me>
Tue, 24 Sep 2024 08:13:37 +0000 (16:13 +0800)
committerotta8634 <k9wolf@pm.me>
Tue, 24 Sep 2024 08:24:17 +0000 (16:24 +0800)
Also add missed includes

qcsrc/client/hud/panel/physics.qc

index 12e7c34eb7f0b7de67b9711c07adcd98dd264971..8855ac3ee12477e3ab13e5a9192cabd8706ace22 100644 (file)
@@ -2,6 +2,8 @@
 
 #include <client/draw.qh>
 #include <lib/csqcmodel/cl_player.qh>
+#include <common/physics/player.qh>
+#include <common/physics/movetypes/movetypes.qh>
 
 // jump speed
 #include <lib/csqcmodel/common.qh> // for IS_PLAYER() macro
@@ -17,7 +19,10 @@ void HUD_Physics_Export(int fh)
        HUD_Write_Cvar("hud_panel_physics_speed_vertical");
        HUD_Write_Cvar("hud_panel_physics_topspeed");
        HUD_Write_Cvar("hud_panel_physics_topspeed_time");
+       HUD_Write_Cvar("hud_panel_physics_jumpspeed");
+       HUD_Write_Cvar("hud_panel_physics_jumpspeed_time");
        HUD_Write_Cvar("hud_panel_physics_acceleration_max");
+       HUD_Write_Cvar("hud_panel_physics_acceleration_max_slick");
        HUD_Write_Cvar("hud_panel_physics_acceleration_vertical");
        HUD_Write_Cvar("hud_panel_physics_flip");
        HUD_Write_Cvar("hud_panel_physics_baralign");