Xonotic
|
#include "sv_cmd.qh"
#include <common/constants.qh>
#include <common/effects/all.qh>
#include <common/gamemodes/_mod.qh>
#include <common/mapinfo.qh>
#include <common/monsters/sv_monsters.qh>
#include <common/net_linked.qh>
#include <common/notifications/all.qh>
#include <common/teams.qh>
#include <common/util.qh>
#include <server/anticheat.qh>
#include <server/bot/api.qh>
#include <server/campaign.qh>
#include <server/client.qh>
#include <server/command/_mod.qh>
#include <server/command/banning.qh>
#include <server/command/cmd.qh>
#include <server/command/common.qh>
#include <server/command/getreplies.qh>
#include <server/command/radarmap.qh>
#include <server/intermission.qh>
#include <server/ipban.qh>
#include <server/mutators/_mod.qh>
#include <server/player.qh>
#include <server/scores_rules.qh>
#include <server/teamplay.qh>
#include <server/world.qh>
Go to the source code of this file.
Functions | |
void | changematchtime (float delta, float mi, float ma) |
void | GameCommand (string command) |
void | GameCommand_adminmsg (int request, int argc) |
void | GameCommand_allready (int request) |
void | GameCommand_allspec (int request, int argc) |
void | GameCommand_animbench (int request, int argc) |
void | GameCommand_anticheat (int request, int argc) |
void | GameCommand_bbox (int request) |
void | GameCommand_bot_cmd (int request, int argc, string command) |
void | GameCommand_cointoss (int request, int argc) |
void | GameCommand_database (int request, int argc) |
void | GameCommand_defer_clear (int request, int argc) |
void | GameCommand_defer_clear_all (int request) |
void | GameCommand_delrec (int request, int argc) |
void | GameCommand_effectindexdump (int request) |
void | GameCommand_extendmatchtime (int request) |
void | GameCommand_gametype (int request, int argc) |
void | GameCommand_gettaginfo (int request, int argc) |
void | GameCommand_gotomap (int request, int argc) |
void | GameCommand_lockteams (int request) |
float | GameCommand_macro_command (int argc, string command) |
void | GameCommand_macro_help () |
float | GameCommand_macro_usage (int argc) |
void | GameCommand_macro_write_aliases (float fh) |
void | GameCommand_make_mapinfo (int request) |
void | GameCommand_moveplayer (int request, int argc) |
void | GameCommand_nospectators (int request) |
void | GameCommand_printstats (int request) |
void | GameCommand_radarmap (int request, int argc) |
void | GameCommand_reducematchtime (int request) |
void | GameCommand_resetmatch (int request) |
void | GameCommand_setbots (int request, int argc) |
void | GameCommand_shuffleteams (int request) |
void | GameCommand_stuffto (int request, int argc) |
void | GameCommand_trace (int request, int argc) |
void | GameCommand_unlockteams (int request) |
void | GameCommand_warp (int request, int argc) |
void | make_mapinfo_Think (entity this) |
void | print_Effect_Index (int d, string effect_name) |
SERVER_COMMAND (adminmsg, "Send an admin message to a client directly") | |
SERVER_COMMAND (allready, "Ends warmup and starts the match") | |
SERVER_COMMAND (allspec, "Force all players to spectate") | |
SERVER_COMMAND (anticheat, "Create an anticheat report for a client") | |
SERVER_COMMAND (animbench, "Benchmark model animation (LAGS)") | |
SERVER_COMMAND (bbox, "Print detailed information about world size") | |
SERVER_COMMAND (bot_cmd, "Control and send commands to bots") | |
SERVER_COMMAND (cointoss, "Flip a virtual coin and give random result") | |
SERVER_COMMAND (database, "Extra controls of the serverprogs database") | |
SERVER_COMMAND (defer_clear, "Clear all queued defer commands for a specific client") | |
SERVER_COMMAND (defer_clear_all, "Clear all queued defer commands for all clients") | |
SERVER_COMMAND (delrec, "Delete race time record for a map") | |
SERVER_COMMAND (effectindexdump, "Dump list of effects from code and effectinfo.txt") | |
SERVER_COMMAND (extendmatchtime, "Increase the timelimit value incrementally") | |
SERVER_COMMAND (gametype, "Simple command to change the active gametype") | |
SERVER_COMMAND (gettaginfo, "Get specific information about a weapon model") | |
SERVER_COMMAND (gotomap, "Simple command to switch to another map") | |
SERVER_COMMAND (lockteams, "Disable the ability for players to switch or enter teams") | |
SERVER_COMMAND (make_mapinfo, "Automatically rebuild mapinfo files") | |
SERVER_COMMAND (moveplayer, "Change the team/status of a player") | |
SERVER_COMMAND (nospectators, "Automatically remove spectators from a match") | |
SERVER_COMMAND (printstats, "Dump eventlog player stats and other score information") | |
SERVER_COMMAND (radarmap, "Generate a radar image of the map") | |
SERVER_COMMAND (reducematchtime, "Decrease the timelimit value incrementally") | |
SERVER_COMMAND (resetmatch, "Soft restart the game without changing teams; goes back to warmup if enabled") | |
SERVER_COMMAND (setbots, "Adjust how many bots are in the match") | |
SERVER_COMMAND (shuffleteams, "Randomly move players to different teams") | |
SERVER_COMMAND (stuffto, "Send a command to be executed on a client") | |
SERVER_COMMAND (trace, "Various debugging tools with tracing") | |
SERVER_COMMAND (unlockteams, "Enable the ability for players to switch or enter teams") | |
SERVER_COMMAND (warp, "Choose different level in campaign") | |
void | shuffleteams () |
Definition at line 47 of file sv_cmd.qc.
References cvar_set(), ftos(), max(), min(), and time.
Referenced by GameCommand_extendmatchtime(), and GameCommand_reducematchtime().
Definition at line 1722 of file sv_cmd.qc.
References argv(), BanCommand(), BanCommand_macro_help(), BanCommand_macro_usage(), CommonCommand_macro_command(), CommonCommand_macro_help(), CommonCommand_macro_usage(), CSQC_ConsoleCommand(), GameCommand_macro_command(), GameCommand_macro_help(), GameCommand_macro_usage(), GenericCommand(), GenericCommand_macro_help(), GenericCommand_macro_usage(), LocalCommand_macro_command(), LocalCommand_macro_help(), LocalCommand_macro_usage(), LOG_HELP, LOG_INFO, MUTATOR_CALLHOOK, NULL, strcat(), and tokenize_console.
Definition at line 87 of file sv_cmd.qc.
References argv(), bprint(), car(), cdr(), centerprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetCallerName(), GetClientErrorString, GetFilteredEntity(), LOG_HELP, LOG_INFO, LOG_INFOF, LOG_TRACE, MakeConsoleSafe(), NULL, sprint(), stof(), strcat(), string_null, stuffcmd, and VerifyClientEntity().
Referenced by SERVER_COMMAND().
Definition at line 159 of file sv_cmd.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, LOG_HELP, LOG_INFO, ReadyRestart(), and warmup_stage.
Referenced by SERVER_COMMAND().
Definition at line 185 of file sv_cmd.qc.
References argv(), bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, FOREACH_CLIENT, ftos(), IS_PLAYER, IS_REAL_CLIENT, LOG_HELP, LOG_INFO, PutObserverInServer(), and strcat().
Referenced by SERVER_COMMAND().
Definition at line 837 of file sv_cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), f1, f2, ftos(), gettime(), GETTIME_HIRES, LOG_HELP, LOG_INFO, LOG_INFOF, model, nextent(), NULL, spawn(), stof(), and weaponentities.
Referenced by SERVER_COMMAND().
Definition at line 213 of file sv_cmd.qc.
References anticheat_report_to_eventlog(), argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetClientErrorString, GetIndexedEntity(), LOG_HELP, LOG_INFO, LOG_INFOF, and VerifyClientEntity().
Referenced by SERVER_COMMAND().
Definition at line 244 of file sv_cmd.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, LOG_HELP, LOG_INFOF, MOVE_WORLDONLY, NULL, trace_endpos, trace_startsolid, vector(), and world.
Referenced by SERVER_COMMAND().
Definition at line 317 of file sv_cmd.qc.
References argv(), argv_start_index, bot_cmdhelp(), bot_fixcount(), bot_list_commands(), bot_queuecommand(), bot_resetqueues(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_settemp(), entity(), fclose(), fgets(), FILE_READ, find_bot_by_name(), find_bot_by_number(), fopen(), FOREACH_CLIENT, ftos(), IS_BOT_CLIENT, localcmd, LOG_HELP, LOG_INFO, LOG_INFOF, NULL, stof(), strcat(), substring(), and tokenize_console.
Referenced by SERVER_COMMAND().
Definition at line 451 of file sv_cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, LOG_HELP, NULL, random(), and strcat().
Referenced by SERVER_COMMAND().
Definition at line 475 of file sv_cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, db_close(), db_dump(), db_load(), db_save(), LOG_HELP, LOG_INFO, LOG_INFOF, and ServerProgsDB.
Referenced by SERVER_COMMAND().
Definition at line 518 of file sv_cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetClientErrorString, GetIndexedEntity(), LOG_HELP, LOG_INFO, LOG_INFOF, stuffcmd, and VerifyClientEntity().
Referenced by GameCommand_defer_clear_all(), and SERVER_COMMAND().
Definition at line 555 of file sv_cmd.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, etof(), FOREACH_CLIENT, ftos(), GameCommand_defer_clear(), LOG_HELP, LOG_INFO, strcat(), and tokenize_console.
Referenced by SERVER_COMMAND().
Definition at line 584 of file sv_cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetMapname(), LOG_HELP, LOG_INFOF, race_deleteTime(), and stof().
Referenced by SERVER_COMMAND().
Definition at line 618 of file sv_cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, db_close(), db_create(), db_get(), db_put(), fgets(), FILE_READ, fopen(), ftos(), LOG_HELP, LOG_INFO, print_Effect_Index(), and tokenize_console.
Referenced by SERVER_COMMAND().
Definition at line 697 of file sv_cmd.qc.
References autocvar_timelimit_increment, autocvar_timelimit_max, autocvar_timelimit_min, changematchtime(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, and LOG_HELP.
Referenced by SERVER_COMMAND().
Definition at line 718 of file sv_cmd.qc.
References argv(), bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, getlsmaps(), LOG_HELP, LOG_INFOF, MapInfo_count, MapInfo_CurrentFeatures(), MapInfo_CurrentGametype(), MapInfo_FilterGametype(), MapInfo_ForbiddenFlags(), MapInfo_RequiredFlags(), MapInfo_SwitchGameType(), MapInfo_Type_FromString(), strunzone(), strzone(), and world_initialized.
Referenced by SERVER_COMMAND().
Definition at line 773 of file sv_cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), ftos(), gettagindex, gettaginfo, gettaginfo_forward, gettaginfo_name, gettaginfo_offset, gettaginfo_parent, gettaginfo_right, gettaginfo_up, localcmd, LOG_HELP, LOG_HELPF, LOG_INFO, LOG_INFOF, model, nextent(), NULL, spawn(), stof(), strcat(), substring(), v, vector(), vtos(), and weaponentities.
Referenced by SERVER_COMMAND().
Definition at line 896 of file sv_cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GotoMap(), LOG_HELP, LOG_INFO, LOG_INFOF, and world_initialized.
Referenced by SERVER_COMMAND().
Definition at line 926 of file sv_cmd.qc.
References bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, lockteams, LOG_HELP, and teamplay.
Referenced by SERVER_COMMAND().
Definition at line 1691 of file sv_cmd.qc.
References argv(), and FOREACH.
Referenced by GameCommand().
void GameCommand_macro_help | ( | ) |
Definition at line 1686 of file sv_cmd.qc.
References FOREACH, and LOG_HELPF.
Referenced by GameCommand().
Definition at line 1701 of file sv_cmd.qc.
References argv(), and FOREACH.
Referenced by GameCommand().
Definition at line 1711 of file sv_cmd.qc.
References CMD_Write_Alias, and FOREACH.
Referenced by GENERIC_COMMAND().
Definition at line 955 of file sv_cmd.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), LOG_HELP, make_mapinfo_Think(), MapInfo_Enumerate(), setthink, and time.
Referenced by SERVER_COMMAND().
Definition at line 981 of file sv_cmd.qc.
References argv(), bprint(), car(), cdr(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), etof(), ftos(), GetClientErrorString, GetFilteredEntity(), IS_OBSERVER, IS_SPEC, IsTeamAvailable(), LOG_HELP, LOG_INFO, LOG_INFOF, MoveToTeam(), Player_GetForcedTeamIndex(), Player_SetForcedTeamIndex(), PutObserverInServer(), strcat(), string_null, Team_ColoredFullName, Team_ColorToTeam(), TEAM_FORCE_DEFAULT, Team_IndexToTeam(), Team_TeamToIndex(), TeamBalance_CheckAllowedTeams(), TeamBalance_Destroy(), TeamBalance_FindBestTeam(), TeamBalance_IsTeamAllowed(), teamplay, and VerifyClientEntity().
Referenced by SERVER_COMMAND().
Definition at line 1127 of file sv_cmd.qc.
References autocvar_g_maxplayers_spectator_blocktime, blockSpectators, bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS(), FOREACH_CLIENT, ftos(), INGAME, IS_OBSERVER, IS_REAL_CLIENT, IS_SPEC, LOG_HELP, strcat(), and time.
Referenced by SERVER_COMMAND().
Definition at line 1153 of file sv_cmd.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, DumpStats(), LOG_HELP, and LOG_INFO.
Referenced by SERVER_COMMAND().
Definition at line 1174 of file sv_cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, LOG_HELP, LOG_INFOF, and RadarMap_Make().
Referenced by SERVER_COMMAND().
Definition at line 1196 of file sv_cmd.qc.
References autocvar_timelimit_decrement, autocvar_timelimit_max, autocvar_timelimit_min, changematchtime(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, and LOG_HELP.
Referenced by SERVER_COMMAND().
Definition at line 1314 of file sv_cmd.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, LOG_HELP, and ReadyRestart().
Referenced by SERVER_COMMAND().
Definition at line 1217 of file sv_cmd.qc.
References argv(), bot_fixcount(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_settemp(), LOG_HELP, and LOG_INFOF.
Referenced by SERVER_COMMAND().
Definition at line 1287 of file sv_cmd.qc.
References bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, LOG_HELP, shuffleteams(), and shuffleteams_on_reset_map.
Referenced by SERVER_COMMAND().
Definition at line 1334 of file sv_cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetCallerName(), GetClientErrorString, GetIndexedEntity(), LOG_HELP, LOG_INFO, LOG_INFOF, next_token, strcat(), stuffcmd, and VerifyClientEntity().
Referenced by SERVER_COMMAND().
Definition at line 1383 of file sv_cmd.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, entity(), error(), ftos(), LOG_HELP, LOG_INFO, LOG_INFOF, M_PI, MOVE_NOMONSTERS, MOVE_NORMAL, nextent(), normalize(), NULL, particleeffectnum, random(), randomvec(), rint(), stof(), stov(), trace_endpos, trace_fraction, trace_startsolid, tracewalk(), vector(), vlen(), vtos(), and world.
Referenced by SERVER_COMMAND().
Definition at line 1559 of file sv_cmd.qc.
References bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, lockteams, LOG_HELP, and teamplay.
Referenced by SERVER_COMMAND().
Definition at line 1588 of file sv_cmd.qc.
References argv(), autocvar_g_campaign, CampaignLevelWarp(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, LOG_HELP, LOG_INFO, and stof().
Referenced by SERVER_COMMAND().
Definition at line 31 of file sv_cmd.qc.
References _MapInfo_FilterGametype(), LOG_INFO, MapInfo_CurrentFeatures(), MapInfo_CurrentGametype(), MapInfo_FilterGametype(), MapInfo_ForbiddenFlags(), MapInfo_RequiredFlags(), MAPINFO_TYPE_ALL, nextthink, setthink, and time.
Referenced by GameCommand_make_mapinfo().
Definition at line 1654 of file sv_cmd.qc.
References GameCommand_adminmsg().
SERVER_COMMAND | ( | allready | , |
"Ends warmup and starts the match" | |||
) |
Definition at line 1655 of file sv_cmd.qc.
References GameCommand_allready().
Definition at line 1656 of file sv_cmd.qc.
References GameCommand_allspec().
SERVER_COMMAND | ( | anticheat | , |
"Create an anticheat report for a client" | |||
) |
Definition at line 1657 of file sv_cmd.qc.
References GameCommand_anticheat().
SERVER_COMMAND | ( | animbench | , |
"Benchmark model animation (LAGS)" | |||
) |
Definition at line 1658 of file sv_cmd.qc.
References GameCommand_animbench().
Definition at line 1659 of file sv_cmd.qc.
References GameCommand_bbox().
Definition at line 1660 of file sv_cmd.qc.
References GameCommand_bot_cmd().
Definition at line 1661 of file sv_cmd.qc.
References GameCommand_cointoss().
SERVER_COMMAND | ( | database | , |
"Extra controls of the serverprogs database" | |||
) |
Definition at line 1662 of file sv_cmd.qc.
References GameCommand_database().
SERVER_COMMAND | ( | defer_clear | , |
"Clear all queued defer commands for a specific client" | |||
) |
Definition at line 1663 of file sv_cmd.qc.
References GameCommand_defer_clear().
SERVER_COMMAND | ( | defer_clear_all | , |
"Clear all queued defer commands for all clients" | |||
) |
Definition at line 1664 of file sv_cmd.qc.
References GameCommand_defer_clear_all().
Definition at line 1665 of file sv_cmd.qc.
References GameCommand_delrec().
SERVER_COMMAND | ( | effectindexdump | , |
"Dump list of effects from code and effectinfo.txt" | |||
) |
Definition at line 1666 of file sv_cmd.qc.
References GameCommand_effectindexdump().
SERVER_COMMAND | ( | extendmatchtime | , |
"Increase the timelimit value incrementally" | |||
) |
Definition at line 1667 of file sv_cmd.qc.
References GameCommand_extendmatchtime().
Definition at line 1668 of file sv_cmd.qc.
References GameCommand_gametype().
SERVER_COMMAND | ( | gettaginfo | , |
"Get specific information about a weapon model" | |||
) |
Definition at line 1669 of file sv_cmd.qc.
References GameCommand_gettaginfo().
Definition at line 1670 of file sv_cmd.qc.
References GameCommand_gotomap().
Definition at line 1671 of file sv_cmd.qc.
References GameCommand_lockteams().
SERVER_COMMAND | ( | make_mapinfo | , |
"Automatically rebuild mapinfo files" | |||
) |
Definition at line 1672 of file sv_cmd.qc.
References GameCommand_make_mapinfo().
SERVER_COMMAND | ( | moveplayer | , |
"Change the team/status of a player" | |||
) |
Definition at line 1673 of file sv_cmd.qc.
References GameCommand_moveplayer().
SERVER_COMMAND | ( | nospectators | , |
"Automatically remove spectators from a match" | |||
) |
Definition at line 1674 of file sv_cmd.qc.
References GameCommand_nospectators().
SERVER_COMMAND | ( | printstats | , |
"Dump eventlog player stats and other score information" | |||
) |
Definition at line 1675 of file sv_cmd.qc.
References GameCommand_printstats().
SERVER_COMMAND | ( | radarmap | , |
"Generate a radar image of the map" | |||
) |
Definition at line 1676 of file sv_cmd.qc.
References GameCommand_radarmap().
SERVER_COMMAND | ( | reducematchtime | , |
"Decrease the timelimit value incrementally" | |||
) |
Definition at line 1677 of file sv_cmd.qc.
References GameCommand_reducematchtime().
SERVER_COMMAND | ( | resetmatch | , |
"Soft restart the game without changing teams; goes back to warmup if enabled" | |||
) |
Definition at line 1678 of file sv_cmd.qc.
References GameCommand_resetmatch().
SERVER_COMMAND | ( | setbots | , |
"Adjust how many bots are in the match" | |||
) |
Definition at line 1679 of file sv_cmd.qc.
References GameCommand_setbots().
SERVER_COMMAND | ( | shuffleteams | , |
"Randomly move players to different teams" | |||
) |
Definition at line 1680 of file sv_cmd.qc.
References GameCommand_shuffleteams().
SERVER_COMMAND | ( | stuffto | , |
"Send a command to be executed on a client" | |||
) |
Definition at line 1681 of file sv_cmd.qc.
References GameCommand_stuffto().
SERVER_COMMAND | ( | trace | , |
"Various debugging tools with tracing" | |||
) |
Definition at line 1682 of file sv_cmd.qc.
References GameCommand_trace().
Definition at line 1683 of file sv_cmd.qc.
References GameCommand_unlockteams().
SERVER_COMMAND | ( | warp | , |
"Choose different level in campaign" | |||
) |
Definition at line 1684 of file sv_cmd.qc.
References GameCommand_warp().
void shuffleteams | ( | ) |
Definition at line 1245 of file sv_cmd.qc.
References bprint(), entity(), Entity_GetTeamIndex(), FOREACH_CLIENT, FOREACH_CLIENT_RANDOM, INGAME, IS_PLAYER, LOG_INFO, max(), MoveToTeam(), NULL, NUM_TEAMS, Player_HasRealForcedTeam(), TeamBalance_CheckAllowedTeams(), TeamBalance_Destroy(), TeamBalance_IsTeamAllowed(), and teamplay.
Referenced by GameCommand_shuffleteams(), and reset_map().