Xonotic
|
#include "strafehud.qh"
#include <client/draw.qh>
#include <client/hud/panel/racetimer.qh>
#include <client/view.qh>
#include <common/animdecide.qh>
#include <common/ent_cs.qh>
#include <common/mapinfo.qh>
#include <common/physics/movetypes/movetypes.qh>
#include <common/physics/player.qh>
#include <common/resources/cl_resources.qh>
#include <lib/csqcmodel/cl_player.qh>
Go to the source code of this file.
Functions | |
string | GetLengthUnit (int length_unit) |
float | GetLengthUnitFactor (int length_unit) |
void | HUD_Panel_DrawStrafeHUD (float offset, float width, vector color, float alpha, int type, int gradientType) |
void | HUD_StrafeHUD () |
void | HUD_StrafeHUD_Export (int fh) |
void | StrafeHUD_drawGradient (vector color1, vector color2, vector size, float original_width, float offset, float alpha, float gradientOffset, int gradientType) |
vector | StrafeHUD_mixColors (vector color1, vector color2, float ratio) |
Variables | |
noref string | autocvar_hud_panel_strafehud_bg = "0" |
noref string | autocvar_hud_panel_strafehud_bg_alpha = "0.7" |
noref string | autocvar_hud_panel_strafehud_bg_border = "" |
noref string | autocvar_hud_panel_strafehud_bg_color = "" |
noref string | autocvar_hud_panel_strafehud_bg_color_team = "" |
noref string | autocvar_hud_panel_strafehud_bg_padding = "" |
noref string | autocvar_hud_panel_strafehud_pos = "0.320000 0.570000" |
noref string | autocvar_hud_panel_strafehud_size = "0.360000 0.020000" |
float | demo_angle = -37 |
float | demo_direction = 1 |
float | demo_time = 0 |
int | direction |
bool | fwd = true |
float | hidden_width |
float | startspeed = -1 |
float | starttime = 0 |
bool | state_fwd = true |
bool | state_fwd_prev = true |
float | state_fwd_time = 0 |
bool | state_onground = false |
float | state_onground_time = 0 |
bool | state_strafekeys = false |
float | state_strafekeys_time = 0 |
bool | turn = false |
float | turnangle |
Definition at line 873 of file strafehud.qc.
References strcat().
Referenced by HUD_StrafeHUD().
Definition at line 860 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
void HUD_Panel_DrawStrafeHUD | ( | float | offset, |
float | width, | ||
vector | color, | ||
float | alpha, | ||
int | type, | ||
int | gradientType | ||
) |
Definition at line 749 of file strafehud.qc.
References autocvar_hud_panel_strafehud_bar_neutral_color, direction, drawfill(), DRAWFLAG_NORMAL, eX, fabs(), hidden_width, HUD_Panel_DrawProgressBar(), max(), min(), panel_pos, panel_size, size, StrafeHUD_drawGradient(), and vector().
Referenced by HUD_StrafeHUD().
void HUD_StrafeHUD | ( | ) |
Definition at line 52 of file strafehud.qc.
References ANIMIMPLICITSTATE_INAIR, autocvar__hud_configure, autocvar__hud_panel_strafehud_demo, autocvar_hud_panel_strafehud, autocvar_hud_panel_strafehud_angle_accel_color, autocvar_hud_panel_strafehud_angle_alpha, autocvar_hud_panel_strafehud_angle_height, autocvar_hud_panel_strafehud_angle_neutral_color, autocvar_hud_panel_strafehud_angle_overturn_color, autocvar_hud_panel_strafehud_angle_width, autocvar_hud_panel_strafehud_antiflicker_angle, autocvar_hud_panel_strafehud_antiflicker_speed, autocvar_hud_panel_strafehud_bar_accel_alpha, autocvar_hud_panel_strafehud_bar_accel_color, autocvar_hud_panel_strafehud_bar_neutral_alpha, autocvar_hud_panel_strafehud_bar_neutral_color, autocvar_hud_panel_strafehud_bar_overturn_alpha, autocvar_hud_panel_strafehud_bar_overturn_color, autocvar_hud_panel_strafehud_direction_alpha, autocvar_hud_panel_strafehud_direction_color, autocvar_hud_panel_strafehud_direction_length, autocvar_hud_panel_strafehud_direction_width, autocvar_hud_panel_strafehud_dynamichud, autocvar_hud_panel_strafehud_jumpheight_color, autocvar_hud_panel_strafehud_jumpheight_fade, autocvar_hud_panel_strafehud_jumpheight_min, autocvar_hud_panel_strafehud_jumpheight_size, autocvar_hud_panel_strafehud_mode, autocvar_hud_panel_strafehud_range, autocvar_hud_panel_strafehud_slickdetector_alpha, autocvar_hud_panel_strafehud_slickdetector_color, autocvar_hud_panel_strafehud_slickdetector_granularity, autocvar_hud_panel_strafehud_slickdetector_height, autocvar_hud_panel_strafehud_slickdetector_range, autocvar_hud_panel_strafehud_startspeed_color, autocvar_hud_panel_strafehud_startspeed_fade, autocvar_hud_panel_strafehud_startspeed_size, autocvar_hud_panel_strafehud_style, autocvar_hud_panel_strafehud_switch_active_alpha, autocvar_hud_panel_strafehud_switch_active_color, autocvar_hud_panel_strafehud_switch_inactive_alpha, autocvar_hud_panel_strafehud_switch_inactive_color, autocvar_hud_panel_strafehud_switch_minspeed, autocvar_hud_panel_strafehud_switch_width, autocvar_hud_panel_strafehud_timeout_air, autocvar_hud_panel_strafehud_timeout_direction, autocvar_hud_panel_strafehud_timeout_ground, autocvar_hud_panel_strafehud_timeout_turn, autocvar_hud_panel_strafehud_unit, autocvar_hud_panel_strafehud_unit_show, autocvar_v_flipped, bound(), cos(), CSQCModel_server2csqc(), csqcplayer, DEG2RAD, demo_angle, demo_direction, demo_time, direction, draw_beginBoldFont, draw_endBoldFont, drawfill(), DRAWFLAG_NORMAL, drawstring_aspect(), entity(), eX, eY, fabs(), ftos_decimals(), fwd, GetLengthUnit(), GetLengthUnitFactor(), GetSpeedUnit(), GetSpeedUnitFactor(), hidden_width, HUD_Panel_DrawBg, HUD_Panel_DrawProgressBar(), HUD_Panel_DrawStrafeHUD(), HUD_Panel_LoadCvars(), HUD_Scale_Disable(), HUD_Scale_Enable(), IS_DEAD, IS_DUCKED, IS_ONGROUND, IS_ONSLICK, isdemo(), max(), min(), MOVE_WORLDONLY, movement, MUTATOR_CALLHOOK, NULL, panel_bg_padding, panel_fg_alpha, panel_pos, panel_size, PHYS_MAXAIRSPEED, PHYS_MAXAIRSTRAFESPEED, PHYS_MAXSPEED, player_localentnum, pow(), Q3SURFACEFLAG_SLICK, race_checkpoint, race_checkpointtime, RAD2DEG, sin(), spectatee_status, speed, startspeed, starttime, state_fwd, state_fwd_prev, state_fwd_time, state_onground, state_onground_time, state_strafekeys, state_strafekeys_time, StrafeHUD_mixColors(), strcat(), time, trace_dphitq3surfaceflags, turn, turnangle, vec2, vectoangles(), vector(), vlen(), and WATERLEVEL_SWIMMING.
Definition at line 18 of file strafehud.qc.
void StrafeHUD_drawGradient | ( | vector | color1, |
vector | color2, | ||
vector | size, | ||
float | original_width, | ||
float | offset, | ||
float | alpha, | ||
float | gradientOffset, | ||
int | gradientType | ||
) |
Definition at line 836 of file strafehud.qc.
References autocvar_hud_panel_strafehud_bar_neutral_alpha, bound(), drawfill(), DRAWFLAG_NORMAL, eX, panel_pos, size, StrafeHUD_mixColors(), and vector().
Referenced by HUD_Panel_DrawStrafeHUD().
Definition at line 825 of file strafehud.qc.
References vector().
Referenced by HUD_StrafeHUD(), and StrafeHUD_drawGradient().
noref string autocvar_hud_panel_strafehud_bg = "0" |
Definition at line 45 of file strafehud.qc.
noref string autocvar_hud_panel_strafehud_bg_alpha = "0.7" |
Definition at line 48 of file strafehud.qc.
noref string autocvar_hud_panel_strafehud_bg_border = "" |
Definition at line 49 of file strafehud.qc.
noref string autocvar_hud_panel_strafehud_bg_color = "" |
Definition at line 46 of file strafehud.qc.
noref string autocvar_hud_panel_strafehud_bg_color_team = "" |
Definition at line 47 of file strafehud.qc.
noref string autocvar_hud_panel_strafehud_bg_padding = "" |
Definition at line 50 of file strafehud.qc.
noref string autocvar_hud_panel_strafehud_pos = "0.320000 0.570000" |
Definition at line 43 of file strafehud.qc.
noref string autocvar_hud_panel_strafehud_size = "0.360000 0.020000" |
Definition at line 44 of file strafehud.qc.
float demo_angle = -37 |
Definition at line 25 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
float demo_direction = 1 |
Definition at line 26 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
float demo_time = 0 |
Definition at line 27 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
int direction |
Definition at line 24 of file strafehud.qc.
Referenced by HUD_Panel_DrawStrafeHUD(), HUD_StrafeHUD(), pathlib_walknode(), steerlib_arrive(), steerlib_attract(), steerlib_attract2(), steerlib_repel(), steerlib_standoff(), and XonoticServerList_setSortOrder().
Definition at line 34 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
float hidden_width |
Definition at line 23 of file strafehud.qc.
Referenced by HUD_Panel_DrawStrafeHUD(), and HUD_StrafeHUD().
float startspeed = -1 |
Definition at line 39 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
float starttime = 0 |
Definition at line 38 of file strafehud.qc.
Referenced by Announcer_Countdown(), Announcer_Time(), ClientKill_TeamChange(), HUD_StrafeHUD(), and HUD_Timer_TimeElapsed().
Definition at line 35 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
Definition at line 36 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
float state_fwd_time = 0 |
Definition at line 37 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
Definition at line 28 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
float state_onground_time = 0 |
Definition at line 29 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
Definition at line 30 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
float state_strafekeys_time = 0 |
Definition at line 31 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
Definition at line 32 of file strafehud.qc.
Referenced by HUD_StrafeHUD().
float turnangle |
Definition at line 33 of file strafehud.qc.
Referenced by HUD_StrafeHUD().