Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
main.qh File Reference
Include dependency graph for main.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define getcommandkey(cmd_name, command)
#define getcommandkey_forcename(cmd_name, command)
#define ISGAMETYPE(NAME)
#define player_currententnum   (spectatee_status > 0 ? spectatee_status : player_localnum + 1)

Functions

string _getcommandkey (string text, string command, bool forcename)
void AuditLists ()
 AUTOCVAR_SAVE (cl_race_checkpoint_splits_console, bool, 1, "print checkpoint splits to console")
 AUTOCVAR_SAVE (cl_race_cptimes_namesize, float, 10, "maximum player name length in race checkpoint messages")
 AUTOCVAR_SAVE (cl_race_cptimes_showspeed, bool, 0, "show race checkpoint speed (NOTE: ignores vertical speed)")
 AUTOCVAR_SAVE (cl_race_cptimes_showspeed_unit, bool, 1, "show race checkpoint speed units")
void Ent_Remove (entity this)
void Fog_Force ()
void Gametype_Init ()
string GetSpeedUnit (int speed_unit)
float GetSpeedUnitFactor (int speed_unit)
entity GetTeam (int Team, bool add)
void ignore_list_apply ()
void MoveToLast (entity e)
void PostInit ()
float RegisterPlayer (entity player)
float RegisterTeam (entity Team)
void Release_Common_Keys ()
void RemovePlayer (entity player)
void RemoveTeam (entity Team)
bool SetTeam (entity pl, int Team)
 STATIC_INIT (main)
 void (entity) draw
void Welcome_Message_Show_Try ()

Variables

const float ALPHA_MIN_VISIBLE = 0.003
float armorblockpercent
bool autocvar__hud_showbinds_reload
bool autocvar_cl_autodemo_delete
bool autocvar_cl_autodemo_delete_keepmatches
bool autocvar_cl_db_saveasdump
bool autocvar_cl_race_cptimes_onlyself
bool autocvar_cl_race_cptimes_showself = false
bool autocvar_cl_unpress_attack_on_weapon_switch = false
bool autocvar_cl_unpress_zoom_on_death = true
bool autocvar_cl_unpress_zoom_on_spawn = true
bool autocvar_cl_unpress_zoom_on_weapon_switch = true
bool autocvar_cl_welcome = true
bool autocvar_developer_csqcentities
bool autocvar_hud_showbinds
bool autocvar_hud_showbinds_limit
bool autocvar_menu_gamemenu = true
int binddb
bool button_attack2
bool button_zoom
int calledhooks
float camera_active
vector camera_direction
float camera_roll
bool campaign
float chase_active_backup
int ClientProgsDB
float current_viewzoom = 1
float current_zoomfraction
float damagepush_speedfactor
float drawframetime
bool eliminated
int enttype
float FONT_USER = 8
int framecount
IntrusiveList g_damagetext
IntrusiveList g_drawables
IntrusiveList g_drawables_2d
IntrusiveList g_radaricons
IntrusiveList g_radarlinks
float g_trueaim_minrange
entity gametype
string gametype_custom_name
bool gotscores
string grecordholder [RANKINGS_CNT]
float grecordtime [RANKINGS_CNT]
const int HOOK_END = 2
const int HOOK_INTERMISSION = 4
vector hook_shotorigin [4]
const int HOOK_START = 1
string hostname
int hud
vector hud_fontsize
string ignore_list
bool ignore_list_apply_time
const int MAX_SPECTATORS = 7
vector mi_center
vector mi_scale
string minimapname
int num_spectators
bool observe_blocked
entity owner
float ping
float ping_movementloss
float ping_packetloss
entity players
entity playerslots [255]
bool postinit
float RANKINGS_DISPLAY_CNT
float RANKINGS_RECEIVED_CNT
bool ready
bool ready_waiting
bool ready_waiting_for_me
float renderflags
float serverdeltatime
int serverflags
float serverprevtime
int spectatee_status = -1
 the -1 disables HUD panels before CSQC receives necessary data
float spectatee_status_changed_time
bool spectatorbutton_zoom
int spectatorlist [MAX_SPECTATORS]
int srv_maxplayers
int srv_minplayers
int sv_entnum
int team
float team_count
int team_size
entity teams
entity teamslots [17]
int tempdb
float ticrate
int vid_height
float vid_pixelheight
int vid_width
vector view_forward
vector view_origin
float view_quality
vector view_right
vector view_up
string vote_called_vote
bool vote_waiting
bool vote_waiting_for_me
bool warmup_stage
string welcome_msg
float welcome_msg_menu_check_maxtime
float zoomin_effect

Macro Definition Documentation

◆ getcommandkey

#define getcommandkey ( cmd_name,
command )
Value:
_getcommandkey(cmd_name, command, false)
string _getcommandkey(string cmd_name, string command, bool forcename)
Definition main.qc:1507
string cmd_name
Definition events.qh:12

Definition at line 137 of file main.qh.

Referenced by HUD_InfoMessages(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), net_handle_ServerWelcome(), Scoreboard_Draw(), Vehicles_drawHUD(), and Weapons_Draw().

◆ getcommandkey_forcename

#define getcommandkey_forcename ( cmd_name,
command )
Value:
_getcommandkey(cmd_name, command, true)

Definition at line 138 of file main.qh.

Referenced by HUD_Vote().

◆ ISGAMETYPE

◆ player_currententnum

#define player_currententnum   (spectatee_status > 0 ? spectatee_status : player_localnum + 1)

Definition at line 200 of file main.qh.

Referenced by NET_HANDLE(), and NET_HANDLE().

Function Documentation

◆ _getcommandkey()

string _getcommandkey ( string text,
string command,
bool forcename )

Definition at line 1507 of file main.qc.

