|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "client.qh"#include <common/csqcmodel_settings.qh>#include <common/deathtypes/all.qh>#include <common/debug.qh>#include <common/effects/all.qh>#include <common/effects/qc/globalsound.qh>#include <common/ent_cs.qh>#include <common/gametypes/_mod.qh>#include <common/gametypes/gametype/nexball/sv_nexball.qh>#include <common/items/_mod.qh>#include <common/items/inventory.qh>#include <common/mapobjects/func/conveyor.qh>#include <common/mapobjects/func/ladder.qh>#include <common/mapobjects/subs.qh>#include <common/mapobjects/target/spawnpoint.qh>#include <common/mapobjects/teleporters.qh>#include <common/mapobjects/trigger/counter.qh>#include <common/mapobjects/trigger/secret.qh>#include <common/mapobjects/trigger/swamp.qh>#include <common/mapobjects/triggers.qh>#include <common/minigames/sv_minigames.qh>#include <common/monsters/sv_monsters.qh>#include <common/mutators/mutator/instagib/sv_instagib.qh>#include <common/mutators/mutator/nades/_mod.qh>#include <common/mutators/mutator/overkill/oknex.qh>#include <common/mutators/mutator/status_effects/_mod.qh>#include <common/mutators/mutator/waypoints/all.qh>#include <common/net_linked.qh>#include <common/net_notice.qh>#include <common/notifications/all.qh>#include <common/physics/player.qh>#include <common/playerstats.qh>#include <common/resources/sv_resources.qh>#include <common/state.qh>#include <common/stats.qh>#include <common/vehicles/all.qh>#include <common/vehicles/sv_vehicles.qh>#include <common/viewloc.qh>#include <common/weapons/_all.qh>#include <common/weapons/weapon/vortex.qh>#include <common/wepent.qh>#include <lib/csqcmodel/sv_model.qh>#include <lib/warpzone/common.qh>#include <lib/warpzone/server.qh>#include <server/anticheat.qh>#include <server/antilag.qh>#include <server/bot/api.qh>#include <server/bot/default/cvars.qh>#include <server/bot/default/waypoints.qh>#include <server/campaign.qh>#include <server/chat.qh>#include <server/cheats.qh>#include <server/clientkill.qh>#include <server/command/banning.qh>#include <server/command/cmd.qh>#include <server/command/common.qh>#include <server/command/vote.qh>#include <server/compat/quake3.qh>#include <server/damage.qh>#include <server/gamelog.qh>#include <server/handicap.qh>#include <server/hook.qh>#include <server/impulse.qh>#include <server/intermission.qh>#include <server/ipban.qh>#include <server/main.qh>#include <server/mutators/_mod.qh>#include <server/player.qh>#include <server/portals.qh>#include <server/race.qh>#include <server/scores.qh>#include <server/scores_rules.qh>#include <server/spawnpoints.qh>#include <server/teamplay.qh>#include <server/weapons/accuracy.qh>#include <server/weapons/common.qh>#include <server/weapons/hitplot.qh>#include <server/weapons/selection.qh>#include <server/weapons/tracing.qh>#include <server/weapons/weaponsystem.qh>#include <server/world.qh>Go to the source code of this file.
Definition at line 1636 of file client.qc.
References min().
Referenced by RotRegen().
Definition at line 1646 of file client.qc.
References max().
Referenced by RotRegen().
Definition at line 1398 of file client.qc.
References autocvar_g_forced_respawn, ceil(), entity(), FOREACH_CLIENT, GAMETYPE_DEFAULTED_SETTING, IS_INDEPENDENT_PLAYER, IS_PLAYER, MUTATOR_CALLHOOK, respawn_countdown, respawn_flags, RESPAWN_FORCE, respawn_time, respawn_time_max, teamplay, and time.
Referenced by PlayerDamage().
Definition at line 1349 of file client.qc.
References active_minigame, CS(), entity(), IS_DEAD, IS_PLAYER, mdl, model, MUTATOR_CALLHOOK, nextthink, NULL, owner, PHYS_INPUT_BUTTON_CHAT, PHYS_INPUT_BUTTON_MINIGAME, and time.
Referenced by UpdateChatBubble().
Definition at line 208 of file client.qc.
References autocvar_sv_servermodelsonly, cvar_defstring(), FallbackPlayerModel, fexists(), strtolower(), strzone(), and substring().
Referenced by FixPlayermodel().
ClientConnect
Called when a client connects to the server
Definition at line 1146 of file client.qc.
References assert, autocvar_g_chatban_list, autocvar_g_playban_list, autocvar_sv_autopause, autocvar_sv_dedicated, autocvar_sv_eventlog, autocvar_sv_quickmenu_file, autocvar_sv_timeout_number, autocvar_sv_vote_master_ids, Ban_MaybeEnforceBanOnce(), bot_clientconnect(), bot_relinkplayerlist(), clientcolors, ClientConnect, clientstuff, crypto_idfp, crypto_idfp_signed, CS(), CSQCMODEL_AUTOINIT, entity(), etof, fexists(), FixClientCvars(), FL_CLIENT, flags, ftos(), g_initforplayer, g_weaponarena_weapons, GameLog_ProcessIP(), GameLogEcho(), get_nextmap, Handicap_Initialize(), ignore_list_update_on_connection(), IL_EACH, IS_BOT_CLIENT, IS_CLIENT, IS_REAL_CLIENT, localcmd(), move_qcphysics, MUTATOR_CALLHOOK, netaddress, netname, NULL, Physics_UpdateStats(), player_count, playerid, PlayerInList(), playername(), PlayerStats_GameReport_AddEvent(), PlayerStats_GameReport_AddPlayer(), random(), Send_NextMap_To_Player(), Send_Notification(), strcat(), strstrofs, stuffcmd, sv_notice_join(), team, TeamBalance_CheckAllowedTeams(), TeamBalance_Destroy(), TeamBalance_GetAllowedTeams(), teamplay, time, TRANSMUTE, vote_master, wants_join, waypointeditor_enabled, and WEPSET.
Definition at line 172 of file client.qc.
References clientdata, ClientData_Send(), CS(), entity(), Net_LinkEntity(), and new_pure.
Referenced by ClientState_attach().
Definition at line 128 of file client.qc.
References assert, autocvar_bot_vs_human, autocvar_sv_showspectators, autocvar_sv_teamnagger, AVAILABLE_TEAMS, BIT, CountSpectators(), CS(), entity(), IGNORE_LIST_SEND_NOW, INGAME, IS_SPEC, MSG_ENTITY, observe_blocked_if_eliminated, owner, race_completed, spectatee_status, strcat(), teamplay, WriteByte(), WriteHeader, WriteSpectators(), WriteString(), and zoomstate.
Referenced by ClientData_Attach().
Definition at line 185 of file client.qc.
References CS(), entity(), FOREACH_CLIENT, IS_REAL_CLIENT, and IS_SPEC.
Referenced by ignore_list_send(), race_AbandonRaceCheck(), race_SendTime(), ReadyRestart_force(), SetSpectatee(), SetSpectatee_status(), SetZoomState(), and SpectateSet().
Definition at line 1277 of file client.qc.
References active_minigame, assert, autocvar_g_balance_teams_remove, autocvar_sv_eventlog, bot_relinkplayerlist(), chatbubbleentity, ClientDisconnect, ClientState_detach(), clientstatus, CS(), CS_CVAR, entity(), FL_CLIENT, flags, FOREACH_CLIENT, ftos(), g_counters, game_starttime, GameLogEcho(), ignore_list, ignore_remove_player(), IL_EACH, intermission_running, IS_CLIENT, IS_PLAYER, IS_REAL_CLIENT, IS_SPEC, killindicator, localcmd(), MUTATOR_CALLHOOK, netname, NULL, ONREMOVE(), origin, part_minigame(), personal, player_count, player_powerups_remove_all(), playerid, PlayerStats_GameReport_FinalizePlayer(), Portal_ClearAll(), ReadyCount(), RemoveGrapplingHooks(), Send_Effect(), Send_Notification(), SetSpectatee(), shootfromfixedorigin, strcat(), strfree, TeamBalance_QueuedPlayersTagIn(), TeamBalance_RemoveExcessPlayers(), time, vehicle, vehicles_exit(), VHEF_RELEASE, vote_called, VoteCount(), warmup_stage, WaypointSprite_PlayerGone(), and weaponorder_byimpulse.
| ClientDisconnect | ( | this | ) |
Definition at line 932 of file client.qc.
References autocvar_g_balance_armor_blockpercent, autocvar_g_balance_damagepush_speedfactor, cnt, count, entity(), nextthink, SendFlags, and time.
Referenced by ClientInit_Spawn().
Definition at line 909 of file client.qc.
References arc_shotorigin, autocvar_g_trueaim_minrange, autocvar_sv_foginterval, cnt, compressShotOrigin(), count, entity(), g_nexball_meter_period, hook_shotorigin, MSG_ONE, serverflags, world, WriteByte(), WriteCoord(), WriteHeader, and WriteString().
Referenced by ClientInit_SendEntity().
Definition at line 897 of file client.qc.
References ClientInit_misc(), entity(), MSG_ENTITY, msg_entity, MSG_ONE, MUTATOR_CALLHOOK, Registry_send_all(), W_PROP_reload(), and WriteHeader.
Referenced by ClientInit_Spawn().
| void ClientInit_Spawn | ( | ) |
Definition at line 947 of file client.qc.
References ClientInit_CheckUpdate(), ClientInit_SendEntity(), entity(), Net_LinkEntity(), new_pure, and setthink.
Referenced by spawnfunc().
Definition at line 100 of file client.qc.
References entity(), FOREACH_CLIENT, IS_REAL_CLIENT, and IS_SPEC.
Referenced by ClientData_Send().
Definition at line 987 of file client.qc.
References autocvar_sv_maxidle, CS(), DecodeLevelParms(), entity(), max(), MUTATOR_CALLHOOK, parm1, and time.
Referenced by ClientState_attach(), DecodeLevelParms(), and MUTATOR_HOOKABLE().
Definition at line 2772 of file client.qc.
References autocvar_g_balance_contents_damagerate, autocvar_g_balance_contents_drowndelay, autocvar_g_balance_contents_playerdamage_drowning, CH_PLAYER, CONTENT_WATER, Damage(), DMG_NOWEP, entity(), game_starttime, game_stopped, IS_DEAD, NULL, pain_finished, PlayerSound, STAT, time, vehicle, VOICETYPE_PLAYERSOUND, VOL_BASE, waterlevel, WATERLEVEL_SUBMERGED, and watertype.
Referenced by PlayerPostThink().
Definition at line 1016 of file client.qc.
References FOREACH_WORD, strlen, and substring().
Referenced by PlayerInIDList(), and PlayerInIPList().
Definition at line 1000 of file client.qc.
References autocvar_g_antilag, autocvar_g_shootfromfixedorigin, autocvar_sv_jumpspeedcap_max, autocvar_sv_jumpspeedcap_min, entity(), FixClientCvars(), MUTATOR_CALLHOOK, and stuffcmd.
Referenced by ClientConnect(), FixClientCvars(), MapVote_Finished(), MUTATOR_HOOKABLE(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 454 of file client.qc.
References argv(), autocvar_g_debug_globalsounds, autocvar_sv_defaultcharacter, autocvar_sv_defaultcharacterskin, autocvar_sv_defaultplayercolors, autocvar_sv_defaultplayermodel, autocvar_sv_defaultplayermodel_blue, autocvar_sv_defaultplayermodel_pink, autocvar_sv_defaultplayermodel_red, autocvar_sv_defaultplayermodel_yellow, autocvar_sv_defaultplayerskin, autocvar_sv_defaultplayerskin_blue, autocvar_sv_defaultplayerskin_pink, autocvar_sv_defaultplayerskin_red, autocvar_sv_defaultplayerskin_yellow, CheckPlayerModel(), CS(), entity(), FixPlayermodel(), floor(), M_ARGV, model_randomizer, MUTATOR_CALLHOOK, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, oldskin, player_getspecies(), setcolor, setplayermodel(), stof(), strcat(), strlen, strstrofs, substring(), teamplay, tokenize_console, UpdatePlayerSounds(), and vector.
Referenced by FixPlayermodel(), MUTATOR_HOOKABLE(), PlayerThink(), PutObserverInServer(), and PutPlayerInServer().
| int GetPlayerLimit | ( | ) |
Definition at line 2154 of file client.qc.
References autocvar_g_maxplayers, bound(), g_duel, GetPlayerLimit(), intermission_running, M_ARGV, map_maxplayers, maxclients, and MUTATOR_CALLHOOK.
Referenced by bot_fixcount(), GameplayMode_DelayedInit(), GetPlayerLimit(), MapHasRightSize(), MUTATOR_HOOKABLE(), MUTATOR_HOOKFUNCTION(), nJoinAllowed(), and SendWelcomeMessage().
Definition at line 1766 of file client.qc.
References BITSET, CS(), entity(), game_stopped, GetPressedKeys(), IS_DUCKED, KEY_ATCK, KEY_ATCK2, KEY_BACKWARD, KEY_CROUCH, KEY_FORWARD, KEY_JUMP, KEY_LEFT, KEY_RIGHT, movement, MUTATOR_CALLHOOK, PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, PHYS_INPUT_BUTTON_JUMP, and STAT.
Referenced by GetPressedKeys(), MUTATOR_HOOKABLE(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and PlayerPostThink().
Definition at line 568 of file client.qc.
References entity(), RES_ARMOR, SetResource(), STAT, warmup_start_ammo_cells, warmup_start_ammo_fuel, warmup_start_ammo_nails, warmup_start_ammo_rockets, warmup_start_ammo_shells, warmup_start_armorvalue, warmup_start_health, and WARMUP_START_WEAPONS.
Referenced by PutPlayerInServer(), and ReadyCount().
it's assumed this isn't called for bots (campaign_bots_may_start, centreprints)
Definition at line 2073 of file client.qc.
References autocvar_g_campaign, AVAILABLE_TEAMS, campaign_bots_may_start, entity(), FOREACH_CLIENT, game_starttime, game_stopped, Join(), NULL, ReadyRestart(), SetPlayerTeam(), TEAM_CHANGE_AUTO, TeamBalance_AreEqual(), TeamBalance_CheckAllowedTeams(), TeamBalance_Destroy(), TeamBalance_FindBestTeam(), and time.
Referenced by ClientCommand_join(), Join(), ObserverOrSpectatorThink(), PlayerPreThink(), ReadyRestart_force(), and TeamBalance_QueuedPlayersTagIn().
Definition at line 2263 of file client.qc.
References APP_TEAM_NUM, autocvar_g_maxping, autocvar_g_playban_list, AVAILABLE_TEAMS, CS(), entity(), INGAME, IS_PLAYER, jointime, lockteams, MIN_SPEC_TIME, nJoinAllowed(), ping, Player_GetForcedTeamIndex(), PlayerInList(), QueueNeeded(), queuePlayer(), Send_Notification(), ShowTeamSelection(), TEAM_FORCE_DEFAULT, Team_IndexToTeam(), teamplay, time, and wants_join.
Referenced by ClientCommand_join(), ObserverOrSpectatorThink(), and PlayerPreThink().
| NET_HANDLE | ( | fpsreport | , |
| bool | ) |
Definition at line 3146 of file client.qc.
References PlayerScore_Set().
Determines how many player slots are free.
This depends on cvar g_maxplayers and other limits that apply to all clients which aren't specifically excepted.
Definition at line 2176 of file client.qc.
References autocvar_g_forced_team_otherwise, bots_would_leave, entity(), FOREACH_CLIENT, GetPlayerLimit(), INGAME, IS_PLAYER, lockteams, max(), maxclients, min(), Send_Notification(), and teamplay.
Referenced by joinAllowed(), and WinningConditionHelper().
Definition at line 2510 of file client.qc.
References autocvar_sv_show_entnum, autocvar_sv_spectate, CS(), CS_CVAR, entity(), FL_CLIENT, FL_JUMPRELEASED, FL_NOTARGET, FL_SPAWNING, flags, frametime, impulse, INGAME, IS_BOT_CLIENT, IS_SPEC, Join(), joinAllowed(), jointime, m_weapon, MIN_SPEC_TIME, MinigameImpulse(), MOVETYPE_FLY_WORLDONLY, MOVETYPE_NOCLIP, observe_blocked_if_eliminated, PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, PHYS_INPUT_BUTTON_JUMP, PHYS_INPUT_BUTTON_USE, PutClientInServer, PutObserverInServer(), Send_Notification(), set_movetype(), show_entnum(), SpectateNext(), SpectatePrev(), SpectateUpdate(), STAT, teamplay, time, TRANSMUTE, vote_master, W_NextWeapon(), wants_join, warmup_stage, weaponentities, and would_spectate.
Referenced by PlayerPreThink().
Definition at line 1531 of file client.qc.
References ATTEN_NORM, CH_INFO, entity(), floor(), frametime, IS_REAL_CLIENT, sound, TC, time, and VOL_BASE.
Referenced by player_powerups().
Definition at line 444 of file client.qc.
References entity(), get_model_parameters(), get_model_parameters_species, model, skin, SPECIES_HUMAN, and string_null.
Referenced by FixPlayermodel().
Definition at line 2805 of file client.qc.
References CS(), entity(), frametime, move_movetype, move_qcphysics, movetype, Movetype_Physics_NoMatchTicrate(), and MOVETYPE_QCPLAYER.
Referenced by PlayerPostThink().
Definition at line 1556 of file client.qc.
References alpha, autocvar_g_fullbrightplayers, autocvar_g_nodepthtestplayers, EF_FULLBRIGHT, EF_NODEPTHTEST, effects, entity(), g_cts, game_stopped, IS_DEAD, IT_SUPERWEAPON, IT_UNLIMITED_SUPERWEAPONS, IT_USING_JETPACK, items, MF_ROCKET, modelflags, MUTATOR_CALLHOOK, MUTATOR_IS_ENABLED, netname, NULL, play_countdown(), player_powerups_remove_all(), Send_Notification(), STAT, STATUSEFFECT_REMOVE_CLEAR, STATUSEFFECT_REMOVE_NORMAL, STATUSEFFECT_REMOVE_TIMEOUT, StatusEffects_active(), StatusEffects_gettime(), StatusEffects_remove(), time, vehicle, and WEPSET_SUPERWEAPONS.
Referenced by PlayerThink().
Definition at line 1540 of file client.qc.
References ATTEN_NORM, CH_INFO, CH_TRIGGER_SINGLE, entity(), game_starttime, IS_CLIENT, IT_SUPERWEAPON, IT_UNLIMITED_AMMO, IT_UNLIMITED_SUPERWEAPONS, items, sound, start_items, stopsound(), time, and VOL_BASE.
Referenced by ClientDisconnect(), player_powerups(), PutObserverInServer(), and reset_map().
Definition at line 1687 of file client.qc.
References autocvar_g_balance_armor_regen, autocvar_g_balance_armor_regenlinear, autocvar_g_balance_armor_regenstable, autocvar_g_balance_armor_rot, autocvar_g_balance_armor_rotlinear, autocvar_g_balance_armor_rotstable, autocvar_g_balance_fuel_regen, autocvar_g_balance_fuel_regenlinear, autocvar_g_balance_fuel_regenstable, autocvar_g_balance_fuel_rot, autocvar_g_balance_fuel_rotlinear, autocvar_g_balance_fuel_rotstable, autocvar_g_balance_health_regen, autocvar_g_balance_health_regenlinear, autocvar_g_balance_health_regenstable, autocvar_g_balance_health_rot, autocvar_g_balance_health_rotlinear, autocvar_g_balance_health_rotstable, DMG_NOWEP, entity(), frametime, GetResource(), IT_UNLIMITED_AMMO, items, M_ARGV, MUTATOR_CALLHOOK, pauseregen_finished, pauserotarmor_finished, pauserotfuel_finished, pauserothealth_finished, RES_ARMOR, RotRegen(), time, vehicle, vehicles_exit(), and VHEF_RELEASE.
Referenced by PlayerThink().
Definition at line 2863 of file client.qc.
References alivetime_start, anticheat_prethink(), autocvar_g_balance_armor_blockpercent, autocvar_g_balance_teams_remove, autocvar_g_maxplayers_spectator_blocktime, autocvar_g_vehicles_enter_radius, autocvar_g_xonoticversion, autocvar_sv_dedicated, autocvar_sv_eventlog, autocvar_sv_maxidle, autocvar_sv_maxidle_alsokickspectators, autocvar_sv_maxidle_minplayers, autocvar_sv_maxidle_playertospectator, autocvar_sv_maxidle_slots, autocvar_sv_maxidle_slots_countbots, autocvar_sv_name_maxlength, autocvar_sv_spectate, ceil(), CheatFrame(), CPID_IDLING, CS(), CS_CVAR, DAMAGE_NO, dropclient_schedule(), entity(), FL_GODMODE, flags, FOREACH_CLIENT, frametime, ftos(), game_stopped, GameLogEcho(), GameRules_scoring_add, GetResource(), handicap_avg_given_sum, handicap_avg_taken_sum, Handicap_GetTotalHandicap(), healtharmor_maxdamage(), ignore_list_send(), ignore_list_send_time, INGAME, intermission_running, IS_DEAD, IS_INDEPENDENT_PLAYER, IS_OBSERVER, IS_PLAYER, IS_REAL_CLIENT, IS_SPEC, isInvisibleString(), Kill_Notification(), last_vehiclecheck, max(), max_armorvalue, maxclients, min(), MIN_SPEC_TIME, MOVE_NOTHING, MOVETYPE_NONE, netname, NULL, origin, Physics_UpdateStats(), play2(), playerid, playername(), PutObserverInServer(), RES_ARMOR, SAME_TEAM, score_frame_dmg, score_frame_dmgtaken, Send_Notification(), set_movetype(), SND, solid, SOLID_NOT, sprint(), STAT, StatusEffects_active(), strcat(), strcpy, strstrofs, strzone(), substring(), takedamage, team, team_selected, TeamBalance_QueuedPlayersTagIn(), TeamBalance_RemoveExcessPlayers(), textLengthUpToLength(), time, vehicle, Vehicle_Enter_cond(), vercmp(), VHF_MULTISLOT, wants_join, WarpZone_SearchInRadius(), waypointsprite_attachedforcarrier, and WaypointSprite_UpdateHealth().
Referenced by StartFrame().
Definition at line 1039 of file client.qc.
References entity(), and findinlist_abbrev().
Referenced by BanCommand_mute(), BanCommand_playban(), BanCommand_voteban(), MUTATOR_HOOKFUNCTION(), and PlayerInList().
Definition at line 1030 of file client.qc.
References entity(), findinlist_abbrev(), and IS_REAL_CLIENT.
Referenced by BanCommand_mute(), BanCommand_playban(), BanCommand_voteban(), MUTATOR_HOOKFUNCTION(), and PlayerInList().
Definition at line 1048 of file client.qc.
References boolean, entity(), PlayerInIDList(), and PlayerInIPList().
Referenced by ClientCommand_minigame(), ClientConnect(), ignore_playerindb(), invite_minigame(), joinAllowed(), MUTATOR_HOOKFUNCTION(), Player_GetForcedTeamIndex(), VoteCommand_abstain(), VoteCommand_call(), VoteCommand_no(), and VoteCommand_yes().
Definition at line 2828 of file client.qc.
References CS(), CSQCMODEL_AUTOUPDATE, DrownPlayer(), entity(), GetPressedKeys(), impulse, ImpulseCommands(), IS_OBSERVER, IS_PLAYER, Player_Physics(), STAT, and UpdateChatBubble().
Definition at line 2691 of file client.qc.
References autocvar_g_balance_teams, autocvar_g_campaign, autocvar_sv_spectate, CH_VOICE, CS(), entity(), error, game_stopped, intermission_running, IntermissionThink(), IS_OBSERVER, IS_PLAYER, IS_REAL_CLIENT, IS_SPEC, Join(), joinAllowed(), jointime, m_weapon, MAX_WEAPONSLOTS, MIN_SPEC_TIME, MUTATOR_CALLHOOK, ObserverOrSpectatorThink(), PHYS_INPUT_BUTTON_USE, PHYS_INPUT_BUTTON_ZOOM, PHYS_INPUT_BUTTON_ZOOMSCRIPT, ping, PlayerPreThink, PlayerSound, PlayerThink(), PlayerUseKey(), SetZoomState(), spectatortime, target_voicescript_next(), taunt_soundtime, teamkill_soundtime, teamplay, time, VOICETYPE_AUTOTAUNT, VOICETYPE_LASTATTACKER_ONLY, VOL_BASEVOICE, wants_join, WarpZone_PlayerPhysics_FixVAngle(), weaponentities, Weapon::wr_zoom(), and zoomstate_set.
Definition at line 2349 of file client.qc.
References angles, autocvar_g_allow_checkpoints, autocvar_g_shootfromfixedorigin, autocvar_g_teamdamage_resetspeed, autocvar_sv_show_entnum, bound(), CheatsAllowed(), CS(), CS_CVAR, DEAD_DEAD, DEAD_DYING, DEAD_RESPAWNABLE, DEAD_RESPAWNING, deadflag, dmg_team, dualwielding_prev, entity(), fixangle, FixPlayermodel(), frametime, g_race_qualifying, game_stopped, intermission_running, IntermissionThink(), IS_DEAD, lastV_angle, m_weapon, max(), MAX_WEAPONSLOTS, MF_ROCKET, modelflags, monsters_setstatus(), personal, PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, PHYS_INPUT_BUTTON_HOOK, PHYS_INPUT_BUTTON_JUMP, PHYS_INPUT_BUTTON_USE, player_anim(), player_powerups(), player_regen(), respawn(), RESPAWN_DENY, respawn_flags, RESPAWN_FORCE, RESPAWN_SILENT, respawn_time, respawn_time_max, shootfromfixedorigin, show_entnum(), ShowRespawnCountdown(), STAT, strcpy, stuffcmd, time, TIMEOUT_ACTIVE, timeout_status, v_angle, vortex_charge, vortex_charge_rottime, W_DualWielding(), W_ResetGunAlign(), W_TICSPERFRAME, W_Vortex_Charge(), W_WeaponFrame(), weaponentities, and WEP_CVAR.
Referenced by PlayerPreThink().
Definition at line 2634 of file client.qc.
References autocvar_g_vehicles_enter_radius, entity(), game_stopped, IS_DEAD, IS_INDEPENDENT_PLAYER, IS_PLAYER, MOVE_NOMONSTERS, MUTATOR_CALLHOOK, NULL, origin, PlayerUseKey(), PlayerUseKey_EnterVehicle_cond(), STAT, StatusEffects_active(), vehicle, vehicles_enter(), vehicles_exit(), VHEF_NORMAL, vlen2, WarpZone_SearchInRadius(), WarpZone_SearchInRadius_otherent, and WarpZone_UnTransformOrigin().
Referenced by IMPULSE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), PlayerPreThink(), and PlayerUseKey().
Definition at line 2629 of file client.qc.
References DAMAGE_NO, entity(), IS_DEAD, IS_VEHICLE, SAME_TEAM, VHF_MULTISLOT, and WarpZone_SearchInRadius_otherent.
Referenced by PlayerUseKey().
Definition at line 3104 of file client.qc.
References button0, button10, button11, button12, button13, button14, button15, button16, button2, button3, button4, button5, button6, button7, button8, button9, buttonchat, buttonuse, cursor_active, cursor_screen, cursor_trace_endpos, cursor_trace_ent, cursor_trace_start, entity(), impulse, movement, ping, ping_movementloss, ping_packetloss, and v_angle.
Referenced by SV_PlayerPhysics().
Called when a client spawns in the server.
Definition at line 867 of file client.qc.
References bot_relinkplayerlist(), enemy, entity(), game_stopped, IS_OBSERVER, IS_PLAYER, IS_REAL_CLIENT, msg_entity, MSG_ONE, MUTATOR_CALLHOOK, NULL, PS, PutClientInServer, PutObserverInServer(), PutPlayerInServer(), SetSpectatee(), SVC_SETVIEW, TRANSMUTE, WriteByte(), and WriteEntity().
putting a client as observer in the server
Definition at line 261 of file client.qc.
References accuracy_resend(), alivetime_start, alpha, angles, autocvar_g_balance_armor_start, autocvar_g_debug_globalsounds, autocvar_g_maxplayers_spectator_blocktime, autocvar_g_playerclip_collisions, autocvar_sv_player_viewoffset, autocvar_sv_spectate, AuxiliaryXhair, avelocity, bot_attack, bot_relinkplayerlist(), CHAT_NOSPECTATORS, CS(), DAMAGE_NO, damagedbycontents, damageforcescale, DEAD_NO, deadflag, death_time, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, dphitcontentsmask, drag_undraggable(), drawonlytoclient, effects, entcs_update_players(), entity(), etof, exteriorweaponentity, fade_time, fixangle, FixPlayermodel(), FL_CLIENT, FL_NOTARGET, flags, frags, FRAGS_SPECTATOR, func_null(), g_bot_targets, g_damagedbycontents, g_monster_targets, game_starttime, game_stopped, GetResource(), HUD_NORMAL, IL_REMOVE(), IS_PLAYER, IS_REAL_CLIENT, iscreature, istypefrag, items, just_joined, killcount, LOG_FATAL, max(), MAX_AXH, MAX_WEAPONSLOTS, model, monster_attack, MOVETYPE_FLY_WORLDONLY, msg_entity, MSG_ONE, MUTATOR_CALLHOOK, nextthink, NULL, oldvelocity, origin, pain_finished, pauseregen_finished, pauserotarmor_finished, pauserothealth_finished, player_powerups_remove_all(), PlayerState_detach(), PLAYERSTATS_ALIVETIME, PlayerStats_GameReport_Event_Player, Portal_ClearAll(), punchangle, punchvector, pushltime, ready, ReadyCount(), RemoveGrapplingHooks(), RES_ARMOR, respawn_flags, respawn_time, scale, SelectObservePoint(), SelectSpawnPoint(), Send_Effect(), Send_Notification(), set_movetype(), setmodel, SetPlayerTeam(), SetResourceExplicit(), SetSpectatee(), SetSpectatee_status(), setthink, solid, SOLID_NOT, STAT, SVC_SETVIEW, takedamage, TEAM_CHANGE_SPECTATOR, TELEPORT_SIMPLE, teleportable, time, TRANSMUTE, UNSET_DUCKED, vec2, vehicle, vehicles_exit(), velocity, VHEF_RELEASE, view_ofs, viewloc, vote_called, VoteCount(), warmup_stage, WaypointSprite_PlayerDead(), weaponentities, weaponmodel, WriteByte(), and WriteEntity().
Referenced by BanCommand_playban(), ClientKill_Now_TeamChange(), GameCommand_allspec(), GameCommand_moveplayer(), MatchEnd_RestoreSpectatorAndTeamStatus(), minigame_addplayer(), MUTATOR_HOOKFUNCTION(), ObserverOrSpectatorThink(), PlayerFrame(), PutClientInServer(), Remove_Countdown(), SpectateSet(), and TeamBalance_RemoveExcessPlayers().
Definition at line 580 of file client.qc.
References accuracy_resend(), alivetime_start, alpha, angles, antilag_clear(), autocvar__notarget, autocvar_g_balance_pause_armor_rot_spawn, autocvar_g_balance_pause_fuel_rot_spawn, autocvar_g_balance_pause_health_regen_spawn, autocvar_g_balance_pause_health_rot_spawn, autocvar_g_balance_superweapons_time, autocvar_g_ballistics_density_player, autocvar_g_botclip_collisions, autocvar_g_player_brightness, autocvar_g_player_damageforcescale, autocvar_g_playerclip_collisions, autocvar_g_random_start_weapons, autocvar_g_spawnshieldtime, autocvar_g_weaponswitch_debug, autocvar_spawn_debug, autocvar_sv_mapformat_is_quake3, autocvar_sv_player_scale, autocvar_sv_q3compat_changehitbox, AuxiliaryXhair, avelocity, bot_aim_reset(), bot_attack, bot_forced_team, CH_PLAYER_SINGLE, CL_SpawnWeaponentity(), colormod, CONTENT_EMPTY, conveyor, counter_cnt, CS(), CS_CVAR, DAMAGE_AIM, damagedbycontents, damageforcescale, DEAD_NO, deadflag, death_time, default_player_alpha, default_weapon_alpha, dmg_team, DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, dphitcontentsmask, drawonlytoclient, EF_RESTARTANIM_BIT, EF_TELEPORT_BIT, effects, entity(), exteriorweaponentity, fade_time, fixangle, FixPlayermodel(), FL_CLIENT, FL_NOTARGET, FL_PICKUPITEMS, flags, FOREACH, frags, FRAGS_PLAYER, FRAGS_SPECTATOR, fragsfilter_cnt, func_null(), g_assault, g_bot_targets, g_conveyed, g_counters, g_damagedbycontents, g_ladderents, g_monster_targets, g_race, g_swamped, game_starttime, GiveRandomWeapons(), GiveWarmupResources(), HUD_NORMAL, IL_EACH, IL_PUSH(), IL_REMOVE(), impulse, ImpulseCommands(), INDEPENDENT_PLAYERS, IS_BOT_CLIENT, iscreature, items, killcount, ladder_entity, MAKE_INDEPENDENT_PLAYER, max(), MAX_AXH, MAX_WEAPONSLOTS, model, monster_attack, MOVETYPE_WALK, MUTATOR_CALLHOOK, navigation_dynamicgoal_init(), Net_LinkEntity(), new_pure, nextthink, NULL, oldorigin, oldvelocity, origin, pain_finished, pauseregen_finished, pauserotarmor_finished, pauserotfuel_finished, pauserothealth_finished, PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, PHYS_INPUT_BUTTON_JUMP, PlayerDamage(), PlayerHeal(), PlayerScore_Clear(), PlayerState_attach(), PS, punchangle, punchvector, pushltime, q3compat, random_start_ammo, random_start_weapons_count, ReadyCount(), RES_ARMOR, respawn_flags, respawn_time, scale, SelectSpawnPoint(), Send_Notification(), set_movetype(), SetPlayerTeam(), SetResource(), SetSpectatee_status(), setthink, solid, SOLID_SLIDEBOX, spawn_time, SpawnEvent_Send(), spawnorigin, spawnpoint_targ, speedrunning, sprint(), start_ammo_cells, start_ammo_fuel, start_ammo_nails, start_ammo_rockets, start_ammo_shells, start_armorvalue, start_health, start_items, start_weapons, STAT, StatusEffects_apply(), stopsound(), strcat(), string_null, SUB_UseTargets(), sv_ready_restart_after_countdown, swamp_interval, swampslug, takedamage, target_voicescript_clear(), team, TEAM_CHANGE_MANUAL, TeamBalance_JoinBestTeam(), teamplay, TELEPORT_NORMAL, teleportable, time, TRANSMUTE, UNSET_DUCKED, v_angle, vehicle, vehicles_exit(), velocity, VHEF_RELEASE, view_ofs, viewloc, vtos(), w_getbestweapon, W_ResetGunAlign(), W_WeaponFrame(), wants_join, warmup_stage, waterlevel, WATERLEVEL_NONE, watertype, weapon_load, weaponentities, Weapons, WEP_FLAG_RELOADABLE, and WEPSET_SUPERWEAPONS.
Referenced by PutClientInServer().
Definition at line 2214 of file client.qc.
References entity(), and FOREACH_CLIENT.
Referenced by joinAllowed().
Definition at line 1501 of file client.qc.
References alpha, autocvar_g_respawn_ghosts, autocvar_g_respawn_ghosts_alpha, autocvar_g_respawn_ghosts_fadetime, autocvar_g_respawn_ghosts_speed, autocvar_g_respawn_ghosts_time, avelocity, CopyBody(), CSQCMODEL_EF_RESPAWNGHOST, DAMAGE_NO, damagedbycontents, EF_NODRAW, effects, entity(), min(), MOVETYPE_FLY, origin, PutClientInServer, randomvec(), Send_Effect(), set_movetype(), solid, SOLID_NOT, SUB_SetFade(), takedamage, time, and velocity.
Referenced by PlayerThink().
| void RotRegen | ( | entity | this, |
| Resource | res, | ||
| float | limit_mod, | ||
| float | regenstable, | ||
| float | regenfactor, | ||
| float | regenlinear, | ||
| float | regenframetime, | ||
| float | rotstable, | ||
| float | rotfactor, | ||
| float | rotlinear, | ||
| float | rotframetime ) |
Definition at line 1656 of file client.qc.
References CalcRegen(), CalcRot(), entity(), GetResource(), GetResourceLimit(), max(), min(), and SetResource().
Referenced by player_regen().
Definition at line 250 of file client.qc.
References entity(), g_observepoints, IL_EACH, RandomSelection_AddEnt, RandomSelection_chosen_ent, and RandomSelection_Init().
Referenced by PutObserverInServer().
Definition at line 1078 of file client.qc.
References autocvar_g_campaign, autocvar_g_jetpack, autocvar_g_mutatormsg, autocvar_g_warmup, autocvar_g_xonoticversion, autocvar_gameversion, autocvar_hostname, autocvar_sv_motd, cache_lastmutatormsg, cache_mutatormsg, Campaign_GetLevelNum(), CS(), cvar(), cvar_defstring(), entity(), flags, g_cts, g_weapon_stay, g_weaponarena_type, g_weaponarena_weapons, GetPlayerLimit(), M_ARGV, map_minplayers, MapInfo_ClearTemps(), MapInfo_Get_ByName(), MapInfo_Map_author, MapInfo_Map_titlestring, mi_shortname, MUTATOR_CALLHOOK, NULL, stof(), strcat(), strcpy, strlen, substring(), WEPARENA_CUSTOM, WEPARENA_OFF, WriteByte(), WriteString(), and WriteWepSet().
Referenced by ScoreInfo_SendEntity().
Definition at line 974 of file client.qc.
References CS(), entity(), MUTATOR_CALLHOOK, parm1, SetChangeParms, and time.
| void SetNewParms | ( | ) |
Definition at line 961 of file client.qc.
References MUTATOR_CALLHOOK, parm1, and SetNewParms.
Definition at line 241 of file client.qc.
References autocvar_g_debug_globalsounds, entity(), player_setupanimsformodel(), and UpdatePlayerSounds().
Referenced by FixPlayermodel().
Definition at line 1938 of file client.qc.
References arc_beam, ARC_SF_UPDATE, ClientData_Touch(), enemy, entity(), etof, IS_BOT_CLIENT, MAX_WEAPONSLOTS, SetSpectatee_status(), and weaponentities.
Referenced by ClientDisconnect(), PutClientInServer(), PutObserverInServer(), Spectate(), SpectateNext(), SpectatePrev(), and SpectateUpdate().
Definition at line 1903 of file client.qc.
References ClientData_Touch(), CS(), enemy, entity(), g_cts, g_race, g_race_qualifying, IS_REAL_CLIENT, msg_entity, MSG_ONE, RACE_NET_CHECKPOINT_CLEAR, race_SendNextCheckpoint(), spectatee_status, STAT, WriteByte(), and WriteHeader.
Referenced by PutObserverInServer(), PutPlayerInServer(), and SetSpectatee().
Definition at line 1756 of file client.qc.
References ClientData_Touch(), CS(), entity(), zoomstate, and zoomstate_set.
Referenced by PlayerPreThink(), and SpectateCopy().
Definition at line 2322 of file client.qc.
References debug_text_3d, entity(), etof, NULL, trace_ent, vtos(), WarpZone_crosshair_trace_plusvisibletriggers(), waypointeditor_enabled, and wp_aimed.
Referenced by ObserverOrSpectatorThink(), and PlayerThink().
Definition at line 2042 of file client.qc.
References Announcer_PickNumber(), ceil(), CNT_RESPAWN, entity(), IS_DEAD, number, respawn_countdown, respawn_time, Send_Notification(), and time.
Referenced by PlayerThink().
Definition at line 2061 of file client.qc.
References autocvar_g_balance_teams, autocvar_g_campaign, entity(), frametime, Player_HasRealForcedTeam(), QueuedPlayersReady(), stuffcmd, team_selected, and teamplay.
Referenced by joinAllowed().
Definition at line 1976 of file client.qc.
References entity(), M_ARGV, MUTATOR_CALLHOOK, SetSpectatee(), and SpectateSet().
Referenced by ClientCommand_spectate(), and superspec_Spectate().
Definition at line 1798 of file client.qc.
References angles, anticheat_spectatecopy(), armortype, CS(), disableclientprediction, dmg_inflictor, dmg_save, dmg_take, effects, EFMASK_CHEAP, entity(), fixangle, GetResource(), items, MUTATOR_CALLHOOK, PHYS_INPUT_BUTTON_USE, PS, punchangle, RES_ARMOR, SetResourceExplicit(), SetZoomState(), SpectateCopy(), STAT, TC, v_angle, vehicle_ammo1, vehicle_ammo2, vehicle_energy, vehicle_health, vehicle_reload1, vehicle_reload2, vehicle_shield, velocity, view_ofs, viewloc, and zoomstate.
Referenced by MUTATOR_HOOKABLE(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), SpectateCopy(), and SpectateUpdate().
Definition at line 1986 of file client.qc.
References classname, enemy, entity(), find(), M_ARGV, MUTATOR_CALLHOOK, SetSpectatee(), SpectateNext(), SpectateSet(), and STR_PLAYER.
Referenced by MUTATOR_HOOKABLE(), MUTATOR_HOOKFUNCTION(), ObserverOrSpectatorThink(), and SpectateNext().
Definition at line 2000 of file client.qc.
References classname, enemy, entity(), M_ARGV, MUT_SPECPREV_CONTINUE, MUT_SPECPREV_FOUND, MUT_SPECPREV_RETURN, MUTATOR_CALLHOOK, SetSpectatee(), SpectatePrev(), SpectateSet(), and STR_PLAYER.
Referenced by MUTATOR_HOOKABLE(), MUTATOR_HOOKFUNCTION(), ObserverOrSpectatorThink(), and SpectatePrev().
Definition at line 1884 of file client.qc.
References accuracy_resend(), ClientData_Touch(), enemy, entity(), IS_PLAYER, MOVETYPE_NONE, msg_entity, MSG_ONE, PutObserverInServer(), set_movetype(), SpectateUpdate(), SVC_SETVIEW, WriteByte(), and WriteEntity().
Referenced by MUTATOR_HOOKABLE(), MUTATOR_HOOKFUNCTION(), Spectate(), SpectateNext(), and SpectatePrev().
Definition at line 1866 of file client.qc.
References enemy, entity(), IS_OBSERVER, IS_PLAYER, NULL, SetSpectatee(), SpectateCopy(), and TRANSMUTE.
Referenced by ObserverOrSpectatorThink(), and SpectateSet().
Definition at line 1376 of file client.qc.
References alpha, chatbubbleentity, ChatBubbleThink(), EF_LOWPRECISION, entity(), setmodel, setthink, and time.
Referenced by PlayerPostThink().
Definition at line 2850 of file client.qc.
References DAMAGE_NO, entity(), IS_DEAD, and IS_VEHICLE.
Referenced by PlayerFrame().
Definition at line 114 of file client.qc.
References entity(), FOREACH_CLIENT, IS_REAL_CLIENT, and IS_SPEC.
Referenced by ClientData_Send().
| float autocvar_g_maxping |
Definition at line 2262 of file client.qc.
Referenced by joinAllowed().
| entity chatbubbleentity |
Definition at line 1267 of file client.qc.
Referenced by ClientDisconnect(), and UpdateChatBubble().
| bool dualwielding_prev |
Definition at line 2348 of file client.qc.
Referenced by PlayerThink().
| string FallbackPlayerModel |
Definition at line 207 of file client.qc.
Referenced by CheckPlayerModel().
| float last_vehiclecheck |
Definition at line 2690 of file client.qc.
Referenced by PlayerFrame().
| float model_randomizer |
Definition at line 453 of file client.qc.
Referenced by FixPlayermodel().
| string shootfromfixedorigin |
Definition at line 1266 of file client.qc.
Referenced by ClientDisconnect(), and PlayerThink().
| bool would_spectate |
Definition at line 2508 of file client.qc.
Referenced by ObserverOrSpectatorThink().
| bool zoomstate_set |
Definition at line 1755 of file client.qc.
Referenced by PlayerPreThink(), and SetZoomState().