}
}
- text_offset_bottom += StrafeHUD_DrawVerticalAngle(text_offset_bottom);
+ text_offset_bottom += StrafeHUD_DrawVerticalAngle(strafeplayer, text_offset_bottom);
draw_beginBoldFont();
text_offset_bottom += StrafeHUD_DrawStartSpeed(speed, text_offset_bottom);
}
// vertical angle for weapon jumps
-float StrafeHUD_DrawVerticalAngle(float text_offset_bottom)
+float StrafeHUD_DrawVerticalAngle(entity e, float text_offset_bottom)
{
if(autocvar_hud_panel_strafehud_vangle)
{
- float vangle = -PHYS_INPUT_ANGLES(strafeplayer).x;
+ float vangle = -PHYS_INPUT_ANGLES(e).x;
float vangle_height = autocvar_hud_panel_strafehud_vangle_size * panel_size.y;
string vangle_text = strcat(ftos_decimals(vangle, 2), "°");
#include "../strafehud.qh"
float StrafeHUD_DrawSlickDetector(entity, bool);
-float StrafeHUD_DrawVerticalAngle(float);
+float StrafeHUD_DrawVerticalAngle(entity, float);
void StrafeHUD_Sonar(float, string);
string StrafeHUD_UpdateSonarSound();
float StrafeHUD_DrawJumpHeight(entity, bool, bool, float);