43{
46
48 {
50 return;
51 }
52
54
55
56 string rr;
59 else
62
63 if(score && (score < t || !t) && !
isdemo()) {
66 {
68 f &= ~1;
70 }
76 }
77
81 }
82
84 float squareSize;
85 if(mySize.x > mySize.y) {
86
87 squareSize =
min(mySize.y, mySize.x/2);
88 vector ofs =
vec2(0.5 *
max(0, mySize.x/2 - squareSize), 0.5 * (mySize.y - squareSize));
89 textPos = pos + ofs;
90 ofs.x += 0.5 * mySize.x;
91 medalPos = pos + ofs;
92 } else {
93
94 squareSize =
min(mySize.x, mySize.y/2);
95 vector ofs =
vec2(0.5 * (mySize.x - squareSize), 0.5 *
max(0, mySize.y/2 - squareSize));
96 textPos = pos + ofs;
97 ofs.y += 0.5 * mySize.y;
98 medalPos = pos + ofs;
99 }
100 vector textSize =
vec2(squareSize, 0.25 * squareSize);
101
103
104
109 }
110
111 textPos +=
eY * 0.5 * squareSize;
113
118 }
119
120
123
124 float rank = 0;
128 vector namepos = medalPos +
'0 0.8 0' * squareSize;
129 vector rankpos = medalPos +
'0 0.15 0' * squareSize;
130
140 else
148 }
149
155 }
156}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
int race_CheckName(string net_name)
float srecordtime_change_time
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)
#define drawpic_aspect_skin(pos, pic, sz, color, theAlpha, drawflag)
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)