|
Xonotic
|
#include "main.qh"#include <client/command/cl_cmd.qh>#include <client/draw.qh>#include <client/hud/_mod.qh>#include <client/hud/panel/centerprint.qh>#include <client/hud/panel/chat.qh>#include <client/hud/panel/quickmenu.qh>#include <client/hud/panel/scoreboard.qh>#include <client/items/items.qh>#include <client/mapvoting.qh>#include <client/mutators/_mod.qh>#include <client/shownames.qh>#include <client/view.qh>#include <client/weapons/projectile.qh>#include <common/deathtypes/all.qh>#include <common/effects/all.inc>#include <common/effects/all.qh>#include <common/effects/effect.qh>#include <common/effects/qc/_mod.qh>#include <common/ent_cs.qh>#include <common/gamemodes/gamemode/nexball/cl_nexball.qh>#include <common/items/_mod.qh>#include <common/mapinfo.qh>#include <common/mapobjects/_mod.qh>#include <common/minigames/cl_minigames.qh>#include <common/minigames/cl_minigames_hud.qh>#include <common/net_linked.qh>#include <common/net_notice.qh>#include <common/scores.qh>#include <common/vehicles/all.qh>#include <lib/csqcmodel/cl_model.qh>#include <lib/csqcmodel/interpolate.qh>#include <lib/warpzone/client.qh>
Include dependency graph for main.qc:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | DP_CSQC_ENTITY_REMOVE_IS_B0RKED |
Variables | |
| string | forcefog |
| float | has_team |
Definition at line 1289 of file main.qc.
References argv(), autocvar_hud_showbinds, autocvar_hud_showbinds_limit, binddb, cmd_name, cvar(), db_get(), db_put(), keynumtostring(), stof(), strcat(), substring(), tokenize(), and translate_key().
Here is the call graph for this function:| void AuditLists | ( | ) |
Definition at line 196 of file main.qc.
References entity(), error(), players, prev, strcat(), and teams.
Referenced by MoveToLast(), RegisterPlayer(), RegisterTeam(), RemovePlayer(), and RemoveTeam().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 943 of file main.qc.
References autocvar_developer_csqcentities, Ent_Remove(), entnum, enttype, LOG_INFOF, and LOG_WARN.
Here is the call graph for this function:Definition at line 861 of file main.qc.
References classname, clearentity(), Ent_Remove(), entnum, enttype, etof(), FOREACH, LOG_FATALF, LOG_INFOF, ONREMOVE(), serverdeltatime, serverprevtime, servertime, sourceLoc, STR, and time.
Here is the call graph for this function:| void CSQC_Init | ( | ) |
Definition at line 45 of file main.qc.
References autocvar_cl_lockview, autocvar_cl_reticle, autocvar_hud_skin, binddb, calledhooks, ClientProgsDB, ConsoleCommand_macro_init(), cvar_set(), cvar_string(), db_create(), db_load(), draw_endBoldFont, gametype, GetTeam(), hud_skin_path, LoadMenuSkinValues(), LOG_TRACEF, maxclients, mi_center, mi_scale, minimapname, NULL, NUM_SPECTATOR, players, postinit, precache_pic(), prvm_language, registercvar(), shortmapname, Sort_Spawn(), static_init, static_init_late, static_init_precache, strcat(), strzone(), teams, tempdb, weapon_accuracy, WEP_FIRST, and WEP_LAST.
Here is the call graph for this function:Definition at line 452 of file main.qc.
References HUD_Minigame_InputEvent(), HUD_Panel_Chat_InputEvent(), HUD_Panel_InputEvent(), HUD_Radar_InputEvent(), MapVote_InputEvent(), QuickMenu_InputEvent(), and TC.
Here is the call graph for this function:Definition at line 978 of file main.qc.
References autocvar_developer_csqcentities, centerprint_AddStandard(), and LOG_INFOF.
Here is the call graph for this function:Definition at line 971 of file main.qc.
References autocvar_developer_csqcentities, ColorTranslateRGB(), LOG_INFOF, and print().
Here is the call graph for this function:Definition at line 965 of file main.qc.
References autocvar_developer_csqcentities, localcmd, and LOG_INFOF.
| bool CSQC_Parse_TempEntity | ( | ) |
Definition at line 987 of file main.qc.
References autocvar_developer_csqcentities, FOREACH, and LOG_INFOF.
Definition at line 920 of file main.qc.
References autocvar_cl_jetpack_attenuation, classname, enttype, func_null(), skeletonindex, snd_looping, sound, and VOL_BASE.
Referenced by CSQC_Ent_Remove(), CSQC_Ent_Update(), and NET_HANDLE().
Here is the call graph for this function:
Here is the caller graph for this function:| void Fog_Force | ( | ) |
Definition at line 1006 of file main.qc.
References autocvar_cl_orthoview, autocvar_cl_orthoview_nofog, forcefog, and localcmd.
Referenced by CSQC_UpdateView().
Here is the caller graph for this function:| void Gamemode_Init | ( | ) |
Definition at line 955 of file main.qc.
References calledhooks, gametype, HOOK_START, isdemo(), localcmd, and MapInfo_Type_ToString().
Referenced by NET_HANDLE().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1076 of file main.qc.
References strcat().
Referenced by HUD_Physics(), and HUD_StrafeHUD().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1063 of file main.qc.
Referenced by HUD_Physics(), and HUD_StrafeHUD().
Here is the caller graph for this function:Definition at line 303 of file main.qc.
References entity(), new_pure, NULL, NUM_SPECTATOR, RegisterTeam(), TC, team, and teamslots.
Referenced by CSQC_Init(), NET_HANDLE(), and SetTeam().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 251 of file main.qc.
References AuditLists(), entity(), and SORT_SWAP.
Here is the call graph for this function:| NET_HANDLE | ( | ENT_CLIENT_SCORES | , |
| bool | isnew | ||
| ) |
Definition at line 494 of file main.qc.
References classname, Ent_Remove(), Ent_RemovePlayerScore(), entity(), etof(), FOREACH, LOG_INFOF, make_pure, new_pure, owner, playerslots, Scoreboard_UpdatePlayerPos(), and sv_entnum.
Here is the call graph for this function:| NET_HANDLE | ( | ENT_CLIENT_TEAMSCORES | , |
| bool | isnew | ||
| ) |
Definition at line 550 of file main.qc.
References BIT, entity(), GetTeam(), make_pure, MAX_TEAMSCORE, owner, Scoreboard_UpdateTeamPos(), and team.
Here is the call graph for this function:| NET_HANDLE | ( | ENT_CLIENT_CLIENTDATA | , |
| bool | isnew | ||
| ) |
Definition at line 579 of file main.qc.
References autocvar_hud_panel_healtharmor_progressbar_gfx, BIT, hud_dynamic_shake_factor, make_pure, MAX_SPECTATORS, min(), num_spectators, player_localnum, prev_health, prev_p_health, race_checkpointtime, race_laptime, scoreboard_showscores_force, spectatee_status, spectatee_status_changed_time, spectatorbutton_zoom, spectatorlist, and time.
Here is the call graph for this function:| NET_HANDLE | ( | ENT_CLIENT_NAGGER | , |
| bool | isnew | ||
| ) |
Definition at line 646 of file main.qc.
References BIT, make_pure, maxclients, playerslots, ReadString, ready_waiting, ready_waiting_for_me, strcpy, strfree, vote_active, vote_called_vote, vote_highlighted, vote_needed, vote_nocount, vote_waiting, vote_waiting_for_me, vote_yescount, and warmup_stage.
| NET_HANDLE | ( | ENT_CLIENT_ELIMINATEDPLAYERS | , |
| bool | isnew | ||
| ) |
Definition at line 700 of file main.qc.
References BIT, make_pure, maxclients, playerslots, and serialize.
| NET_HANDLE | ( | ENT_CLIENT_RANDOMSEED | , |
| bool | isnew | ||
| ) |
Definition at line 726 of file main.qc.
References make_pure, prandom_debug, and psrandom().
Here is the call graph for this function:| NET_HANDLE | ( | ENT_CLIENT_ACCURACY | , |
| bool | isnew | ||
| ) |
| NET_HANDLE | ( | ENT_CLIENT_SPAWNPOINT | , |
| bool | is_new | ||
| ) |
Definition at line 774 of file main.qc.
References g_drawables, IL_PUSH(), origin, Spawn_Draw(), team, and vector().
Here is the call graph for this function:| NET_HANDLE | ( | ENT_CLIENT_SPAWNEVENT | , |
| bool | is_new | ||
| ) |
Definition at line 806 of file main.qc.
References ATTEN_NORM, autocvar_cl_lockview, autocvar_cl_spawn_event_particles, autocvar_cl_spawn_event_sound, autocvar_cl_spawnzoom, autocvar_cl_spawnzoom_factor, autocvar_cl_unpress_zoom_on_spawn, bound(), button_zoom, CH_TRIGGER, current_viewzoom, entnum, HUD_Radar_Hide_Maximized(), localcmd, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, origin, player_localentnum, pointparticles, sound, VOL_BASE, and zoomin_effect.
Here is the call graph for this function:| NET_HANDLE | ( | ENT_CLIENT_SCORES_INFO | , |
| bool | isnew | ||
| ) |
Definition at line 1014 of file main.qc.
References _MapInfo_GetTeamPlayBool(), FOREACH, Gamemode_Init(), gametype, HUD_ModIcons_SetFunc(), make_pure, MAX_TEAMSCORE, ReadRegistered, ReadString, Scoreboard_InitScores(), scores_flags, scores_label, strcpy, teamplay, teamscores_flags, and teamscores_label.
Here is the call graph for this function:| NET_HANDLE | ( | ENT_CLIENT_INIT | , |
| bool | isnew | ||
| ) |
Definition at line 1034 of file main.qc.
References armorblockpercent, damagepush_speedfactor, decompressShotOrigin(), forcefog, g_trueaim_minrange, hook_shotorigin, MUTATOR_CALLHOOK, nb_pb_period, postinit, PostInit(), ReadString, serverflags, and strcpy.
Here is the call graph for this function:| NET_HANDLE | ( | TE_CSQC_RACE | , |
| bool | isNew | ||
| ) |
Definition at line 1090 of file main.qc.
References autocvar_cl_race_cptimes_onlyself, race_checkpoint, race_checkpointtime, race_laptime, race_mybesttime, race_mycheckpoint, race_mycheckpointdelta, race_mycheckpointenemy, race_mycheckpointlapsdelta, race_mycheckpointtime, race_mypreviousbesttime, RACE_NET_CHECKPOINT_CLEAR, RACE_NET_CHECKPOINT_HIT_QUALIFYING, RACE_NET_CHECKPOINT_HIT_RACE, RACE_NET_CHECKPOINT_HIT_RACE_BY_OPPONENT, RACE_NET_CHECKPOINT_NEXT_QUALIFYING, RACE_NET_CHECKPOINT_NEXT_SPEC_QUALIFYING, RACE_NET_PENALTY_QUALIFYING, RACE_NET_PENALTY_RACE, race_nextbestname, race_nextbesttime, race_nextcheckpoint, race_othercheckpoint, race_othercheckpointdelta, race_othercheckpointenemy, race_othercheckpointlapsdelta, race_othercheckpointtime, race_penaltyaccumulator, race_penaltyeventtime, race_penaltytime, race_previousbestname, race_previousbesttime, race_time, ReadString, strcpy, and time.
| NET_HANDLE | ( | TE_CSQC_TEAMNAGGER | , |
| bool | isNew | ||
| ) |
| NET_HANDLE | ( | TE_CSQC_PINGPLREPORT | , |
| bool | isNew | ||
| ) |
Definition at line 1257 of file main.qc.
References entity(), and playerslots.
Here is the call graph for this function:| NET_HANDLE | ( | TE_CSQC_WEAPONCOMPLAIN | , |
| bool | isNew | ||
| ) |
Definition at line 1271 of file main.qc.
References complain_weapon, complain_weapon_time, complain_weapon_type, Local_Notification(), REGISTRY_GET, time, and weapontime.
Here is the call graph for this function:Definition at line 392 of file main.qc.
References entity(), maxclients, new_pure, nextthink, NULL, playerslots, RegisterPlayer(), RemovePlayer(), Scoreboard_UpdatePlayerPos(), SetTeam(), and time.
Referenced by PostInit().
Here is the call graph for this function:
Here is the caller graph for this function:| void PostInit | ( | ) |
Definition at line 434 of file main.qc.
References entity(), new_pure, Playerchecker_Think(), postinit, setthink, time, and TrueAim_Init().
Referenced by CSQC_UpdateView(), and NET_HANDLE().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 216 of file main.qc.
References AuditLists(), entity(), error(), and players.
Referenced by Playerchecker_Think().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 263 of file main.qc.
References assert_once, AuditLists(), entity(), eprint(), error(), NUM_SPECTATOR, team_count, and teams.
Referenced by GetTeam().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 232 of file main.qc.
References AuditLists(), entity(), error(), parent, and players.
Referenced by Playerchecker_Think().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 319 of file main.qc.
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().
Here is the call graph for this function:
Here is the caller graph for this function:| void Shutdown | ( | ) |
Definition at line 152 of file main.qc.
Definition at line 761 of file main.qc.
References autocvar_cl_spawn_point_dist_max, autocvar_cl_spawn_point_particles, bound(), EFFECT_SPAWNPOINT(), frametime, origin, pointparticles, team, teamplay, vdist, vector(), and VF_ORIGIN.
Referenced by NET_HANDLE().
Here is the call graph for this function:
Here is the caller graph for this function:engine callback
Definition at line 1342 of file main.qc.
References Curl_URI_Get_Callback(), LOG_INFOF, TC, URI_GET_CURL, URI_GET_CURL_END, URI_GET_DISCARD, and url_URI_Get_Callback().
Here is the call graph for this function:| string forcefog |
Definition at line 1005 of file main.qc.
Referenced by Fog_Force(), and NET_HANDLE().