1508{
1510 return cmd_name;
1511
1512 string key, keys = db_get(binddb, command);
1513 int n, j, found = 0;
1514 float k;
1515
1516 if (keys == "")
1517 {
1518 const bool joy_active = cvar("joy_active");
1519 n = tokenize(findkeysforcommand(command, 0)); // uses '...' strings
1520 for (j = 0; j < n; ++j)
1521 {
1522 k = stof(argv(j));
1523 if (k == -1)
1524 continue;
1525 key = keynumtostring(k);
1526 if (!joy_active && startsWith(key, "JOY"))
1527 continue;
1528
1529 keys = cons_mid(keys, ", ", translate_key(key));
1530
1532 break;
1533 }
1534 if (keys == "")
1535 keys = "NO_KEY";
1536 db_put(binddb, command, keys);
1537 }
1538
1539 if (keys == "NO_KEY")
1540 {
1541 if (autocvar_hud_showbinds > 1)
1542 return sprintf(_("%s (not bound)"), cmd_name);
1543 else
1544 return cmd_name;
1545 }
1546 else if (autocvar_hud_showbinds > 1 || forcename)
1547 return sprintf("%s (%s)", cmd_name, keys);
1548 return keys;
1549}
int binddb
Definition main.qh:191
bool autocvar_hud_showbinds
Definition main.qh:11
bool autocvar_hud_showbinds_limit
Definition main.qh:12
string translate_key(string key)
Definition util.qc:1512
ERASEABLE string db_get(int db, string key)
Definition map.qh:91
ERASEABLE void db_put(int db, string key, string value)
Definition map.qh:101
float stof(string val,...)
float cvar(string name)
string keynumtostring(float keynum)
float tokenize(string s)
string argv(float n)
ERASEABLE string cons_mid(string a, string mid, string b)
Definition string.qh:284
#define startsWith(haystack, needle)
Definition string.qh:236

References argv(), autocvar_hud_showbinds, autocvar_hud_showbinds_limit, binddb, cmd_name, cons_mid(), cvar(), db_get(), db_put(), keynumtostring(), startsWith, stof(), tokenize(), and translate_key().

◆ AuditLists()

void AuditLists ( )

Definition at line 225 of file main.qc.

226{
227 entity e;
228 entity prev;
229
230 prev = players;
231 for(e = prev.sort_next; e; prev = e, e = e.sort_next)
232 {
233 if(prev != e.sort_prev)
234 error(strcat("sort list chain error\nplease submit the output of 'prvm_edicts client' to the developers"));
235 }
236
237 prev = teams;
238 for(e = prev.sort_next; e; prev = e, e = e.sort_next)
239 {
240 if(prev != e.sort_prev)
241 error(strcat("sort list chain error\nplease submit the output of 'prvm_edicts client' to the developers"));
242 }
243}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity players
Definition main.qh:57
entity teams
Definition main.qh:58
prev
Definition all.qh:71
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define error
Definition pre.qh:6

References entity(), error, players, prev, strcat(), and teams.

Referenced by MoveToLast(), RegisterPlayer(), RegisterTeam(), RemovePlayer(), and RemoveTeam().

◆ AUTOCVAR_SAVE() [1/4]

AUTOCVAR_SAVE ( cl_race_checkpoint_splits_console ,
bool ,
1 ,
"print checkpoint splits to console"  )

◆ AUTOCVAR_SAVE() [2/4]

AUTOCVAR_SAVE ( cl_race_cptimes_namesize ,
float ,
10 ,
"maximum player name length in race checkpoint messages"  )

◆ AUTOCVAR_SAVE() [3/4]

AUTOCVAR_SAVE ( cl_race_cptimes_showspeed ,
bool ,
0 ,
"show race checkpoint speed (NOTE: ignores vertical speed)"  )

◆ AUTOCVAR_SAVE() [4/4]

AUTOCVAR_SAVE ( cl_race_cptimes_showspeed_unit ,
bool ,
1 ,
"show race checkpoint speed units"  )

◆ Ent_Remove()

void Ent_Remove ( entity this)

Definition at line 943 of file main.qc.

944{
945 if(this.entremove) this.entremove(this);
946
947 if(this.skeletonindex)
948 {
949 skel_delete(this.skeletonindex);
950 this.skeletonindex = 0;
951 }
952
953 if(this.snd_looping > 0)
954 {
956 this.snd_looping = 0;
957 }
958
959 this.enttype = 0;
960 this.classname = "";
961 this.draw = func_null;
962 this.entremove = func_null;
963 // TODO possibly set more stuff to defaults
964}
int enttype
Definition main.qh:185
string classname
float skeletonindex
int snd_looping
float autocvar_cl_jetpack_attenuation
var void func_null()
const float VOL_BASE
Definition sound.qh:36
#define sound(e, c, s, v, a)
Definition sound.qh:52

References autocvar_cl_jetpack_attenuation, classname, entity(), enttype, func_null(), skeletonindex, snd_looping, sound, and VOL_BASE.

Referenced by CSQC_Ent_Remove(), CSQC_Ent_Update(), and NET_HANDLE().

◆ Fog_Force()

void Fog_Force ( )

Definition at line 1037 of file main.qc.

1038{
1040 {
1042 cvar_set("r_drawfog", "0");
1043 }
1044 else if (forcefog != "")
1045 {
1046 // using cvar_set as it's faster and safer than a command
1047 if (!autocvar_r_drawfog)
1048 cvar_set("r_drawfog", "1");
1050 cvar_set("r_fog_exp2", "0");
1051 localcmd(sprintf("\nfog %s\n", forcefog));
1052 }
1053}
bool autocvar_r_fog_exp2
Definition main.qc:1035
string forcefog
Definition main.qc:1036
bool autocvar_r_drawfog
Definition main.qc:1034
void localcmd(string command,...)
void cvar_set(string name, string value)
bool autocvar_cl_orthoview
Definition view.qh:21
bool autocvar_cl_orthoview_nofog
Definition view.qh:22

References autocvar_cl_orthoview, autocvar_cl_orthoview_nofog, autocvar_r_drawfog, autocvar_r_fog_exp2, cvar_set(), forcefog, and localcmd().

Referenced by CSQC_UpdateView().

◆ Gametype_Init()

void Gametype_Init ( )

Definition at line 978 of file main.qc.

979{
980 // fire game or demo start hooks here
981 if (!(calledhooks & HOOK_START))
982 {
983 if (!isdemo())
984 localcmd("\n_cl_hook_gamestart ", MapInfo_Type_ToString(gametype), "\n");
985 else
986 localcmd("\ncl_hook_demostart\n");
987
988 calledhooks |= HOOK_START; // mark start hook as fired
989 }
990}
int calledhooks
Definition main.qh:164
const int HOOK_START
Definition main.qh:165
string MapInfo_Type_ToString(Gametype t)
Definition mapinfo.qc:656
float isdemo()

References calledhooks, gametype, HOOK_START, isdemo(), localcmd(), and MapInfo_Type_ToString().

Referenced by NET_HANDLE().

◆ GetSpeedUnit()

string GetSpeedUnit ( int speed_unit)

Definition at line 1122 of file main.qc.

