seta hud_panel_strafehud_good_color "0 1 1" "indicator color of the actual strafe angle if the angle matches the ideal angle"
seta hud_panel_strafehud_warning_color "1 1 0" "indicator color of the actual strafe angle if the angle doesn't match the ideal angle"
seta hud_panel_strafehud_alert_color "1 0 1" "indicator color of the actual strafe angle if the angle has a critical value"
+seta hud_panel_strafehud_direction_show "1" "show the direction indicator caps"
seta hud_panel_strafehud_direction_color "0 0.5 1" "direction indicator color"
seta hud_panel_strafehud_direction_width "0.25" "direction indicator width relative to the panel height"
seta hud_panel_strafehud_direction_length "0.02" "direction indicator length relative to the panel width"
vector autocvar_hud_panel_strafehud_good_color = '0 1 1';
vector autocvar_hud_panel_strafehud_warning_color = '1 1 0';
vector autocvar_hud_panel_strafehud_alert_color = '1 0 1';
+bool autocvar_hud_panel_strafehud_direction_show = true;
vector autocvar_hud_panel_strafehud_direction_color = '0 0.5 1';
float autocvar_hud_panel_strafehud_direction_width = 0.25;
float autocvar_hud_panel_strafehud_direction_length = 0.02;
HUD_Panel_DrawStrafeHUD_drawfill(bar_offset, bar_width, autocvar_hud_panel_strafehud_bar_color, autocvar_hud_panel_strafehud_bar_alpha);
}
- if(direction != 0)
+ if(autocvar_hud_panel_strafehud_direction_show && direction != 0)
{
bool indicator_direction = direction < 0;
// invert left/right when strafing backwards or when strafing towards the opposite side indicated by the direction variable