]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
update strafehud minspeed description and cvar name to be more accurate
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 20 Jun 2020 17:57:47 +0000 (19:57 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 20 Jun 2020 17:57:47 +0000 (19:57 +0200)
_hud_common.cfg
qcsrc/client/autocvars.qh
qcsrc/client/hud/panel/strafehud.qc

index b22a359f9bfc07698e776851f7e8609aaf84547b..ead1cfa2646c1e283627ede6962cebc9aab6d726 100644 (file)
@@ -142,7 +142,7 @@ seta hud_panel_strafehud_timeout_air "0" "time after take off before changing st
 seta hud_panel_strafehud_timeout_ground "0.03333333" "time after landing before changing strafehud mode (prevents flickering on regular strafe turns)"
 seta hud_panel_strafehud_timeout_strafe "0.1" "time after releasing the strafe keys before changing mode (prevents flickering when switching between left/right strafe turning)"
 seta hud_panel_strafehud_timeout_direction "0.5" "time it takes until direction changes (forward or backward strafe) are detected"
-seta hud_panel_strafehud_indicator_minspeed "-1" "speed at which strafehud indicators will be shown, uses maxspeed if negative"
+seta hud_panel_strafehud_minspeed "-1" "minimum speed at which strafehud overturn/acceleration zones and indicators will be shown, uses physics maxspeed if negative"
 seta hud_panel_strafehud_unstyled "0" "don't apply any progressbar styles to the strafehud"
 
 // hud panel aliases
index 65b8413ec594365d57a4ef2b6463211ecb99f7d4..f2a7dfcfe80c720a5f92898c2c16e68cca209298 100644 (file)
@@ -340,7 +340,7 @@ float autocvar_hud_panel_strafehud_timeout_air = 0;
 float autocvar_hud_panel_strafehud_timeout_ground = 0.03333333;
 float autocvar_hud_panel_strafehud_timeout_strafe = 0.1;
 float autocvar_hud_panel_strafehud_timeout_direction = 0.5;
-float autocvar_hud_panel_strafehud_indicator_minspeed = -1;
+float autocvar_hud_panel_strafehud_minspeed = -1;
 bool autocvar_hud_panel_strafehud_unstyled = false;
 bool autocvar_hud_panel_timer;
 bool autocvar_hud_panel_timer_increment;
index 1b4abfea09a70e6880bf21601867485b2999c632..76678465b0f0aa99382664f14dedf44bf53e501f 100644 (file)
@@ -287,7 +287,7 @@ void HUD_StrafeHUD()
             wishangle = turnangle;
         }
 
-        autocvar_hud_panel_strafehud_indicator_minspeed = autocvar_hud_panel_strafehud_indicator_minspeed < 0 ? maxspeed + .1 : autocvar_hud_panel_strafehud_indicator_minspeed;
+        autocvar_hud_panel_strafehud_minspeed = autocvar_hud_panel_strafehud_minspeed < 0 ? maxspeed + .1 : autocvar_hud_panel_strafehud_minspeed;
 
         // get current strafing angle ranging from -180° to +180°
         if(!autocvar__hud_configure)
@@ -469,7 +469,7 @@ void HUD_StrafeHUD()
         overturn_width_visible = (hudangle/2 - maxangle) / hudangle * panel_size.x;
 
         // if the strafe bar fills the whole hud panel
-        if(!(speed >= autocvar_hud_panel_strafehud_indicator_minspeed) || !(direction != 0))
+        if(!(speed >= autocvar_hud_panel_strafehud_minspeed) || !(direction != 0))
         {
             // add a background to the strafe-o-meter
             if(panel_size.x > 0 && panel_size.y > 0)
@@ -486,7 +486,7 @@ void HUD_StrafeHUD()
         }
 
         // mark the ideal strafe angle
-        if(speed >= autocvar_hud_panel_strafehud_indicator_minspeed) // only draw indicators if strafing is required to gain speed (or when whatever configured speed is reached)
+        if(speed >= autocvar_hud_panel_strafehud_minspeed) // only draw indicators if strafing is required to gain speed (or when whatever configured speed is reached)
         {
             if(direction != 0) // only draw acceleration zones if strafe direction can be determined
             {