21 string zoned_name =
strzone(strdecolorize(net_name));
83 if (score && (score < t || !t) && !
isdemo())
93 if(mySize.x > mySize.y) {
95 squareSize =
min(mySize.y, mySize.x/2);
96 vector ofs =
vec2(0.5 *
max(0, mySize.x/2 - squareSize), 0.5 * (mySize.y - squareSize));
98 ofs.x += 0.5 * mySize.x;
102 squareSize =
min(mySize.x, mySize.y/2);
103 vector ofs =
vec2(0.5 * (mySize.x - squareSize), 0.5 *
max(0, mySize.y/2 - squareSize));
105 ofs.y += 0.5 * mySize.y;
106 medalPos = pos + ofs;
108 vector textSize =
vec2(squareSize, 0.25 * squareSize);
119 textPos +=
eY * 0.5 * squareSize;
136 vector namepos = medalPos +
'0 0.8 0' * squareSize;
137 vector rankpos = medalPos +
'0 0.15 0' * squareSize;
192 M_ARGV(0,
string) = _(
"Rankings");
#define REGISTER_MUTATOR(...)
#define MUTATOR_HOOKFUNCTION(...)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
int race_CheckName(string net_name)
float srecordtime_change_time
void HUD_Mod_Race(vector pos, vector mySize, bool should_draw)
void race_UpdateDB(string rr, float new_score, float old_score)
void race_showTime(string text, vector pos, vector timeText_ofs, float theTime, vector textSize, float f)
float crecordtime_change_time
string race_status_name_prev
bool autocvar_cl_autodemo_delete_keeprecords
void drawstring_aspect(vector pos, string text, vector sz, vector color, float theAlpha, float drawflag)
void drawcolorcodedstring_aspect(vector pos, string text, vector sz, float theAlpha, float drawflag)
void drawstring_aspect_expanding(vector pos, string text, vector sz, vector color, float theAlpha, float drawflag, float fadelerp)
#define drawpic_aspect_skin(pos, pic, sz, color, theAlpha, drawflag)
int spectatee_status
the -1 disables HUD panels before CSQC receives necessary data
string grecordholder[RANKINGS_CNT]
bool autocvar_cl_autodemo_delete
const int SFL_TIME
Display as mm:ss.s, value is stored as 10ths of a second (AND 0 is the worst possible value!...
#define scores_flags(this)
string textShortenToWidth(string theText, float maxWidth, vector theFontSize, textLengthUpToWidth_widthFunction_t tw)
#define TIME_ENCODED_TOSTRING(n, compact)
ERASEABLE string count_ordinal(int interval)
const float DRAWFLAG_NORMAL
string entcs_GetName(int i)
PlayerScoreField ps_primary
ERASEABLE string db_get(int db, string key)
ERASEABLE void db_put(int db, string key, string value)
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
ERASEABLE string ColorTranslateRGB(string s)
float stringwidth_colors(string s, vector theSize)