1123{
1124 switch(speed_unit)
1125 {
1126 // translator-friendly strings without the initial space
1127 default:
1128 case 1: return strcat(" ", _("qu/s"));
1129 case 2: return strcat(" ", _("m/s"));
1130 case 3: return strcat(" ", _("km/h"));
1131 case 4: return strcat(" ", _("mph"));
1132 case 5: return strcat(" ", _("knots"));
1133 }
1134}

References strcat().

Referenced by HUD_Checkpoints(), HUD_Physics(), HUD_RaceTimer(), Scoreboard_Draw(), and StrafeHUD_DrawStartSpeed().

◆ GetSpeedUnitFactor()

float GetSpeedUnitFactor ( int speed_unit)

Definition at line 1109 of file main.qc.

1110{
1111 switch(speed_unit)
1112 {
1113 default:
1114 case 1: return 1.0;
1115 case 2: return 0.0254;
1116 case 3: return 0.0254 * 3.6;
1117 case 4: return 0.0254 * 3.6 * 0.6213711922;
1118 case 5: return 0.0254 * 1.943844492; // 1 m/s = 1.943844492 knots, because 1 knot = 1.852 km/h
1119 }
1120}

Referenced by HUD_Checkpoints(), HUD_Physics(), HUD_RaceTimer(), Scoreboard_Draw(), and StrafeHUD_DrawStartSpeed().

◆ GetTeam()

entity GetTeam ( int Team,
bool add )

Definition at line 332 of file main.qc.

333{
334 TC(int, Team); TC(bool, add);
335 int num = (Team == NUM_SPECTATOR) ? 16 : Team;
336 if(teamslots[num])
337 return teamslots[num];
338 if (!add)
339 return NULL;
340 entity tm = new_pure(team);
341 tm.team = Team;
342 teamslots[num] = tm;
343 RegisterTeam(tm);
344 return tm;
345}
float RegisterTeam(entity Team)
Definition main.qc:292
entity teamslots[17]
Definition main.qh:85
int team
Definition main.qh:188
#define TC(T, sym)
Definition _all.inc:82
#define new_pure(class)
purely logical entities (not linked to the area grid)
Definition oo.qh:67
#define NULL
Definition post.qh:14
const int NUM_SPECTATOR
Definition teams.qh:23

References entity(), new_pure, NULL, NUM_SPECTATOR, RegisterTeam(), TC, team, and teamslots.

Referenced by CSQC_Init(), HUD_InfoMessages(), NET_HANDLE(), and SetTeam().

◆ ignore_list_apply()

void ignore_list_apply ( )

Definition at line 672 of file main.qc.

673{
674 for (entity pl = players.sort_next; pl; pl = pl.sort_next)
675 pl.ignored = false;
676
678
679 if (ignore_list == "")
680 return;
681
683 {
684 bool found = false;
685 int ignore_id = stoi(it);
686 for (entity pl = players.sort_next; pl; pl = pl.sort_next)
687 {
688 if (ignore_id == pl.sv_entnum + 1)
689 {
690 pl.ignored = true;
691 found = true;
692 break;
693 }
694 }
695 // when an ignored player is not found, it means their playerslot is not initialized yet
696 if (!found)
697 ignore_list_apply_time = time + 0.5; // retry after a while
698 });
699
700 if (ignore_list_apply_time == 0) // ignore_list applied
702}
string ignore_list
Definition main.qh:130
bool ignore_list_apply_time
Definition main.qh:131
float time
#define stoi(s)
Definition int.qh:4
#define FOREACH_WORD(words, cond, body)
Definition iter.qh:33
#define strfree(this)
Definition string.qh:59

References entity(), FOREACH_WORD, ignore_list, ignore_list_apply_time, players, stoi, strfree, and time.

Referenced by CSQC_UpdateView(), and NET_HANDLE().

◆ MoveToLast()

void MoveToLast ( entity e)

Definition at line 280 of file main.qc.

281{
282 AuditLists();
283 entity ent = e.sort_next;
284 while(ent)
285 {
286 SORT_SWAP(ent, e);
287 ent = e.sort_next;
288 }
289 AuditLists();
290}
void AuditLists()
Definition main.qc:225
#define SORT_SWAP(a, b)
Swap two neighbours in a sortlist.
Definition sortlist.qh:14

References AuditLists(), entity(), and SORT_SWAP.

◆ PostInit()

void PostInit ( )

Definition at line 463 of file main.qc.

464{
465 entity playerchecker = new_pure(playerchecker);
466 setthink(playerchecker, Playerchecker_Think);
467 playerchecker.nextthink = time + 0.2;
468
469 TrueAim_Init();
470
471 // this can't be called in CSQC_Init as it'd send cvars too early
472 ReplicateVars_Start();
473
474 postinit = true;
475}
void Playerchecker_Think(entity this)
Definition main.qc:421
bool postinit
Definition main.qh:42
void TrueAim_Init()
Definition crosshair.qc:44
#define setthink(e, f)

References entity(), new_pure, Playerchecker_Think(), postinit, setthink, time, and TrueAim_Init().

Referenced by CSQC_UpdateView(), and NET_HANDLE().

◆ RegisterPlayer()

float RegisterPlayer ( entity player)

Definition at line 245 of file main.qc.

246{
247 entity pl;
248 AuditLists();
249 for(pl = players.sort_next; pl; pl = pl.sort_next)
250 if(pl == player)
251 error("Player already registered!");
252 player.sort_next = players.sort_next;
253 player.sort_prev = players;
254 if(players.sort_next)
255 players.sort_next.sort_prev = player;
256 players.sort_next = player;
257 AuditLists();
258 return true;
259}

References AuditLists(), entity(), error, and players.

Referenced by Playerchecker_Think().

◆ RegisterTeam()

float RegisterTeam ( entity Team)

Definition at line 292 of file main.qc.

293{
294 assert_once(Team.team, eprint(Team));
295 entity tm;
296 AuditLists();
297 for(tm = teams.sort_next; tm; tm = tm.sort_next)
298 if(tm == Team)
299 error("Team already registered!");
300 Team.sort_next = teams.sort_next;
301 Team.sort_prev = teams;
302 if(teams.sort_next)
303 teams.sort_next.sort_prev = Team;
304 teams.sort_next = Team;
305 if(Team.team && Team.team != NUM_SPECTATOR)
306 ++team_count;
307 AuditLists();
308 return true;
309}
float team_count
Definition main.qh:59
#define assert_once(expr,...)
Definition log.qh:11
void eprint(entity e)

