10 for (
int i = 0; i < argc; ++i)
48 _notice.alpha = ReadLong() +
time;
77 v1 =
'1 1 0' * (M1 + M2);
82 vector v3 = v1 +
'10 10 0';
83 #define OUT(s, z) MACRO_BEGIN \
84 drawcolorcodedstring(v3, s, '1 1 0' * z, 1, DRAWFLAG_NORMAL); \
89 float time_width = 48;
90 OUT(_(
"^1Server notices:"), 32);
92 if(it.alpha - cur_time > 0.1)
95 string s = sprintf(
"^3%d", ceil(cur_time - time));
96 drawcolorcodedstring(v3 + eX * 0.5 * (time_width - stringwidth(s, true,
'1 1 0' * 16)), s,
'1 1 0' * 16, 1, DRAWFLAG_NORMAL);
97 v3.x = v1.x + 10 + time_width;
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define drawfill(position, size, rgb, alpha, flag)
const float DRAWFLAG_NORMAL
void defer(entity this, float fdelay, void(entity) func)
Execute func() after time + fdelay.
#define tokenizebyseparator
noref float vid_conheight
#define NET_HANDLE(id, param)
#define WriteHeader(to, id)
#define REGISTER_NET_TEMP(id)
#define LL_EACH(list, cond, body)
entity LL_PUSH(LinkedList this, entity e)
Push to tail.
void sv_notice_to(entity _to, string _notice, float _howlong, float _modal)
void sv_notice_join_think(entity this)
void sv_notice_join(entity _to)
void sv_notice_toall(string _notice, float _howlong, float _modal)
float autocvar_sv_join_notices_time
string autocvar_sv_join_notices
#define new_pure(class)
purely logical entities (not linked to the area grid)
#define IS_REAL_CLIENT(v)
#define FOREACH_CLIENT(cond, body)