Xonotic
|
#include "cmd.qh"
#include <common/command/_mod.qh>
#include <common/constants.qh>
#include <common/deathtypes/all.qh>
#include <common/effects/all.qh>
#include <common/gamemodes/_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/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/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/scores.qh>
#include <server/teamplay.qh>
#include <server/world.qh>
Go to the source code of this file.
Macros | |
#define | CLIENT_COMMAND(name, function, description) { sprint(caller, " ^2", name, "^7: ", description, "\n"); } |
#define | CLIENT_COMMAND(name, function, description) { if (name == strtolower(argv(0))) { function; return true; } } |
#define | CLIENT_COMMAND(name, function, description) { if (name == strtolower(argv(1))) { function; return true; } } |
#define | CLIENT_COMMAND(name, function, description) { CMD_Write_Alias("qc_cmd_cmd", name, description); } |
#define | CLIENT_COMMANDS(ent, request, arguments, command) |
Variables | |
bool | team_selected |
#define CLIENT_COMMAND | ( | name, | |
function, | |||
description | |||
) | { sprint(caller, " ^2", name, "^7: ", description, "\n"); } |
#define CLIENT_COMMAND | ( | name, | |
function, | |||
description | |||
) | { if (name == strtolower(argv(0))) { function; return true; } } |
#define CLIENT_COMMAND | ( | name, | |
function, | |||
description | |||
) | { if (name == strtolower(argv(1))) { function; return true; } } |
#define CLIENT_COMMAND | ( | name, | |
function, | |||
description | |||
) | { CMD_Write_Alias("qc_cmd_cmd", name, description); } |
#define CLIENT_COMMANDS | ( | ent, | |
request, | |||
arguments, | |||
command | |||
) |
Definition at line 800 of file cmd.qc.
Referenced by ClientCommand_macro_command(), ClientCommand_macro_help(), ClientCommand_macro_usage(), ClientCommand_macro_write_aliases(), LocalCommand_macro_command(), LocalCommand_macro_help(), LocalCommand_macro_usage(), and LocalCommand_macro_write_aliases().
Definition at line 68 of file cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS_CVAR, InterpretBoolean(), sprint(), and strcat().
Definition at line 93 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(), IS_CLIENT, Player_GetForcedTeamIndex(), sprint(), stof(), stuffcmd, teamplay, and TRANSMUTE().
Definition at line 272 of file cmd.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS(), IS_CLIENT, IS_PLAYER, Join(), joinAllowed(), jointime, MIN_SPEC_TIME, sprint(), and time.
Definition at line 299 of file cmd.qc.
References ClientKill(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetResource(), IS_OBSERVER, IS_SPEC, RES_HEALTH, and sprint().
Definition at line 830 of file cmd.qc.
References CLIENT_COMMANDS, and CMD_REQUEST_COMMAND.
Referenced by SV_ParseClientCommand().
Definition at line 821 of file cmd.qc.
References CLIENT_COMMANDS, and NULL.
Referenced by SV_ParseClientCommand().
Definition at line 841 of file cmd.qc.
References CLIENT_COMMANDS, and CMD_REQUEST_USAGE.
Referenced by SV_ParseClientCommand().
Definition at line 852 of file cmd.qc.
References CLIENT_COMMANDS, and NULL.
Referenced by GENERIC_COMMAND().
Definition at line 136 of file cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, intermission_running, MapVote_SendPicture(), sprint(), and stof().
Definition at line 329 of file cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS_CVAR, sprint(), strcat(), and stuffcmd.
Definition at line 369 of file cmd.qc.
References bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, g_race_qualifying, INGAME_JOINED, IS_CLIENT, IS_PLAYER, ReadyCount(), sprint(), time, and warmup_stage.
Definition at line 413 of file cmd.qc.
References argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, NULL, Say(), sprint(), and substring().
Definition at line 433 of file cmd.qc.
References argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, NULL, Say(), sprint(), and substring().
Definition at line 455 of file cmd.qc.
References argv(), autocvar_g_balance_teams, autocvar_g_balance_teams_prevent_imbalance, autocvar_g_changeteam_banned, ClientKill_TeamChange(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS(), entity(), IS_CLIENT, IS_DEAD, IS_PLAYER, lockteams, Player_GetForcedTeamIndex(), sprint(), Team_ColorToTeam(), Team_IndexToBit(), Team_TeamToIndex(), TeamBalance_CheckAllowedTeams(), TeamBalance_Destroy(), TeamBalance_FindBestTeams(), TeamBalance_GetTeamCounts(), teamplay, and wasplayer.
Definition at line 534 of file cmd.qc.
References argv(), argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, sprint(), stuffcmd, and substring().
Definition at line 558 of file cmd.qc.
References argv(), argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS_CVAR, cvar_defstring(), GetCvars(), sprint(), strcat(), substring(), and tokenize_console.
Definition at line 592 of file cmd.qc.
References argv(), autocvar_sv_spectate, ClientKill_TeamChange(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetFilteredEntity(), intermission_running, IS_CLIENT, IS_OBSERVER, IS_PLAYER, IS_SPEC, MUT_SPECCMD_FORCE, MUT_SPECCMD_RETURN, MUTATOR_CALLHOOK, Spectate(), sprint(), TRANSMUTE(), and VerifyClientEntity().
Definition at line 642 of file cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, MapVote_Suggest(), sprint(), and strcat().
Definition at line 666 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(), and VerifyClientEntity().
Definition at line 723 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(), and substring().
Definition at line 161 of file cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, 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.
Definition at line 866 of file cmd.qc.
References argv(), Ban_MaybeEnforceBanOnce(), CheatCommand(), chr2str, clientcommand(), ClientCommand_macro_command(), ClientCommand_macro_help(), ClientCommand_macro_usage(), CommonCommand_macro_command(), CommonCommand_macro_help(), CommonCommand_macro_usage(), IS_CLIENT, MUTATOR_CALLHOOK, netname, NULL, sprint(), str2chr, strcat(), strlen(), SV_ParseClientCommand_floodcheck(), teamplay, and tokenize_console.
Referenced by bot_cmd_cc().
Definition at line 43 of file cmd.qc.
References autocvar_sv_clientcommand_antispam_count, autocvar_sv_clientcommand_antispam_time, CS(), entity(), IS_CLIENT, and time.
Referenced by SV_ParseClientCommand().