References assert_once, AuditLists(), entity(), eprint(), error, NUM_SPECTATOR, team_count, and teams.

Referenced by GetTeam().

◆ Release_Common_Keys()

void Release_Common_Keys ( )

Definition at line 477 of file main.qc.

478{
479 localcmd("-fire\n");
480 localcmd("-fire2\n");
481 localcmd("-use\n");
482 localcmd("-hook\n");
483 localcmd("-jump\n");
484 localcmd("-forward\n");
485 localcmd("-back\n");
486 localcmd("-moveleft\n");
487 localcmd("-moveright\n");
488}

References localcmd().

Referenced by HUD_Radar_Show_Maximized(), QuickMenu_Open(), and Scoreboard_UI_Enable().

◆ RemovePlayer()

void RemovePlayer ( entity player)

Definition at line 261 of file main.qc.

262{
263 entity pl, parent;
264 AuditLists();
265 parent = players;
266 for(pl = players.sort_next; pl && pl != player; pl = pl.sort_next)
267 parent = pl;
268
269 if(!pl)
270 {
271 error("Trying to remove a player which is not in the playerlist!");
272 return;
273 }
274 parent.sort_next = player.sort_next;
275 if(player.sort_next)
276 player.sort_next.sort_prev = parent;
277 AuditLists();
278}
entity parent
Definition animhost.qc:7

References AuditLists(), entity(), error, parent, and players.

Referenced by Playerchecker_Think().

◆ RemoveTeam()

void RemoveTeam ( entity Team)

Definition at line 311 of file main.qc.

312{
313 entity tm, parent;
314 AuditLists();
315 parent = teams;
316 for(tm = teams.sort_next; tm && tm != Team; tm = tm.sort_next)
317 parent = tm;
318
319 if(!tm)
320 {
321 LOG_INFO(_("Trying to remove a team which is not in the teamlist!"));
322 return;
323 }
324 parent.sort_next = Team.sort_next;
325 if(Team.sort_next)
326 Team.sort_next.sort_prev = parent;
327 if(Team.team && Team.team != NUM_SPECTATOR)
328 --team_count;
329 AuditLists();
330}
#define LOG_INFO(...)
Definition log.qh:65

References AuditLists(), entity(), LOG_INFO, NUM_SPECTATOR, parent, team_count, and teams.

◆ SetTeam()

bool SetTeam ( entity pl,
int Team )

Definition at line 348 of file main.qc.

349{
350 TC(int, Team);
351 //devassert_once(Team);
352 entity tm;
353 if(teamplay)
354 {
355 switch(Team)
356 {
357 case -1:
358 case NUM_TEAM_1:
359 case NUM_TEAM_2:
360 case NUM_TEAM_3:
361 case NUM_TEAM_4:
362 break;
363 default:
364 if(GetTeam(Team, false) == NULL)
365 {
366 LOG_TRACEF("trying to switch to unsupported team %d", Team);
367 Team = NUM_SPECTATOR;
368 }
369 break;
370 }
371 }
372 else
373 {
374 switch(Team)
375 {
376 case -1:
377 case 0:
378 break;
379 default:
380 if(GetTeam(Team, false) == NULL)
381 {
382 LOG_TRACEF("trying to switch to unsupported team %d", Team);
383 Team = NUM_SPECTATOR;
384 }
385 break;
386 }
387 }
388 if(Team == -1) // leave
389 {
390 if(o.has_team)
391 {
392 tm = GetTeam(o.team, false);
393 tm.team_size -= 1;
394 o.has_team = 0;
395 return true;
396 }
397 }
398 else
399 {
400 if (!o.has_team)
401 {
402 o.team = Team;
403 tm = GetTeam(Team, true);
404 tm.team_size += 1;
405 o.has_team = 1;
406 return true;
407 }
408 else if(Team != o.team)
409 {
410 tm = GetTeam(o.team, false);
411 tm.team_size -= 1;
412 o.team = Team;
413 tm = GetTeam(Team, true);
414 tm.team_size += 1;
415 return true;
416 }
417 }
418 return false;
419}
entity GetTeam(int Team, bool add)
Definition main.qc:332
#define LOG_TRACEF(...)
Definition log.qh:77
const int NUM_TEAM_2
Definition teams.qh:14
const int NUM_TEAM_4
Definition teams.qh:16
const int NUM_TEAM_3
Definition teams.qh:15
bool teamplay
Definition teams.qh:59
const int NUM_TEAM_1
Definition teams.qh:13

References entity(), GetTeam(), LOG_TRACEF, NULL, NUM_SPECTATOR, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, TC, and teamplay.

Referenced by Ent_RemovePlayerScore(), Playerchecker_Think(), and Scoreboard_UpdatePlayerTeams().

◆ STATIC_INIT()

STATIC_INIT ( main )

Definition at line 96 of file main.qh.

97{
103}
IntrusiveList g_drawables
Definition main.qh:91
IntrusiveList g_damagetext
Definition main.qh:93
IntrusiveList g_radarlinks
Definition main.qh:94
IntrusiveList g_radaricons
Definition main.qh:95
IntrusiveList g_drawables_2d
Definition main.qh:92
#define IL_NEW()

References g_damagetext, g_drawables, g_drawables_2d, g_radaricons, g_radarlinks, IL_NEW, and main.

◆ void()

void ( entity )

References entity().

◆ Welcome_Message_Show_Try()

void Welcome_Message_Show_Try ( )

Definition at line 1462 of file main.qc.

1463{
1465 return;
1466
1467 // if want dialog check if menu is initialized but for a short time
1468 if (cvar("_menu_initialized") == 2 || time > welcome_msg_menu_check_maxtime)
1469 {
1470 if (cvar("_menu_welcome_dialog_available"))
1471 {
1472 string welcomedialog_args = strcat("HOSTNAME \"", hostname, "\"");
1473 string msg = MakeConsoleSafe(strreplace("\n", "\\n", welcome_msg));
1474 welcomedialog_args = strcat(welcomedialog_args, " WELCOME \"", msg, "\"");
1475
1477 {
1478 if (cvar("_menu_cmd_closemenu_available"))
1479 {
1480 // initialize the dialog without opening it
1481 localcmd("\nmenu_cmd closemenu Welcome ", welcomedialog_args, "\n");
1482 }
1483 else
1484 {
1485 // legacy code for clients with old menus
1486 // since togglemenu 0 doesn't close the dialog but only hides it,
1487 // playing back a demo the Welcome dialog will pop up on the first ESC press
1488 localcmd("\nmenu_cmd directmenu Welcome ", welcomedialog_args, "\n");
1489 // close it after it's been initialized so it can still be opened manually
1490 localcmd("\ntogglemenu 0\n");
1491 }
1492 }
1493 else
1494 localcmd("\nmenu_cmd directmenu Welcome ", welcomedialog_args, "\n");
1495 }
1496
1499 }
1500}
bool autocvar_cl_welcome
Definition main.qh:31
string hostname
Definition main.qh:123
float welcome_msg_menu_check_maxtime
Definition main.qh:127
string welcome_msg
Definition main.qh:124
float intermission
ERASEABLE string MakeConsoleSafe(string input)
escape the string to make it safe for consoles
Definition cvar.qh:24

