31 const string s_original = s;
45 const float old_pos_y = pos.y;
72 for (
int j = end; j >= 0; --j)
134 for (i = 0; i < 4; ++i)
137 string time_split = i == 0 ?
"+0.39" : i == 1 ?
"+0.0" : i == 2 ?
"-0.14" :
"-0.08";
138 string col = i == 0 ?
"^1" : i == 1 ?
"^3" :
"^2";
139 float speed_split = speed_conv_f * (1086 + i * 51);
140 float speed_diff = speed_conv_f * (i == 0 ? -34 : i == 1 ? 86 : i == 2 ? 25 : 0);
144 demolines[i] = sprintf(
strcat(
"%s %s", _(
"Checkpoint %d"),
" (%s) ^7%d%s %s"), timestr, col, i+1, time_split, speed_split, units_text, sprintf(
"%s(%+d%s)", speed_color, speed_diff, units_text));
void HUD_Checkpoints_Export(int fh)
vector Checkpoints_Draw(int end, vector pos, vector fontsize, vector rs_fontsize)
vector Checkpoints_drawstring(string s, vector pos, vector sz, float a, vector fontsize)
const float CHECKPOINTS_SPACING
const float CHECKPOINTS_BASE_SIZE
bool autocvar_hud_panel_checkpoints_flip
bool autocvar_hud_panel_checkpoints_dynamichud
bool autocvar_hud_panel_checkpoints_align
bool autocvar_hud_panel_checkpoints
float autocvar_hud_panel_checkpoints_fontscale
#define drawcolorcodedstring(position, text, scale, alpha, flag)
vector autocvar_hud_progressbar_acceleration_neg_color
vector autocvar_hud_progressbar_acceleration_color
string GetSpeedUnit(int speed_unit)
float GetSpeedUnitFactor(int speed_unit)
ERASEABLE string rgb_to_hexcolor(vector rgb)
string getWrappedLine(float maxWidth, vector theFontSize, textLengthUpToWidth_widthFunction_t tw)
string getWrappedLine_remaining
#define TIME_ENCODED_TOSTRING(n, compact)
const float DRAWFLAG_NORMAL
void HUD_Panel_LoadCvars()
int autocvar_hud_speed_unit
#define HUD_Panel_DrawBg()
#define HUD_Write_Cvar(cvar)
bool autocvar__hud_configure
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
float race_nextcheckpoint
string race_checkpoint_splits[256]
float stringwidth_colors(string s, vector theSize)