Xonotic
|
Go to the source code of this file.
Macros | |
#define | COMMON_COMMAND(id, description) |
#define | GetClientErrorString(clienterror, original_input) GetClientErrorString_color(clienterror, original_input, "^7") |
Functions | |
COMMON_COMMAND (cvar_changes, "Prints a list of all changed server cvars") | |
COMMON_COMMAND (cvar_purechanges, "Prints a list of all changed gameplay cvars") | |
COMMON_COMMAND (editmob, "Modifies a monster or all monsters") | |
COMMON_COMMAND (info, "Request for unique server information set up by admin") | |
COMMON_COMMAND (ladder, "Get information about top players if supported") | |
COMMON_COMMAND (lsmaps, "List maps which can be used with the current game mode") | |
COMMON_COMMAND (printmaplist, "Display full server maplist reply") | |
COMMON_COMMAND (rankings, "Print information about rankings") | |
COMMON_COMMAND (records, "Print records for the current gametype") | |
COMMON_COMMAND (teamstatus, "Show information about player and team scores") | |
COMMON_COMMAND (time, "Print different formats/readouts of time") | |
COMMON_COMMAND (timein, "Resume the game from being paused with a timeout") | |
COMMON_COMMAND (timeout, "Call a timeout which pauses the game for certain amount of time unless unpaused") | |
COMMON_COMMAND (vote, "Request an action to be voted upon by players") | |
COMMON_COMMAND (who, "Display detailed client information about all players") | |
void | CommonCommand_cvar_changes (int request, entity caller) |
void | CommonCommand_cvar_purechanges (int request, entity caller) |
void | CommonCommand_editmob (int request, entity caller, int argc) |
void | CommonCommand_info (int request, entity caller, int argc) |
void | CommonCommand_ladder (int request, entity caller) |
void | CommonCommand_lsmaps (int request, entity caller) |
float | CommonCommand_macro_command (int argc, entity caller, string command) |
void | CommonCommand_macro_help (entity caller) |
float | CommonCommand_macro_usage (int argc, entity caller) |
void | CommonCommand_macro_write_aliases (float fh) |
void | CommonCommand_printmaplist (int request, entity caller) |
void | CommonCommand_rankings (int request, entity caller) |
void | CommonCommand_records (int request, entity caller) |
void | CommonCommand_teamstatus (int request, entity caller) |
void | CommonCommand_time (int request, entity caller) |
void | CommonCommand_timein (int request, entity caller) |
void | CommonCommand_timeout (int request, entity caller) |
void | CommonCommand_who (int request, entity caller, int argc) |
string | GetCallerName (entity caller) |
string | GetClientErrorString_color (float clienterror, string original_input, string col) |
string | GetCommandPrefix (entity caller) |
entity | GetFilteredEntity (string input) |
entity | GetIndexedEntity (int argc, float start_index) |
void | print_to (entity to, string input) |
STATIC_INIT (COMMON_COMMANDS_aliases) | |
void | timeout_handler_reset (entity this) |
void | timeout_handler_think (entity this) |
float | VerifyClientEntity (entity client, float must_be_real, float must_be_bots) |
float | VerifyClientNumber (float tmp_number) |
float | VerifyKickableEntity (entity client) |
Variables | |
float | allowed_timeouts |
string | autocvar_sv_adminnick |
bool | autocvar_sv_status_privacy |
bool | autocvar_sv_timeout |
float | autocvar_sv_timeout_leadtime |
float | autocvar_sv_timeout_length |
int | autocvar_sv_timeout_number |
float | autocvar_sv_timeout_resumetime |
const float | CLIENT_ACCEPTABLE = 1 |
const float | CLIENT_DOESNT_EXIST = -1 |
const float | CLIENT_NOT_BOT = -3 |
const float | CLIENT_NOT_REAL = -2 |
vector | lastV_angle |
float | next_token |
float | orig_slowmo |
float | sys_frametime |
const float | TIMEOUT_ACTIVE = 2 |
entity | timeout_caller |
entity | timeout_handler |
const float | TIMEOUT_INACTIVE = 0 |
const float | TIMEOUT_LEADTIME = 1 |
float | timeout_leadtime |
const float | TIMEOUT_SLOWMO_VALUE = 0.0001 |
float | timeout_time |
#define COMMON_COMMAND | ( | id, | |
description | |||
) |
#define GetClientErrorString | ( | clienterror, | |
original_input | |||
) | GetClientErrorString_color(clienterror, original_input, "^7") |
Definition at line 87 of file common.qh.
Referenced by BanCommand_kickban(), BanCommand_mute(), BanCommand_unmute(), ClientCommand_tell(), GameCommand_adminmsg(), GameCommand_anticheat(), GameCommand_defer_clear(), GameCommand_moveplayer(), GameCommand_stuffto(), and VoteCommand_parse().
COMMON_COMMAND | ( | cvar_changes | , |
"Prints a list of all changed server cvars" | |||
) |
Definition at line 147 of file common.qh.
References CommonCommand_cvar_changes().
COMMON_COMMAND | ( | cvar_purechanges | , |
"Prints a list of all changed gameplay cvars" | |||
) |
Definition at line 148 of file common.qh.
References CommonCommand_cvar_purechanges().
COMMON_COMMAND | ( | editmob | , |
"Modifies a monster or all monsters" | |||
) |
Definition at line 149 of file common.qh.
References CommonCommand_editmob().
COMMON_COMMAND | ( | info | , |
"Request for unique server information set up by admin" | |||
) |
Definition at line 150 of file common.qh.
References CommonCommand_info().
Definition at line 151 of file common.qh.
References CommonCommand_ladder().
COMMON_COMMAND | ( | lsmaps | , |
"List maps which can be used with the current game mode" | |||
) |
Definition at line 152 of file common.qh.
References CommonCommand_lsmaps().
COMMON_COMMAND | ( | printmaplist | , |
"Display full server maplist reply" | |||
) |
Definition at line 153 of file common.qh.
References CommonCommand_printmaplist().
COMMON_COMMAND | ( | rankings | , |
"Print information about rankings" | |||
) |
Definition at line 154 of file common.qh.
References CommonCommand_rankings().
Definition at line 155 of file common.qh.
References CommonCommand_records().
Definition at line 156 of file common.qh.
References CommonCommand_teamstatus().
Definition at line 157 of file common.qh.
References CommonCommand_time().
COMMON_COMMAND | ( | timein | , |
"Resume the game from being paused with a timeout" | |||
) |
Definition at line 158 of file common.qh.
References CommonCommand_timein().
COMMON_COMMAND | ( | timeout | , |
"Call a timeout which pauses the game for certain amount of time unless unpaused" | |||
) |
Definition at line 159 of file common.qh.
References CommonCommand_timeout().
Definition at line 160 of file common.qh.
References VoteCommand().
COMMON_COMMAND | ( | who | , |
"Display detailed client information about all players" | |||
) |
Definition at line 161 of file common.qh.
References CommonCommand_who().
Definition at line 276 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_changes, GetCommandPrefix(), print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 297 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_purechanges, GetCommandPrefix(), print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 318 of file common.qc.
References argv(), autocvar_g_campaign, autocvar_g_monsters, autocvar_g_monsters_edit, autocvar_g_monsters_max, autocvar_g_monsters_max_perplayer, CENTER_OR_VIEWOFS, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, Damage(), DMG_NOWEP, entity(), FOREACH, ftos(), g_monsters, GetCommandPrefix(), GetResource(), IL_CLEAR, IL_EACH, IS_DEAD, IS_MONSTER, IS_PLAYER, LOG_INFO, M_ARGV, makevectors, Monster_Remove(), monsters_killed, monsters_total, MOVE_NORMAL, MUTATOR_CALLHOOK, NULL, print_to(), RES_HEALTH, spawn(), spawnmonster(), stof(), strcat(), totalspawned, trace_endpos, trace_ent, v_forward, WarpZone_TraceBox(), and WarpZone_TraceLine().
Referenced by COMMON_COMMAND().
Definition at line 465 of file common.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_string(), GetCommandPrefix(), print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 489 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetCommandPrefix(), print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 509 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetCommandPrefix(), print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 168 of file common.qh.
References argv(), and FOREACH.
Referenced by GameCommand(), and SV_ParseClientCommand().
Definition at line 163 of file common.qh.
References FOREACH, and print_to().
Referenced by GameCommand(), and SV_ParseClientCommand().
Definition at line 178 of file common.qh.
References argv(), and FOREACH.
Referenced by GameCommand(), and SV_ParseClientCommand().
Definition at line 188 of file common.qh.
References CMD_Write_Alias, and FOREACH.
Referenced by GENERIC_COMMAND().
Definition at line 529 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetCommandPrefix(), print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 549 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetCommandPrefix(), print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 569 of file common.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetCommandPrefix(), print_to(), stoi, and strcat().
Referenced by COMMON_COMMAND().
Definition at line 598 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetCommandPrefix(), print_to(), Score_NicePrint(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 618 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, ftos(), GetCommandPrefix(), gettime(), GETTIME_FRAMESTART, GETTIME_HIRES, GETTIME_REALTIME, GETTIME_UPTIME, print_to(), strcat(), and time.
Referenced by COMMON_COMMAND().
Definition at line 644 of file common.qc.
References autocvar_sv_timeout, autocvar_sv_timeout_resumetime, bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetCallerName(), GetCommandPrefix(), LOG_TRACE, NULL, print_to(), strcat(), time, TIMEOUT_ACTIVE, timeout_caller, timeout_handler, TIMEOUT_INACTIVE, TIMEOUT_LEADTIME, and timeout_time.
Referenced by COMMON_COMMAND().
Definition at line 700 of file common.qc.
References allowed_timeouts, autocvar_g_warmup_allow_timeout, autocvar_sv_timeout, autocvar_sv_timeout_leadtime, autocvar_sv_timeout_length, bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS(), ftos(), GetCallerName(), GetCommandPrefix(), IS_PLAYER, NULL, print_to(), setthink, strcat(), time, timeout_caller, timeout_handler, timeout_handler_think(), TIMEOUT_LEADTIME, timeout_leadtime, timeout_time, vote_called, and warmup_stage.
Referenced by COMMON_COMMAND().
Definition at line 769 of file common.qc.
References argv(), autocvar_sv_status_privacy, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS(), etof(), FOREACH_CLIENT, ftos(), GetCommandPrefix(), IS_BOT_CLIENT, jointime, maxclients, ping, ping_packetloss, print_to(), process_time(), strcat(), and time.
Referenced by COMMON_COMMAND().
Definition at line 33 of file common.qc.
References autocvar_sv_adminnick.
Referenced by CommonCommand_timein(), CommonCommand_timeout(), GameCommand_adminmsg(), GameCommand_stuffto(), VoteCommand_call(), VoteCommand_master(), and VoteStop().
Definition at line 57 of file common.qc.
References CLIENT_DOESNT_EXIST, CLIENT_NOT_BOT, CLIENT_NOT_REAL, and strcat().
Definition at line 26 of file common.qc.
Referenced by CommonCommand_cvar_changes(), CommonCommand_cvar_purechanges(), CommonCommand_editmob(), CommonCommand_info(), CommonCommand_ladder(), CommonCommand_lsmaps(), CommonCommand_printmaplist(), CommonCommand_rankings(), CommonCommand_records(), CommonCommand_teamstatus(), CommonCommand_time(), CommonCommand_timein(), CommonCommand_timeout(), CommonCommand_who(), VoteCommand(), VoteCommand_abstain(), VoteCommand_call(), VoteCommand_macro_help(), VoteCommand_master(), VoteCommand_no(), VoteCommand_status(), VoteCommand_stop(), and VoteCommand_yes().
Definition at line 144 of file common.qc.
References entity(), FOREACH_CLIENT, NULL, stof(), substring(), and VerifyClientNumber().
Referenced by BanCommand_mute(), BanCommand_unmute(), ClientCommand_spectate(), GameCommand_adminmsg(), and GameCommand_moveplayer().
Definition at line 83 of file common.qc.
References argv(), entity(), FOREACH_CLIENT, next_token, NULL, stof(), substring(), and VerifyClientNumber().
Referenced by BanCommand_kickban(), ClientCommand_minigame(), ClientCommand_tell(), GameCommand_anticheat(), GameCommand_defer_clear(), GameCommand_stuffto(), and VoteCommand_parse().
Definition at line 172 of file common.qc.
References print(), sprint(), and strcat().
Referenced by ClientCommand_tell(), CommonCommand_cvar_changes(), CommonCommand_cvar_purechanges(), CommonCommand_editmob(), CommonCommand_info(), CommonCommand_ladder(), CommonCommand_lsmaps(), CommonCommand_macro_help(), CommonCommand_printmaplist(), CommonCommand_rankings(), CommonCommand_records(), CommonCommand_teamstatus(), CommonCommand_time(), CommonCommand_timein(), CommonCommand_timeout(), CommonCommand_who(), MUTATOR_HOOKFUNCTION(), print_available_commands_to(), sandbox_ObjectSpawn(), Score_NicePrint_Player(), Score_NicePrint_Spectator(), Score_NicePrint_Spectators(), Score_NicePrint_Team(), ValidateMap(), VoteCommand(), VoteCommand_abstain(), VoteCommand_call(), VoteCommand_macro_help(), VoteCommand_master(), VoteCommand_no(), VoteCommand_parse(), VoteCommand_status(), VoteCommand_stop(), VoteCommand_yes(), and VoteCount().
STATIC_INIT | ( | COMMON_COMMANDS_aliases | ) |
Definition at line 183 of file common.qc.
References NULL, timeout_caller, timeout_leadtime, and timeout_time.
Referenced by timeout_handler_think().
Definition at line 192 of file common.qc.
References autocvar_sv_timeout_resumetime, cvar_set(), FOREACH_CLIENT, ftos(), IS_PLAYER, IS_REAL_CLIENT, nextthink, NULL, orig_slowmo, time, TIMEOUT_ACTIVE, timeout_handler_reset(), TIMEOUT_INACTIVE, TIMEOUT_LEADTIME, timeout_leadtime, TIMEOUT_SLOWMO_VALUE, and timeout_time.
Referenced by CommonCommand_timeout().
Definition at line 47 of file common.qc.
References CLIENT_ACCEPTABLE, CLIENT_DOESNT_EXIST, CLIENT_NOT_BOT, CLIENT_NOT_REAL, IS_BOT_CLIENT, IS_CLIENT, and IS_REAL_CLIENT.
Referenced by BanCommand_mute(), BanCommand_unmute(), ClientCommand_spectate(), ClientCommand_tell(), GameCommand_adminmsg(), GameCommand_anticheat(), GameCommand_defer_clear(), GameCommand_moveplayer(), GameCommand_stuffto(), invite_minigame(), and VoteCommand_parse().
Definition at line 77 of file common.qc.
References maxclients.
Referenced by GetFilteredEntity(), and GetIndexedEntity().
Definition at line 40 of file common.qc.
References CLIENT_ACCEPTABLE, CLIENT_NOT_REAL, and IS_REAL_CLIENT.
Referenced by BanCommand_kickban().
float allowed_timeouts |
Definition at line 61 of file common.qh.
Referenced by CommonCommand_timeout().
string autocvar_sv_adminnick |
Definition at line 3 of file common.qh.
Referenced by GetCallerName().
bool autocvar_sv_status_privacy |
Definition at line 4 of file common.qh.
Referenced by CommonCommand_who().
bool autocvar_sv_timeout |
Definition at line 5 of file common.qh.
Referenced by CommonCommand_timein(), CommonCommand_timeout(), and ReadyRestart_force().
float autocvar_sv_timeout_leadtime |
Definition at line 6 of file common.qh.
Referenced by CommonCommand_timeout().
float autocvar_sv_timeout_length |
Definition at line 7 of file common.qh.
Referenced by CommonCommand_timeout().
int autocvar_sv_timeout_number |
Definition at line 8 of file common.qh.
Referenced by ClientConnect(), and ReadyRestart_force().
float autocvar_sv_timeout_resumetime |
Definition at line 9 of file common.qh.
Referenced by CommonCommand_timein(), and timeout_handler_think().
const float CLIENT_ACCEPTABLE = 1 |
Definition at line 41 of file common.qh.
Referenced by VerifyClientEntity(), and VerifyKickableEntity().
const float CLIENT_DOESNT_EXIST = -1 |
Definition at line 42 of file common.qh.
Referenced by GetClientErrorString_color(), and VerifyClientEntity().
const float CLIENT_NOT_BOT = -3 |
Definition at line 44 of file common.qh.
Referenced by GetClientErrorString_color(), and VerifyClientEntity().
const float CLIENT_NOT_REAL = -2 |
Definition at line 43 of file common.qh.
Referenced by GetClientErrorString_color(), VerifyClientEntity(), and VerifyKickableEntity().
vector lastV_angle |
Definition at line 62 of file common.qh.
Referenced by PlayerThink().
float next_token |
Definition at line 71 of file common.qh.
Referenced by BanCommand_kickban(), ClientCommand_tell(), GameCommand_stuffto(), GetIndexedEntity(), and VoteCommand_parse().
float orig_slowmo |
Definition at line 58 of file common.qh.
Referenced by Shutdown(), StartFrame(), and timeout_handler_think().
float sys_frametime |
Definition at line 57 of file common.qh.
Referenced by anticheat_physics(), CSQCProjectile_SendEntity(), Monster_Spawn(), onslaught_controlpoint_icon_link(), pathlib_astar(), PingPLReport_Think(), StartFrame(), and SUB_NoImpactCheck().
const float TIMEOUT_ACTIVE = 2 |
Definition at line 49 of file common.qh.
Referenced by CommonCommand_timein(), ImpulseCommands(), PlayerThink(), Say(), Shutdown(), timeout_handler_think(), and weapon_prepareattack_check().
entity timeout_caller |
Definition at line 55 of file common.qh.
Referenced by CommonCommand_timein(), CommonCommand_timeout(), and timeout_handler_reset().
entity timeout_handler |
Definition at line 56 of file common.qh.
Referenced by CommonCommand_timein(), and CommonCommand_timeout().
const float TIMEOUT_INACTIVE = 0 |
Definition at line 47 of file common.qh.
Referenced by CommonCommand_timein(), and timeout_handler_think().
const float TIMEOUT_LEADTIME = 1 |
Definition at line 48 of file common.qh.
Referenced by CommonCommand_timein(), CommonCommand_timeout(), StartFrame(), and timeout_handler_think().
float timeout_leadtime |
Definition at line 60 of file common.qh.
Referenced by CommonCommand_timeout(), timeout_handler_reset(), and timeout_handler_think().
const float TIMEOUT_SLOWMO_VALUE = 0.0001 |
Definition at line 52 of file common.qh.
Referenced by timeout_handler_think().
float timeout_time |
Definition at line 59 of file common.qh.
Referenced by CommonCommand_timein(), CommonCommand_timeout(), timeout_handler_reset(), and timeout_handler_think().