References autocvar_cl_welcome, cvar(), hostname, intermission, isdemo(), localcmd(), MakeConsoleSafe(), strcat(), strfree, time, welcome_msg, and welcome_msg_menu_check_maxtime.

Referenced by CSQC_UpdateView().

Variable Documentation

◆ ALPHA_MIN_VISIBLE

const float ALPHA_MIN_VISIBLE = 0.003

◆ armorblockpercent

float armorblockpercent

Definition at line 160 of file main.qh.

Referenced by crosshair_getcolor(), HUD_HealthArmor(), and NET_HANDLE().

◆ autocvar__hud_showbinds_reload

bool autocvar__hud_showbinds_reload

Definition at line 13 of file main.qh.

Referenced by CSQC_UpdateView().

◆ autocvar_cl_autodemo_delete

bool autocvar_cl_autodemo_delete

Definition at line 32 of file main.qh.

Referenced by HUD_Mod_Race(), and NET_HANDLE().

◆ autocvar_cl_autodemo_delete_keepmatches

bool autocvar_cl_autodemo_delete_keepmatches

Definition at line 33 of file main.qh.

Referenced by NET_HANDLE().

◆ autocvar_cl_db_saveasdump

bool autocvar_cl_db_saveasdump

Definition at line 6 of file main.qh.

Referenced by Shutdown().

◆ autocvar_cl_race_cptimes_onlyself

bool autocvar_cl_race_cptimes_onlyself

Definition at line 29 of file main.qh.

Referenced by NET_HANDLE().

◆ autocvar_cl_race_cptimes_showself

bool autocvar_cl_race_cptimes_showself = false

Definition at line 30 of file main.qh.

Referenced by MakeRaceString().

◆ autocvar_cl_unpress_attack_on_weapon_switch

bool autocvar_cl_unpress_attack_on_weapon_switch = false

Definition at line 10 of file main.qh.

Referenced by View_CheckButtonStatus().

◆ autocvar_cl_unpress_zoom_on_death

bool autocvar_cl_unpress_zoom_on_death = true

Definition at line 8 of file main.qh.

Referenced by View_CheckButtonStatus().

◆ autocvar_cl_unpress_zoom_on_spawn

bool autocvar_cl_unpress_zoom_on_spawn = true

Definition at line 7 of file main.qh.

Referenced by NET_HANDLE().

◆ autocvar_cl_unpress_zoom_on_weapon_switch

bool autocvar_cl_unpress_zoom_on_weapon_switch = true

Definition at line 9 of file main.qh.

Referenced by View_CheckButtonStatus().

◆ autocvar_cl_welcome

bool autocvar_cl_welcome = true

Definition at line 31 of file main.qh.

Referenced by Welcome_Message_Show_Try().

◆ autocvar_developer_csqcentities

bool autocvar_developer_csqcentities

◆ autocvar_hud_showbinds

bool autocvar_hud_showbinds

Definition at line 11 of file main.qh.

Referenced by _getcommandkey().

◆ autocvar_hud_showbinds_limit

bool autocvar_hud_showbinds_limit

Definition at line 12 of file main.qh.

Referenced by _getcommandkey().

◆ autocvar_menu_gamemenu

bool autocvar_menu_gamemenu = true

Definition at line 34 of file main.qh.

Referenced by CSQC_InputEvent().

◆ binddb

int binddb

Definition at line 191 of file main.qh.

Referenced by _getcommandkey(), CSQC_Init(), CSQC_UpdateView(), and Shutdown().

◆ button_attack2

bool button_attack2

Definition at line 116 of file main.qh.

Referenced by CSQC_UpdateView(), and View_CheckButtonStatus().

◆ button_zoom

bool button_zoom

Definition at line 113 of file main.qh.

Referenced by CSQC_UpdateView(), DrawReticle(), IsZooming(), NET_HANDLE(), and View_CheckButtonStatus().

◆ calledhooks

int calledhooks

Definition at line 164 of file main.qh.

Referenced by CSQC_Init(), CSQC_UpdateView(), Gametype_Init(), and Shutdown().

◆ camera_active

float camera_active

◆ camera_direction

vector camera_direction

Definition at line 156 of file main.qh.

Referenced by CSQC_Demo_Camera().

◆ camera_roll

float camera_roll

Definition at line 155 of file main.qh.

Referenced by CSQC_Demo_Camera().

◆ campaign

bool campaign

Definition at line 122 of file main.qh.

Referenced by net_handle_ServerWelcome(), and Scoreboard_Draw().

◆ chase_active_backup

float chase_active_backup

Definition at line 154 of file main.qh.

Referenced by Shutdown(), and View_DemoCamera().

◆ ClientProgsDB

int ClientProgsDB

Definition at line 204 of file main.qh.

Referenced by CSQC_Init(), HUD_Mod_Race(), and Shutdown().

◆ current_viewzoom

float current_viewzoom = 1

Definition at line 118 of file main.qh.

Referenced by CSQCModel_LOD_Apply(), GetCurrentFov(), and NET_HANDLE().

◆ current_zoomfraction

float current_zoomfraction

Definition at line 148 of file main.qh.

Referenced by DrawReticle(), GetCurrentFov(), and HUD_Radar_GetZoomFactor().

◆ damagepush_speedfactor

float damagepush_speedfactor

Definition at line 161 of file main.qh.

Referenced by NET_HANDLE(), and NET_HANDLE().

◆ drawframetime

float drawframetime

Definition at line 108 of file main.qh.

Referenced by CSQC_UpdateView(), doBGMScript(), GetCurrentFov(), and HUD_Contents().

◆ eliminated

bool eliminated

Definition at line 89 of file main.qh.

◆ enttype

int enttype

Definition at line 185 of file main.qh.

