|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | COMMON_COMMAND(id, description) |
| #define | GetClientErrorString(clienterror, original_input) |
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 gametype") | |
| 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 (int 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 (int clienterror, string original_input, string col) |
| string | GetCommandPrefix (entity caller) |
| entity | GetFilteredEntity (string input) |
| entity | GetIndexedEntity (int argc, int 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) |
| int | VerifyClientEntity (entity client, bool must_be_real, bool must_be_bots) |
| bool | VerifyClientNumber (int num) |
| int | 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 |
| int | 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 ) |
Definition at line 18 of file common.qh.
| #define GetClientErrorString | ( | clienterror, | |
| original_input ) |
Definition at line 87 of file common.qh.
Referenced by BanCommand_kickban(), BanCommand_mute(), BanCommand_playban(), BanCommand_unmute(), BanCommand_unplayban(), BanCommand_unvoteban(), BanCommand_voteban(), ClientCommand_ignore(), ClientCommand_tell(), ClientCommand_unignore(), 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(), and 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(), and 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 gametype" | ) |
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().
| COMMON_COMMAND | ( | records | , |
| "Print records for the current gametype" | ) |
Definition at line 155 of file common.qh.
References CommonCommand_records().
| COMMON_COMMAND | ( | teamstatus | , |
| "Show information about player and team scores" | ) |
Definition at line 156 of file common.qh.
References CommonCommand_teamstatus().
| COMMON_COMMAND | ( | time | , |
| "Print different formats/readouts of time" | ) |
Definition at line 157 of file common.qh.
References CommonCommand_time(), and 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().
| COMMON_COMMAND | ( | vote | , |
| "Request an action to be voted upon by players" | ) |
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 272 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_changes, entity(), GetCommandPrefix(), print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 293 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_purechanges, entity(), GetCommandPrefix(), print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 314 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(), monsterlist_reply, monsters_killed, monsters_total, MOVE_NORMAL, MUTATOR_CALLHOOK, NULL, print_to(), spawn, spawnmonster(), stof(), strcat(), strtolower(), totalspawned, trace_endpos, trace_ent, v_forward, WarpZone_TraceBox(), WarpZone_TraceLine(), and WaypointSprite_UpdateSprites().
Referenced by COMMON_COMMAND().
Definition at line 460 of file common.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_string(), entity(), GetCommandPrefix(), print_to(), strcat(), and wordwrap_sprint().
Referenced by COMMON_COMMAND().
Definition at line 484 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetCommandPrefix(), ladder_reply, print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 504 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetCommandPrefix(), lsmaps_reply, print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 168 of file common.qh.
References argv(), entity(), FOREACH, and strtolower().
Referenced by GameCommand(), and SV_ParseClientCommand().
Definition at line 163 of file common.qh.
References entity(), FOREACH, and print_to().
Referenced by GameCommand(), and SV_ParseClientCommand().
Definition at line 178 of file common.qh.
References argv(), entity(), FOREACH, and strtolower().
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 524 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetCommandPrefix(), maplist_reply, print_to(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 544 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetCommandPrefix(), print_to(), rankings_reply, and strcat().
Referenced by COMMON_COMMAND().
Definition at line 564 of file common.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetCommandPrefix(), print_to(), records_reply, stoi, and strcat().
Referenced by COMMON_COMMAND().
Definition at line 593 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetCommandPrefix(), print_to(), Score_NicePrint(), and strcat().
Referenced by COMMON_COMMAND().
Definition at line 613 of file common.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), ftos(), GetCommandPrefix(), gettime(), GETTIME_FRAMESTART, GETTIME_HIRES, GETTIME_REALTIME, GETTIME_UPTIME, print_to(), strcat(), and time.
Referenced by COMMON_COMMAND().
Definition at line 639 of file common.qc.
References autocvar_sv_timeout, autocvar_sv_timeout_resumetime, bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetCallerName(), GetCommandPrefix(), Kill_Notification(), LOG_TRACE, NULL, print_to(), strcat(), time, TIMEOUT_ACTIVE, timeout_caller, timeout_handler, TIMEOUT_INACTIVE, TIMEOUT_LEADTIME, timeout_status, and timeout_time.
Referenced by COMMON_COMMAND().
Definition at line 695 of file common.qc.
References allowed_timeouts, autocvar_g_warmup_allow_timeout, autocvar_sv_timeout, autocvar_sv_timeout_leadtime, autocvar_sv_timeout_length, autocvar_timelimit, bprint(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS(), entity(), ftos(), game_starttime, GetCallerName(), GetCommandPrefix(), IS_PLAYER, NULL, print_to(), Send_Notification(), setthink, strcat(), time, timeout_caller, timeout_handler, timeout_handler_think(), TIMEOUT_LEADTIME, timeout_leadtime, timeout_status, timeout_time, vote_called, and warmup_stage.
Referenced by COMMON_COMMAND().
Definition at line 764 of file common.qc.
References argv(), autocvar_sv_status_privacy, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS(), entity(), 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, entity(), and playername().
Referenced by BanCommand_mute(), BanCommand_playban(), BanCommand_unmute(), BanCommand_unplayban(), BanCommand_unvoteban(), BanCommand_voteban(), CommonCommand_timein(), CommonCommand_timeout(), GameCommand_adminmsg(), GameCommand_stuffto(), MUTATOR_HOOKFUNCTION(), VoteCommand_call(), VoteCommand_master(), and VoteStop().
Definition at line 26 of file common.qc.
References entity().
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 143 of file common.qc.
References entity(), FOREACH_CLIENT, NULL, stof(), substring(), and VerifyClientNumber().
Referenced by ClientCommand_spectate(), GameCommand_adminmsg(), and GameCommand_moveplayer().
Definition at line 82 of file common.qc.
References argv(), entity(), FOREACH_CLIENT, next_token, NULL, stof(), substring(), and VerifyClientNumber().
Referenced by BanCommand_kickban(), BanCommand_mute(), BanCommand_playban(), BanCommand_unmute(), BanCommand_unplayban(), BanCommand_unvoteban(), BanCommand_voteban(), ClientCommand_ignore(), ClientCommand_minigame(), ClientCommand_tell(), ClientCommand_unignore(), GameCommand_anticheat(), GameCommand_defer_clear(), GameCommand_stuffto(), and VoteCommand_parse().
Definition at line 171 of file common.qc.
References entity(), print(), sprint(), and strcat().
Referenced by ClientCommand_ignore(), ClientCommand_macro_help(), ClientCommand_tell(), ClientCommand_unignore(), 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 182 of file common.qc.
References entity(), NULL, ReadyCount(), timeout_caller, timeout_leadtime, timeout_time, and warmup_stage.
Referenced by timeout_handler_think().
Definition at line 195 of file common.qc.
References autocvar_sv_timeout_resumetime, cvar_set(), entity(), FOREACH_CLIENT, ftos(), IS_PLAYER, IS_REAL_CLIENT, Kill_Notification(), nextthink, NULL, orig_slowmo, Send_Notification(), time, TIMEOUT_ACTIVE, timeout_handler_reset(), TIMEOUT_INACTIVE, TIMEOUT_LEADTIME, timeout_leadtime, TIMEOUT_SLOWMO_VALUE, timeout_status, 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, entity(), IS_BOT_CLIENT, IS_CLIENT, and IS_REAL_CLIENT.
Referenced by BanCommand_mute(), BanCommand_playban(), BanCommand_unmute(), BanCommand_unplayban(), BanCommand_unvoteban(), BanCommand_voteban(), ClientCommand_ignore(), ClientCommand_spectate(), ClientCommand_tell(), ClientCommand_unignore(), 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, entity(), 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().
| int 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(), onslaught_controlpoint_icon_link(), pathlib_astar(), PingPLReport_Think(), racer_fire_rocket(), racer_rocket_groundhugger(), racer_rocket_tracker(), StartFrame(), SUB_NoImpactCheck(), turret_aim_generic(), and W_OverkillRocketPropelledChainsaw_Think().
| const float TIMEOUT_ACTIVE = 2 |
Definition at line 49 of file common.qh.
Referenced by CommonCommand_timein(), ImpulseCommands(), PlayerThink(), Shutdown(), timeout_handler_think(), W_Hagar_Attack2_Load(), 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().