|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "cmd.qh"#include <common/command/_mod.qh>#include <common/constants.qh>#include <common/deathtypes/all.qh>#include <common/effects/all.qh>#include <common/gametypes/_mod.qh>#include <common/mapinfo.qh>#include <common/mapobjects/triggers.qh>#include <common/minigames/sv_minigames.qh>#include <common/monsters/_mod.qh>#include <common/monsters/sv_monsters.qh>#include <common/monsters/sv_spawn.qh>#include <common/notifications/all.qh>#include <common/physics/player.qh>#include <common/teams.qh>#include <common/util.qh>#include <common/vehicles/all.qh>#include <lib/warpzone/common.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/client.qh>#include <server/clientkill.qh>#include <server/command/_mod.qh>#include <server/command/common.qh>#include <server/command/getreplies.qh>#include <server/command/vote.qh>#include <server/ipban.qh>#include <server/mapvoting.qh>#include <server/mutators/_mod.qh>#include <server/player.qh>#include <server/race.qh>#include <server/scores.qh>#include <server/teamplay.qh>#include <server/world.qh>Go to the source code of this file.
Functions | |
| CLIENT_COMMAND (autoswitch, "Whether or not to switch automatically when getting a better weapon") | |
| CLIENT_COMMAND (clear_bestcptimes, "Clear all your best checkpoint times for this Race/CTS match") | |
| CLIENT_COMMAND (clear_ignores, "Remove all existing ignores of players") | |
| CLIENT_COMMAND (clientversion, "Release version of the game") | |
| CLIENT_COMMAND (ignore, "Ignore a player in the game keeping them out of your personal chat log") | |
| CLIENT_COMMAND (join, "Become a player in the game") | |
| CLIENT_COMMAND (kill, "Become a member of the dead") | |
| CLIENT_COMMAND (minigame, "Start a minigame") | |
| CLIENT_COMMAND (mv_getpicture, "Retrieve mapshot picture from the server") | |
| CLIENT_COMMAND (physics, "Change physics set") | |
| CLIENT_COMMAND (ready, "Qualify as ready to end warmup-stage") | |
| CLIENT_COMMAND (say, "Send a public chat message to all players") | |
| CLIENT_COMMAND (say_team, "Send a chat message to all teammates") | |
| CLIENT_COMMAND (selectteam, "Attempt to choose a team to join into") | |
| CLIENT_COMMAND (selfstuff, "Stuffcmd a command to your own client") | |
| CLIENT_COMMAND (sentcvar, "New system for sending a client cvar to the server") | |
| CLIENT_COMMAND (spectate, "Become a spectator") | |
| CLIENT_COMMAND (suggestmap, "Suggest a map to appear at the map voting screen") | |
| CLIENT_COMMAND (tell, "Send a private chat message to a player which may be visible to server admins") | |
| CLIENT_COMMAND (unignore, "Remove an existing ignore of a player") | |
| CLIENT_COMMAND (voice, "Send voice message via sound") | |
| CLIENT_COMMAND (wpeditor, "Waypoint editor commands") | |
| void | ClientCommand_autoswitch (entity caller, int request, int argc) |
| void | ClientCommand_clear_bestcptimes (entity caller, int request) |
| void | ClientCommand_clear_ignores (entity caller, int request) |
| void | ClientCommand_clientversion (entity caller, int request, int argc) |
| void | ClientCommand_ignore (entity caller, int request, int argc, string command) |
| void | ClientCommand_join (entity caller, int request) |
| void | ClientCommand_kill (entity caller, int request) |
| float | ClientCommand_macro_command (int argc, entity caller, string command) |
| void | ClientCommand_macro_help (entity caller) |
| float | ClientCommand_macro_usage (int argc, entity caller) |
| void | ClientCommand_macro_write_aliases (float fh) |
| void | ClientCommand_mv_getpicture (entity caller, int request, int argc) |
| void | ClientCommand_physics (entity caller, int request, int argc) |
| void | ClientCommand_ready (entity caller, int request) |
| void | ClientCommand_say (entity caller, int request, int argc, string command) |
| void | ClientCommand_say_team (entity caller, int request, int argc, string command) |
| void | ClientCommand_selectteam (entity caller, int request, int argc) |
| void | ClientCommand_selfstuff (entity caller, int request, string command) |
| void | ClientCommand_sentcvar (entity caller, int request, int argc) |
| void | ClientCommand_spectate (entity caller, int request) |
| void | ClientCommand_suggestmap (entity caller, int request, int argc) |
| void | ClientCommand_tell (entity caller, int request, int argc, string command) |
| void | ClientCommand_unignore (entity caller, int request, int argc, string command) |
| void | ClientCommand_voice (entity caller, int request, int argc, string command) |
| void | ClientCommand_wpeditor (entity caller, int request, int argc) |
| int | ignore_add_player (entity this, entity ignore, bool to_db_too) |
| Adds a player to the ignore list of another player. | |
| void | ignore_clearall (entity this) |
| void | ignore_list_send (entity this) |
| void | ignore_list_update_on_connection (entity this) |
| Updates ignore list of all the players. | |
| bool | ignore_playerindb (entity this, entity pl) |
| Checks if pl is permanently ignored by this. | |
| bool | ignore_playerinlist (entity this, entity pl) |
| Checks if pl is ignored by this (permanently or for the current match) | |
| void | ignore_remove_player (entity this, entity ignore, bool from_db_too) |
| Removes a player from the ignore list of another player. | |
| void | SV_ParseClientCommand (entity this, string command) |
| CLIENT_COMMAND | ( | autoswitch | , |
| "Whether or not to switch automatically when getting a better weapon" | ) |
Definition at line 1106 of file cmd.qc.
References ClientCommand_autoswitch().
| CLIENT_COMMAND | ( | clear_bestcptimes | , |
| "Clear all your best checkpoint times for this Race/CTS match" | ) |
Definition at line 1107 of file cmd.qc.
References ClientCommand_clear_bestcptimes().
| CLIENT_COMMAND | ( | clear_ignores | , |
| "Remove all existing ignores of players" | ) |
Definition at line 1108 of file cmd.qc.
References ClientCommand_clear_ignores().
| CLIENT_COMMAND | ( | clientversion | , |
| "Release version of the game" | ) |
Definition at line 1109 of file cmd.qc.
References ClientCommand_clientversion().
| CLIENT_COMMAND | ( | ignore | , |
| "Ignore a player in the game keeping them out of your personal chat log" | ) |
Definition at line 1110 of file cmd.qc.
References ClientCommand_ignore().
| CLIENT_COMMAND | ( | join | , |
| "Become a player in the game" | ) |
Definition at line 1111 of file cmd.qc.
References ClientCommand_join().
| CLIENT_COMMAND | ( | kill | , |
| "Become a member of the dead" | ) |
Definition at line 1112 of file cmd.qc.
References ClientCommand_kill().
| CLIENT_COMMAND | ( | minigame | , |
| "Start a minigame" | ) |
Definition at line 1113 of file cmd.qc.
References ClientCommand_minigame().
| CLIENT_COMMAND | ( | mv_getpicture | , |
| "Retrieve mapshot picture from the server" | ) |
Definition at line 1114 of file cmd.qc.
References ClientCommand_mv_getpicture().
| CLIENT_COMMAND | ( | physics | , |
| "Change physics set" | ) |
Definition at line 1115 of file cmd.qc.
References ClientCommand_physics().
Definition at line 1116 of file cmd.qc.
References ClientCommand_ready(), and ready.
| CLIENT_COMMAND | ( | say | , |
| "Send a public chat message to all players" | ) |
Definition at line 1117 of file cmd.qc.
References ClientCommand_say().
| CLIENT_COMMAND | ( | say_team | , |
| "Send a chat message to all teammates" | ) |
Definition at line 1118 of file cmd.qc.
References ClientCommand_say_team().
| CLIENT_COMMAND | ( | selectteam | , |
| "Attempt to choose a team to join into" | ) |
Definition at line 1119 of file cmd.qc.
References ClientCommand_selectteam().
| CLIENT_COMMAND | ( | selfstuff | , |
| "Stuffcmd a command to your own client" | ) |
Definition at line 1120 of file cmd.qc.
References ClientCommand_selfstuff().
Definition at line 1121 of file cmd.qc.
References ClientCommand_sentcvar().
| CLIENT_COMMAND | ( | spectate | , |
| "Become a spectator" | ) |
Definition at line 1122 of file cmd.qc.
References ClientCommand_spectate().
| CLIENT_COMMAND | ( | suggestmap | , |
| "Suggest a map to appear at the map voting screen" | ) |
Definition at line 1123 of file cmd.qc.
References ClientCommand_suggestmap().
| CLIENT_COMMAND | ( | tell | , |
| "Send a private chat message to a player which may be visible to server admins" | ) |
Definition at line 1124 of file cmd.qc.
References ClientCommand_tell().
| CLIENT_COMMAND | ( | unignore | , |
| "Remove an existing ignore of a player" | ) |
Definition at line 1126 of file cmd.qc.
References ClientCommand_unignore().
| CLIENT_COMMAND | ( | voice | , |
| "Send voice message via sound" | ) |
Definition at line 1125 of file cmd.qc.
References ClientCommand_voice().
| CLIENT_COMMAND | ( | wpeditor | , |
| "Waypoint editor commands" | ) |
Definition at line 1127 of file cmd.qc.
References ClientCommand_wpeditor().
Definition at line 201 of file cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS_CVAR, entity(), InterpretBoolean(), sprint(), and strcat().
Referenced by CLIENT_COMMAND().
Definition at line 253 of file cmd.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), race_ClearPlayerRecords(), and sprint().
Referenced by CLIENT_COMMAND().
Definition at line 226 of file cmd.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), ignore_clearall(), and sprint().
Referenced by CLIENT_COMMAND().
Definition at line 273 of file cmd.qc.
References argv(), autocvar_g_balance_teams, autocvar_g_campaign, autocvar_gameversion_max, autocvar_gameversion_min, autocvar_sv_spectate, ClientKill_TeamChange(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS(), entity(), IS_CLIENT, Player_GetForcedTeamIndex(), sprint(), stof(), stuffcmd, teamplay, and TRANSMUTE.
Referenced by CLIENT_COMMAND().
Definition at line 452 of file cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), ftos(), GetClientErrorString, GetIndexedEntity(), ignore_add_player(), IGNORE_MAXPLAYERS, ignore_playerinlist(), IS_REAL_CLIENT, print_to(), sprint(), strcat(), and VerifyClientEntity().
Referenced by CLIENT_COMMAND().
Definition at line 507 of file cmd.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS(), entity(), game_stopped, IS_CLIENT, IS_PLAYER, Join(), joinAllowed(), jointime, MIN_SPEC_TIME, sprint(), teamplay, and time.
Referenced by CLIENT_COMMAND().
Definition at line 535 of file cmd.qc.
References ClientKill, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetResource(), IS_OBSERVER, IS_SPEC, and sprint().
Referenced by CLIENT_COMMAND().
Definition at line 1134 of file cmd.qc.
References argv(), entity(), FOREACH, and strtolower().
Referenced by SV_ParseClientCommand().
Definition at line 1129 of file cmd.qc.
References entity(), FOREACH, and print_to().
Referenced by SV_ParseClientCommand().
Definition at line 1145 of file cmd.qc.
References argv(), entity(), FOREACH, and strtolower().
Referenced by SV_ParseClientCommand().
Definition at line 1156 of file cmd.qc.
References CMD_Write_Alias, and FOREACH.
Referenced by GENERIC_COMMAND().
Definition at line 316 of file cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), intermission_running, MapVote_SendPicture(), sprint(), and stof().
Referenced by CLIENT_COMMAND().
Definition at line 565 of file cmd.qc.
References argv(), autocvar_g_physics_clientselect, autocvar_g_physics_clientselect_options, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS_CVAR, entity(), Physics_Valid(), sprint(), strcat(), strtolower(), and stuffcmd.
Referenced by CLIENT_COMMAND().
Definition at line 605 of file cmd.qc.
References bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), g_race_qualifying, INGAME_JOINED, IS_PLAYER, playername(), ReadyCount(), sprint(), and warmup_stage.
Referenced by CLIENT_COMMAND().
Definition at line 639 of file cmd.qc.
References argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), NULL, Say(), sprint(), and substring().
Referenced by CLIENT_COMMAND().
Definition at line 659 of file cmd.qc.
References argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), NULL, Say(), sprint(), and substring().
Referenced by CLIENT_COMMAND().
Definition at line 680 of file cmd.qc.
References argv(), autocvar_g_balance_teams_prevent_imbalance, ClientKill_TeamChange(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CPID_PREVENT_JOIN, entity(), intermission_running, IS_CLIENT, joinAllowed(), Kill_Notification(), lockteams, NULL, Player_GetForcedTeamIndex(), Send_Notification(), sprint(), Team_ColorToTeam(), Team_IndexToBit(), Team_TeamToIndex(), TeamBalance_CheckAllowedTeams(), TeamBalance_Destroy(), TeamBalance_FindBestTeams(), TeamBalance_GetTeamCounts(), TeamBalance_IsTeamAllowed(), teamplay, and warmup_stage.
Referenced by CLIENT_COMMAND().
Definition at line 776 of file cmd.qc.
References argv(), argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), sprint(), stuffcmd, and substring().
Referenced by CLIENT_COMMAND().
Definition at line 800 of file cmd.qc.
References argv(), argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS_CVAR, cvar_defstring(), entity(), GetCvars(), sprint(), strcat(), substring(), and tokenize_console.
Referenced by CLIENT_COMMAND().
Definition at line 834 of file cmd.qc.
References argv(), autocvar_sv_spectate, ClientKill_TeamChange(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CPID_PREVENT_JOIN, entity(), GetFilteredEntity(), intermission_running, IS_CLIENT, IS_OBSERVER, IS_PLAYER, IS_SPEC, Kill_Notification(), MUT_SPECCMD_FORCE, MUT_SPECCMD_RETURN, MUTATOR_CALLHOOK, NULL, PutClientInServer, Send_Notification(), Spectate(), sprint(), TRANSMUTE, VerifyClientEntity(), and warmup_stage.
Referenced by CLIENT_COMMAND().
Definition at line 903 of file cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), MapVote_Suggest(), sprint(), and strcat().
Referenced by CLIENT_COMMAND().
Definition at line 927 of file cmd.qc.
References argv(), argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_set(), cvar_string(), entity(), GetClientErrorString, GetIndexedEntity(), IS_CLIENT, IS_REAL_CLIENT, next_token, NULL, print_to(), Say(), sprint(), strcat(), substring(), trigger_magicear_processmessage_forallears(), and VerifyClientEntity().
Referenced by CLIENT_COMMAND().
Definition at line 984 of file cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetClientErrorString, GetIndexedEntity(), ignore_remove_player(), IS_REAL_CLIENT, print_to(), sprint(), strcat(), and VerifyClientEntity().
Referenced by CLIENT_COMMAND().
Definition at line 1029 of file cmd.qc.
References allvoicesamples, argv(), argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetVoiceMessage(), IS_DEAD, IS_OBSERVER, IS_SPEC, sprint(), substring(), and VoiceMessage.
Referenced by CLIENT_COMMAND().
Definition at line 341 of file cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), IS_PLAYER, sprint(), waypoint_getSymmetricalAxis_cmd(), waypoint_getSymmetricalOrigin_cmd(), waypoint_lock(), waypoint_remove_fromeditor(), waypoint_saveall(), waypoint_schedulerelinkall(), waypoint_spawn_fromeditor(), waypoint_start_hardwiredlink(), waypoint_unreachable(), and waypointeditor_enabled.
Referenced by CLIENT_COMMAND().
Adds a player to the ignore list of another player.
| [in] | this | ignore list owner |
| [in] | ignore | player to add to the ignore list |
| [in] | to_db_too | whether to add ignore to db too (permanent ignore) or not |
Definition at line 88 of file cmd.qc.
References cons(), crypto_idfp, db_get(), db_put(), entity(), etof, ftos(), ignore_list, ignore_list_send_time, IGNORE_MAXPLAYERS, ServerProgsDB, strcat(), strcpy, and time.
Referenced by ClientCommand_ignore(), and ignore_list_update_on_connection().
Definition at line 176 of file cmd.qc.
References crypto_idfp, db_get(), db_remove, entity(), FOREACH_CLIENT, ftos(), ignore_list_send_time, IGNORE_MAXPLAYERS, ignore_remove_player(), IS_REAL_CLIENT, ServerProgsDB, strcat(), and time.
Referenced by ClientCommand_clear_ignores().
Definition at line 168 of file cmd.qc.
References ClientData_Touch(), entity(), IGNORE_LIST_SEND_NOW, and ignore_list_send_time.
Referenced by PlayerFrame().
Updates ignore list of all the players.
It's meant to be called when player 'this' connects.
Definition at line 153 of file cmd.qc.
References entity(), FOREACH_CLIENT, ignore_add_player(), ignore_playerindb(), and IS_REAL_CLIENT.
Referenced by ClientConnect().
Checks if pl is permanently ignored by this.
Definition at line 117 of file cmd.qc.
References cons(), crypto_idfp, db_get(), entity(), ftos(), IGNORE_MAXPLAYERS, PlayerInList(), ServerProgsDB, and strcat().
Referenced by ignore_list_update_on_connection().
Checks if pl is ignored by this (permanently or for the current match)
Definition at line 134 of file cmd.qc.
References entity(), etof, FOREACH_WORD, ftos(), ignore_list, and strcat().
Referenced by ClientCommand_ignore(), and Say().
Removes a player from the ignore list of another player.
| [in] | this | ignore list owner |
| [in] | ignore | player to remove from the ignore list |
| [in] | from_db_too | whether to remove player from db too (permanent ignore) or not |
Definition at line 47 of file cmd.qc.
References cons(), crypto_idfp, db_get(), db_remove, entity(), etof, FOREACH_WORD, ftos(), ignore_list, ignore_list_send_time, IGNORE_MAXPLAYERS, ServerProgsDB, strcat(), strcpy, and time.
Referenced by ClientCommand_unignore(), ClientDisconnect(), and ignore_clearall().
Definition at line 1166 of file cmd.qc.
References argv(), autocvar_sv_clientcommand_antispam_count, autocvar_sv_clientcommand_antispam_time, Ban_MaybeEnforceBanOnce(), CheatCommand(), chr2str, clientcommand(), ClientCommand_macro_command(), ClientCommand_macro_help(), ClientCommand_macro_usage(), CommonCommand_macro_command(), CommonCommand_macro_help(), CommonCommand_macro_usage(), CS(), entity(), ftos(), gettime(), GETTIME_FRAMESTART, IS_CLIENT, LABEL, max(), MINIGAME_COMMON_CMD, MINIGAME_COMMON_CMD_COUNT, MUTATOR_CALLHOOK, Net_ClientCommand(), netname, NULL, Send_Notification(), sprint(), str2chr, strcat(), strlen, strtolower(), SV_ParseClientCommand, teamplay, and tokenize_console.