Referenced by CSQC_Ent_Remove(), CSQC_Ent_Update(), Ent_Remove(), and NET_HANDLE().

◆ FONT_USER

float FONT_USER = 8

Definition at line 48 of file main.qh.

◆ framecount

int framecount

Definition at line 180 of file main.qh.

Referenced by CSQC_UpdateView(), and CSQCModel_Hook_PreDraw().

◆ g_damagetext

◆ g_drawables

◆ g_drawables_2d

◆ g_radaricons

IntrusiveList g_radaricons

Definition at line 95 of file main.qh.

Referenced by Ent_WaypointSprite(), HUD_Radar(), and STATIC_INIT().

◆ g_radarlinks

IntrusiveList g_radarlinks

Definition at line 94 of file main.qh.

Referenced by HUD_Radar(), NET_HANDLE(), and STATIC_INIT().

◆ g_trueaim_minrange

float g_trueaim_minrange

Definition at line 171 of file main.qh.

Referenced by Draw_ArcBeam(), NET_HANDLE(), and TrueAimCheck().

◆ gametype

◆ gametype_custom_name

string gametype_custom_name

Definition at line 44 of file main.qh.

Referenced by NET_HANDLE(), Scoreboard_Draw(), and Shutdown().

◆ gotscores

bool gotscores

Definition at line 86 of file main.qh.

◆ grecordholder

string grecordholder[RANKINGS_CNT]

Definition at line 81 of file main.qh.

Referenced by NET_HANDLE(), race_CheckName(), and Scoreboard_Rankings_Draw().

◆ grecordtime

float grecordtime[RANKINGS_CNT]

Definition at line 82 of file main.qh.

Referenced by NET_HANDLE(), and Scoreboard_Rankings_Draw().

◆ HOOK_END

const int HOOK_END = 2

Definition at line 166 of file main.qh.

Referenced by CSQC_UpdateView(), and Shutdown().

◆ HOOK_INTERMISSION

const int HOOK_INTERMISSION = 4

Definition at line 167 of file main.qh.

Referenced by CSQC_UpdateView().

◆ hook_shotorigin

vector hook_shotorigin[4]

◆ HOOK_START

const int HOOK_START = 1

Definition at line 165 of file main.qh.

Referenced by CSQC_UpdateView(), Gametype_Init(), and Shutdown().

◆ hostname

string hostname

Definition at line 123 of file main.qh.

Referenced by net_handle_ServerWelcome(), and Welcome_Message_Show_Try().

◆ hud

◆ hud_fontsize

◆ ignore_list

◆ ignore_list_apply_time

bool ignore_list_apply_time

Definition at line 131 of file main.qh.

Referenced by CSQC_UpdateView(), and ignore_list_apply().

◆ MAX_SPECTATORS

const int MAX_SPECTATORS = 7

Definition at line 177 of file main.qh.

Referenced by HUD_InfoMessages(), and NET_HANDLE().

◆ mi_center

vector mi_center

Definition at line 37 of file main.qh.

Referenced by CSQC_Init(), and HUD_Radar().

◆ mi_scale

vector mi_scale

Definition at line 38 of file main.qh.

Referenced by CSQC_Init(), HUD_Radar(), and WaypointSprite_Load().

◆ minimapname

string minimapname

Definition at line 40 of file main.qh.

Referenced by CSQC_Init(), draw_teamradar_background(), and HUD_Radar().

◆ num_spectators

int num_spectators

Definition at line 176 of file main.qh.

Referenced by HUD_InfoMessages(), and NET_HANDLE().

◆ observe_blocked

bool observe_blocked

Definition at line 115 of file main.qh.

Referenced by HUD_InfoMessages(), and NET_HANDLE().

◆ owner

entity owner

Definition at line 87 of file main.qh.

