Previously there was a cvar to enable it, but it would be the color of the accel zone
Having different colors is particularly useful for circlejumping
seta hud_panel_strafehud_unit_show "1" "show units"
seta hud_panel_strafehud_uncapped "0" "set to \"1\" to remove some safety restrictions, useful to set thinner indicator lines down to 1px or for trying out higher values for some performance degrading operations (warning: elements may turn invisible if too thin, other configurations may crash your game or look horribly ugly)"
seta hud_panel_strafehud_bar_preaccel "1" "set to \"1\" to extend the acceleration zone by the strafe meter zone before full acceleration can be achieved"
+seta hud_panel_strafehud_bar_preaccel_color "0 1 0" "color of the strafe meter pre-acceleration zone"
+seta hud_panel_strafehud_bar_preaccel_alpha "0.5" "opacity of the strafe meter pre-acceleration zone"
seta hud_panel_strafehud_bar_neutral_color "1 1 1" "color of the strafe meter neutral zone"
seta hud_panel_strafehud_bar_neutral_alpha "0.1" "opacity of the strafe meter neutral zone"
seta hud_panel_strafehud_bar_accel_color "0 1 0" "color of the strafe meter acceleration zone"
seta hud_panel_strafehud_angle_alpha "0.8" "opacity of the indicator showing the player's current angle"
seta hud_panel_strafehud_angle_height "1" "height of the indicator showing the player's current angle (relative to the panel height)"
seta hud_panel_strafehud_angle_width "0.001" "width of the indicator showing the player's current angle (relative to the panel width)"
+seta hud_panel_strafehud_angle_preaccel_color "0 1 1" "color of the indicator showing the player's current angle if it is within the acceleration zone"
seta hud_panel_strafehud_angle_neutral_color "1 1 0" "color of the indicator showing the player's current angle if it is within the neutral zone"
seta hud_panel_strafehud_angle_accel_color "0 1 1" "color of the indicator showing the player's current angle if it is within the acceleration zone"
seta hud_panel_strafehud_angle_overturn_color "1 0 1" "color of the indicator showing the player's current angle if it is within the overturn zone"
if(autocvar_hud_panel_strafehud_bar_preaccel)
HUD_Panel_DrawStrafeHUD(
preaccelzone_left_offset, preaccelzone_width, hidden_width,
- autocvar_hud_panel_strafehud_bar_accel_color,
- autocvar_hud_panel_strafehud_bar_accel_alpha * panel_fg_alpha,
+ autocvar_hud_panel_strafehud_bar_preaccel_color,
+ autocvar_hud_panel_strafehud_bar_preaccel_alpha * panel_fg_alpha,
autocvar_hud_panel_strafehud_style, STRAFEHUD_GRADIENT_RIGHT, false);
// draw right acceleration zone
if(autocvar_hud_panel_strafehud_bar_preaccel)
HUD_Panel_DrawStrafeHUD(
preaccelzone_right_offset, preaccelzone_width, hidden_width,
- autocvar_hud_panel_strafehud_bar_accel_color,
- autocvar_hud_panel_strafehud_bar_accel_alpha * panel_fg_alpha,
+ autocvar_hud_panel_strafehud_bar_preaccel_color,
+ autocvar_hud_panel_strafehud_bar_preaccel_alpha * panel_fg_alpha,
autocvar_hud_panel_strafehud_style, STRAFEHUD_GRADIENT_LEFT, false);
// draw overturn zone
else if(moveangle >= real_prebestangle)
{
if(autocvar_hud_panel_strafehud_bar_preaccel)
- currentangle_color = autocvar_hud_panel_strafehud_angle_accel_color;
+ currentangle_color = autocvar_hud_panel_strafehud_angle_preaccel_color;
strafe_ratio = (moveangle - real_prebestangle) / (real_bestangle - real_prebestangle);
}
bool autocvar_hud_panel_strafehud_unit_show = true;
bool autocvar_hud_panel_strafehud_uncapped = false;
bool autocvar_hud_panel_strafehud_bar_preaccel = true;
+vector autocvar_hud_panel_strafehud_bar_preaccel_color = '0 1 0';
+float autocvar_hud_panel_strafehud_bar_preaccel_alpha = 0.5;
vector autocvar_hud_panel_strafehud_bar_neutral_color = '1 1 1';
float autocvar_hud_panel_strafehud_bar_neutral_alpha = 0.1;
vector autocvar_hud_panel_strafehud_bar_accel_color = '0 1 0';
float autocvar_hud_panel_strafehud_angle_alpha = 0.8;
float autocvar_hud_panel_strafehud_angle_height = 1;
float autocvar_hud_panel_strafehud_angle_width = 0.001;
+vector autocvar_hud_panel_strafehud_angle_preaccel_color = '0 1 1';
vector autocvar_hud_panel_strafehud_angle_neutral_color = '1 1 0';
vector autocvar_hud_panel_strafehud_angle_accel_color = '0 1 1';
vector autocvar_hud_panel_strafehud_angle_overturn_color = '1 0 1';