Referenced by _entcs_send(), _wepent_send(), accuracy_send(), AuxiliaryXhair_customize(), ball_customize(), ball_restart(), bd_check_winner(), bd_controller_send(), bd_find_controller(), bd_find_dozer(), bd_find_piece(), bd_move(), bd_reset_moves(), bd_save_level(), bd_server_event(), bd_setup_pieces(), beam_think(), buff_Reset(), buff_Think(), buff_Touch(), buff_Vengeance_DelayedDamage(), buff_Waypoint_visible_for_player(), buffs_BuffModel_Customize(), buffs_BuffModel_Think(), bumblebee_blowup(), bumblebee_exit(), bumblebee_gunner_exit(), c4_find_piece(), c4_server_event(), ChatBubbleThink(), CL_ExteriorWeaponentity_Think(), CL_Weaponentity_CustomizeEntityForClient(), CL_WeaponEntity_SetModel(), CL_Weaponentity_Think(), classfield(), ClientData_Send(), cpicon_send(), ctf_FlagBase_Customize(), ctf_FlagThink(), ctf_Reset(), ctf_Return_Customize(), ctf_Stalemate_Customize(), DamageEffect_Think(), deactivate_minigame(), defer_think(), dompoint_captured(), dompointtouch(), door_damage(), door_touch(), door_trigger_touch(), door_use(), Draw_GrapplingHook(), dropclient_do(), DropOwner(), dynlight_find_aiment(), dynlight_find_target(), dynlight_think(), end_minigame(), Ent_RemovePlayerScore(), entcs_think(), freezetag_Ice_Think(), Frozen_ice_think(), func_bobbing_controller_think(), func_breakable_damage(), func_breakable_destroy(), func_fourier_controller_think(), func_pendulum_controller_think(), func_vectormamamam_controller_think(), Inventory_Send(), Item_Touch(), ka_ballcarrier_waypointsprite_visible_for_player(), ka_BallThink_Carried(), ka_TouchEvent(), kh_Key_Damage(), kh_Key_Think(), kh_Key_Touch(), kh_Key_waypointsprite_visible_for_player(), kh_KeyCarrier_waypointsprite_visible_for_player(), KillIndicator_Think(), LinkDoors(), M_Mage_Attack_Spike_Think(), minigame_CheckSend(), minigame_count_players(), minigame_player_entremove(), minigame_read_owner(), minigame_resend(), minigame_SendEntity(), Monster_Delay_Action(), nade_ammo_boom(), nade_darkness_boom(), nade_entrap_boom(), nade_heal_boom(), nade_ice_boom(), nade_napalm_ball(), nade_napalm_boom(), nade_timer_think(), nade_veil_boom(), nb_Goal_Customize(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), Net_Notification_Remove(), nmm_find_piece(), nmm_find_tile(), nmm_kill_tiles(), nmm_server_event(), nmm_tile_canmove(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Think(), ons_MonsterSpawn_Delayed(), ons_TurretSpawn_Delayed(), pathlib_deletepath(), pathlib_getbestopen(), physical_item_think(), PlayerScore_SendEntity(), pong_ai_think(), pp_find_piece(), pp_next_match(), pp_server_event(), ps_draw(), ps_find_piece(), ps_server_event(), ps_winning_piece(), race_waypointsprite_visible_for_player(), racer_exit(), racer_rocket_groundhugger(), racer_rocket_tracker(), raptor_bomb_burst(), raptor_bombdrop(), raptor_bomblet_touch(), raptor_exit(), SpawnEvent_Send(), spiderbot_exit(), spiderbot_guide_release(), spiderbot_rocket_do(), spiderbot_rocket_guided(), spiderbot_rocket_unguided(), StartItem(), SUB_CalcMove_controller_think(), target_objective_decrease_activate(), tka_ballcarrier_waypointsprite_visible_for_player(), tka_BallThink_Carried(), tka_TouchEvent(), trigger_gravity_check_think(), trigger_gravity_touch(), ttt_find_piece(), ttt_next_match(), ttt_server_event(), turret_flac_projectile_think_explode(), turret_hellion_missile_think(), turret_hk_missile_think(), turret_projectile_damage(), turret_projectile_explode(), vehicles_damage(), vehicles_locktarget(), vehicles_painframe(), vehicles_projectile_explode(), vehicles_regen(), vehicles_regen_resource(), vehicles_reset(), vehicles_spawn(), vehicles_think(), vehicles_touch(), W_Arc_Beam_Send(), W_Arc_Beam_Think(), W_Arc_Bolt_Touch(), W_Crylink_LinkJoinEffect_Think(), W_Crylink_Touch(), W_Electro_Bolt_Think(), W_Electro_Orb_ExplodeOverTime(), W_Electro_Orb_Stick(), W_Fireball_Firemine_Think(), W_GunAlign(), W_Hagar_Damage(), W_Hagar_Touch2(), W_MineLayer_Stick(), W_Nexball_Touch(), W_PrepareExplosionByDamage(), W_Seeker_Tag_Touch(), W_Tuba_NoteOff(), walker_rocket_damage(), walker_rocket_explode(), WarpZone_Projectile_Touch_ImpactFilter_Callback(), WarpZone_RefSys_GC(), WaypointSprite_SendEntity(), weapon_defaultspawnfunc(), wepent_customize(), wepent_think(), and XonoticGametypeList_saveCvars().

◆ ping

◆ ping_movementloss

float ping_movementloss

Definition at line 169 of file main.qh.

Referenced by PingPLReport_Think(), and PM_UpdateButtons().

◆ ping_packetloss

float ping_packetloss

Definition at line 169 of file main.qh.

Referenced by CommonCommand_who(), PingPLReport_Think(), and PM_UpdateButtons().

◆ players

◆ playerslots

◆ postinit

bool postinit

Definition at line 42 of file main.qh.

Referenced by CSQC_Init(), CSQC_UpdateView(), NET_HANDLE(), and PostInit().

◆ RANKINGS_DISPLAY_CNT

float RANKINGS_DISPLAY_CNT

Definition at line 80 of file main.qh.

Referenced by NET_HANDLE().

◆ RANKINGS_RECEIVED_CNT

float RANKINGS_RECEIVED_CNT

Definition at line 79 of file main.qh.

Referenced by HUD_Scoreboard_InputEvent(), Scoreboard_Draw(), and Scoreboard_Rankings_Draw().

◆ ready

bool ready

Definition at line 88 of file main.qh.

Referenced by bot_think(), CLIENT_COMMAND(), Nagger_SendEntity(), and PutObserverInServer().

◆ ready_waiting

bool ready_waiting

Definition at line 143 of file main.qh.

Referenced by HUD_InfoMessages(), NET_HANDLE(), and Scoreboard_GetName().

◆ ready_waiting_for_me

bool ready_waiting_for_me

Definition at line 144 of file main.qh.

Referenced by HUD_InfoMessages(), and NET_HANDLE().

◆ renderflags

◆ serverdeltatime

float serverdeltatime

Definition at line 207 of file main.qh.

Referenced by CSQC_Ent_Update().

◆ serverflags

◆ serverprevtime

float serverprevtime

Definition at line 207 of file main.qh.

Referenced by CSQC_Ent_Update(), InterpolateOrigin_Note(), and StartFrame().

◆ spectatee_status

◆ spectatee_status_changed_time

float spectatee_status_changed_time

Definition at line 198 of file main.qh.

Referenced by Draw_ShowNames(), NET_HANDLE(), and WantEventchase().

◆ spectatorbutton_zoom

bool spectatorbutton_zoom

Definition at line 114 of file main.qh.

Referenced by IsZooming(), and NET_HANDLE().

◆ spectatorlist

int spectatorlist[MAX_SPECTATORS]

Definition at line 178 of file main.qh.

Referenced by HUD_InfoMessages(), and NET_HANDLE().

◆ srv_maxplayers

int srv_maxplayers

Definition at line 126 of file main.qh.

Referenced by net_handle_ServerWelcome(), and Scoreboard_Draw().

◆ srv_minplayers

int srv_minplayers

Definition at line 125 of file main.qh.

Referenced by HUD_InfoMessages(), HUD_Timer(), and net_handle_ServerWelcome().

◆ sv_entnum

◆ team

int team

Definition at line 188 of file main.qh.

Referenced by _GameRules_scoring_add_float2int(), bot_setnameandstuff(), c4_winning_piece(), CheatsAllowed(), classfield(), ClientConnect(), ClientKill_TeamChange(), cpicon_changeteam(), cpicon_send(), ctf_DelayedFlagSetup(), ctf_FlagThink(), ctf_SpawnTeam(), DamageEffect_Think(), dompoint_captured(), dompointtouch(), Draw_WaypointSprite(), dropclient_schedule(), Ent_WaypointSprite(), Entity_GetTeamIndex(), Entity_HasValidTeam(), football_touch(), func_breakable_damage(), func_breakable_reset(), func_breakable_setup(), generator_changeteam(), generator_send(), GetTeam(), GoalTouch(), havocbot_ast_reset_role(), havocbot_goalrating_ons_controlpoints_attack(), havocbot_role_kh_carrier(), havocbot_role_kh_defense(), havocbot_role_kh_freelancer(), havocbot_role_kh_offense(), InitBall(), Item_CopyFields(), Item_FindTeam(), Item_Touch(), Join(), ka_RespawnBall(), kh_Key_Damage(), kh_Key_Think(), link_spawnpoint(), LinkDoors(), MatchEnd_RestoreSpectatorAndTeamStatus(), MatchEnd_RestoreSpectatorStatus(), minigame_SendEntity(), misc_laser_think(), monster_changeteam(), monster_setupcolors(), Monster_Spawn(), Monster_Spawn_Setup(), multi_eventdamage(), multi_reset(), multi_touch(), nade_darkness_boom(), nade_ice_boom(), nade_napalm_boom(), nades_PlayerColor(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), nexball_setstatus(), ons_CaptureShield_Reset(), ons_CaptureShield_Spawn(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Reset(), ons_GeneratorDamage(), ons_GeneratorReset(), ons_GeneratorThink(), PlayerFrame(), pong_ai_think(), pong_ball_think(), pong_paddle_think(), pp_valid_move(), pp_winning_piece(), PutPlayerInServer(), relocate_spawnpoint(), ResetBall(), SelectSpawnPoint(), setcolor(), Spawn_Draw(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), SpawnGoal(), SpawnPoint_Send(), spawnpoint_use(), StartItem(), sys_phys_fix(), tdm_SpawnTeam(), TeamScore_SendEntity(), Teleport_Active(), tka_RespawnBall(), tmayhem_SpawnTeam(), trigger_hurt_touch(), trigger_push_get_push_time(), trigger_push_send(), trigger_push_test(), trigger_push_touch(), trigger_push_use(), trigger_push_velocity_send(), trigger_push_velocity_touch(), trigger_relay_teamcheck_reset(), trigger_teleport_send(), trigger_teleport_use(), ttt_winning_piece(), turret_changeteam(), turret_draw2d(), turret_initialize(), turret_respawn(), turret_send(), turret_use(), vehicle_initialize(), vehicles_reset_colors(), vehicles_spawn(), WaypointSprite_SendEntity(), WaypointSprite_visible_for_player(), weapon_defaultspawnfunc(), WinningCondition_Assault(), WinningCondition_RanOutOfSpawns(), and WinningCondition_Scores().

◆ team_count

◆ team_size

int team_size

Definition at line 189 of file main.qh.

◆ teams

◆ teamslots

entity teamslots[17]

Definition at line 85 of file main.qh.

Referenced by GetTeam().

◆ tempdb

int tempdb

Definition at line 203 of file main.qh.

Referenced by CSQC_Init(), Shutdown(), and WaypointSprite_Load_Frames().

◆ ticrate

◆ vid_height

int vid_height

◆ vid_pixelheight

float vid_pixelheight

Definition at line 151 of file main.qh.

Referenced by CSQC_UpdateView(), GetCurrentFov(), and GetViewLocationFOV().

◆ vid_width

int vid_width

◆ view_forward

vector view_forward

◆ view_origin

◆ view_quality

float view_quality

Definition at line 174 of file main.qh.

Referenced by CSQC_UpdateView(), CSQCModel_LOD_Apply(), and Gib_Draw().

◆ view_right

vector view_right

Definition at line 109 of file main.qh.

Referenced by CSQC_UpdateView(), Draw_GrapplingHook(), and TrueAimCheck().

◆ view_up

vector view_up

Definition at line 109 of file main.qh.

Referenced by CSQC_UpdateView(), Draw_GrapplingHook(), Porto_Draw(), and TrueAimCheck().

◆ vote_called_vote

string vote_called_vote

Definition at line 142 of file main.qh.

Referenced by HUD_Vote(), and NET_HANDLE().

◆ vote_waiting

bool vote_waiting

Definition at line 145 of file main.qh.

Referenced by NET_HANDLE().

◆ vote_waiting_for_me

bool vote_waiting_for_me

Definition at line 146 of file main.qh.

Referenced by NET_HANDLE().

◆ warmup_stage

bool warmup_stage

Definition at line 120 of file main.qh.

Referenced by accuracy_canbegooddamage(), accuracy_isgooddamage(), Announcer_Gamestart(), Announcer_Time(), bot_think(), ca_LastPlayerForTeam_Notify(), CA_RoundStart(), CheckRules_World(), ClientCommand_ready(), ClientCommand_selectteam(), ClientCommand_spectate(), ClientDisconnect(), CommonCommand_timeout(), Draw_WaypointSprite(), GameCommand_allready(), GameplayMode_DelayedInit(), GiveFrags(), HUD_InfoMessages(), HUD_ItemsTime(), HUD_Pickup_Time(), HUD_Timer(), Item_ItemsTime_SetTimesForAllPlayers(), Join(), ka_ballcarrier_waypointsprite_visible_for_player(), ka_DropEvent(), ka_RespawnBall(), kh_Key_waypointsprite_visible_for_player(), kh_KeyCarrier_waypointsprite_visible_for_player(), lms_AddPlayer(), lms_RemovePlayer(), Local_Notification(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), Nagger_SendEntity(), NET_HANDLE(), NET_HANDLE(), Obituary(), ObserverOrSpectatorThink(), ons_GeneratorDamage(), PlayerScore_Add(), PlayerStats_GameReport(), PutObserverInServer(), PutPlayerInServer(), QueueNeeded(), race_Initialize(), readlevelcvars(), ReadyCount(), ReadyRestart(), ReadyRestart_force(), ReadyRestart_think(), Scoreboard_AccuracyStats_WouldDraw(), Scoreboard_ItemStats_WouldDraw(), SetPlayerTeam(), StartFrame(), surv_LastPlayerForTeam_Notify(), Surv_RoundStart(), timeout_handler_reset(), tka_ballcarrier_waypointsprite_visible_for_player(), tka_DropEvent(), tka_RespawnBall(), VoteCommand_parse(), WaypointSprite_visible_for_player(), and WinningCondition_LMS().

◆ welcome_msg

string welcome_msg

Definition at line 124 of file main.qh.

Referenced by net_handle_ServerWelcome(), and Welcome_Message_Show_Try().

◆ welcome_msg_menu_check_maxtime

float welcome_msg_menu_check_maxtime

Definition at line 127 of file main.qh.

Referenced by net_handle_ServerWelcome(), and Welcome_Message_Show_Try().

◆ zoomin_effect

float zoomin_effect

Definition at line 119 of file main.qh.

Referenced by GetCurrentFov(), and NET_HANDLE().