|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "generic.qh"#include <client/command/cl_cmd.qh>#include <common/command/_mod.qh>#include <common/command/markup.qh>#include <common/command/reg.qh>#include <common/command/rpn.qh>#include <common/mapinfo.qh>#include <common/notifications/all.qh>Go to the source code of this file.
Functions | |
| void | Curl_URI_Get_Callback (int id, float status, string data) |
| GENERIC_COMMAND (addtolist, "Add a string to a cvar", true) | |
| GENERIC_COMMAND (dumpcommands, "Dump all commands on the program to <program>_cmd_dump.txt", false) | |
| GENERIC_COMMAND (maplist, "Automatic control of maplist", true) | |
| GENERIC_COMMAND (nextframe, "Execute the given command next frame of this VM", true) | |
| GENERIC_COMMAND (qc_curl, "Queries a URL", true) | |
| GENERIC_COMMAND (removefromlist, "Remove a string from a cvar", true) | |
| GENERIC_COMMAND (restartnotifs, "Re-initialize all notifications", false) | |
| GENERIC_COMMAND (rpn, "RPN calculator", true) | |
| GENERIC_COMMAND (runtest, "Run unit tests", false) | |
| GENERIC_COMMAND (settemp, "Temporarily set a value to a cvar which is restored later", false) | |
| GENERIC_COMMAND (settemp_restore, "Restore all cvars set by settemp command", false) | |
| float | GenericCommand (string command) |
| void | GenericCommand_addtolist (int request, int argc) |
| float | GenericCommand_macro_command (int argc, string command) |
| void | GenericCommand_macro_help () |
| float | GenericCommand_macro_usage (int argc) |
| void | GenericCommand_macro_write_aliases (float fh) |
| void | GenericCommand_maplist (int request, int argc) |
| void | GenericCommand_nextframe (int request, string command) |
| void | GenericCommand_qc_curl (int request, int argc) |
| void | GenericCommand_removefromlist (int request, int argc) |
| void | GenericCommand_restartnotifs (int request) |
| void | GenericCommand_runtest (int request, int argc) |
| void | GenericCommand_settemp (int request, int argc) |
| void | GenericCommand_settemp_restore (int request) |
| string | maplist_shuffle (string input) |
Definition at line 31 of file generic.qc.
References curl_uri_get_cvar, curl_uri_get_exec, cvar_set(), localcmd(), LOG_INFO, LOG_TRACEF, strunzone(), and URI_GET_CURL.
Referenced by URI_Get_Callback(), and URI_Get_Callback().
Definition at line 556 of file generic.qc.
References GenericCommand_addtolist().
| GENERIC_COMMAND | ( | dumpcommands | , |
| "Dump all commands on the program to <program>_cmd_dump.txt" | , | ||
| false | ) |
Definition at line 172 of file generic.qc.
References BanCommand_macro_write_aliases(), ClientCommand_macro_write_aliases(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CMD_Write, CommonCommand_macro_write_aliases(), fclose(), FILE_WRITE, fopen(), GameCommand_macro_write_aliases(), GenericCommand_macro_write_aliases(), GetProgramCommandPrefix, LocalCommand_macro_write_aliases(), LOG_HELP, LOG_INFO, and strcat().
| GENERIC_COMMAND | ( | maplist | , |
| "Automatic control of maplist" | , | ||
| true | ) |
Definition at line 557 of file generic.qc.
References GenericCommand_maplist().
Definition at line 558 of file generic.qc.
References GenericCommand_nextframe().
| GENERIC_COMMAND | ( | qc_curl | , |
| "Queries a URL" | , | ||
| true | ) |
Definition at line 559 of file generic.qc.
References GenericCommand_qc_curl().
Definition at line 560 of file generic.qc.
References GenericCommand_removefromlist().
| GENERIC_COMMAND | ( | restartnotifs | , |
| "Re-initialize all notifications" | , | ||
| false | ) |
Definition at line 561 of file generic.qc.
References GenericCommand_restartnotifs().
| GENERIC_COMMAND | ( | rpn | , |
| "RPN calculator" | , | ||
| true | ) |
Definition at line 562 of file generic.qc.
References GenericCommand_rpn().
| GENERIC_COMMAND | ( | runtest | , |
| "Run unit tests" | , | ||
| false | ) |
Definition at line 565 of file generic.qc.
References GenericCommand_runtest().
Definition at line 563 of file generic.qc.
References GenericCommand_settemp().
| GENERIC_COMMAND | ( | settemp_restore | , |
| "Restore all cvars set by settemp command" | , | ||
| false | ) |
Definition at line 564 of file generic.qc.
References GenericCommand_settemp_restore().
Definition at line 603 of file generic.qc.
References argv(), argv_end_index, argv_start_index, floor(), GenericCommand_macro_command(), GenericCommand_markup(), hsl_to_rgb(), localcmd(), max(), random(), rgb_to_hexcolor(), s2, strcat(), strlen, substring(), tokenize_console, and vector.
Referenced by GameCommand(), and GameCommand().
Definition at line 60 of file generic.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cons(), cvar_set(), cvar_string(), FOREACH_WORD, GetProgramCommandPrefix, LOG_HELP, and LOG_INFOF.
Referenced by GENERIC_COMMAND().
Definition at line 572 of file generic.qc.
References argv(), FOREACH, and strtolower().
Referenced by GenericCommand().
| void GenericCommand_macro_help | ( | ) |
Definition at line 567 of file generic.qc.
References FOREACH, and LOG_HELPF.
Referenced by GameCommand(), and GameCommand().
Definition at line 582 of file generic.qc.
References argv(), FOREACH, and strtolower().
Referenced by GameCommand().
Definition at line 592 of file generic.qc.
References CMD_Write_Alias, and FOREACH.
Referenced by GENERIC_COMMAND().
Definition at line 251 of file generic.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cons(), cvar_set(), cvar_string(), fexists(), FOREACH_WORD, GetProgramCommandPrefix, LOG_HELP, LOG_INFO, LOG_INFOF, MapInfo_CheckMap(), MapInfo_CurrentFeatures(), MapInfo_CurrentGametype(), MapInfo_Enumerate(), MapInfo_FilterGametype(), MapInfo_ForbiddenFlags(), MapInfo_RequiredFlags(), maplist_shuffle(), strcat(), strlen, substring(), and tokenizebyseparator.
Referenced by GENERIC_COMMAND().
Definition at line 336 of file generic.qc.
References argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetProgramCommandPrefix, LOG_HELP, queue_to_execute_next_frame(), and substring().
Referenced by GENERIC_COMMAND().
Definition at line 100 of file generic.qc.
References argv(), buf_create, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, curl_uri_get_cvar, curl_uri_get_exec, curl_uri_get_pos, GetProgramCommandPrefix, LOG_HELP, LOG_INFO, stof(), string_null, strzone(), URI_GET_CURL, and URI_GET_CURL_END.
Referenced by GENERIC_COMMAND().
Definition at line 356 of file generic.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cons(), cvar_set(), cvar_string(), FOREACH_WORD, GetProgramCommandPrefix, LOG_HELP, and LOG_INFOF.
Referenced by GENERIC_COMMAND().
Definition at line 391 of file generic.qc.
References CALL_ACCUMULATED_FUNCTION, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, Destroy_All_Notifications(), FOREACH, GetProgramCommandPrefix, LOG_HELP, LOG_INFO, and LOG_INFOF.
Referenced by GENERIC_COMMAND().
Definition at line 506 of file generic.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetProgramCommandPrefix, LOG_HELP, RUN_ALL_TESTS(), and TEST_Run().
Referenced by GENERIC_COMMAND().
Definition at line 448 of file generic.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_settemp(), GetProgramCommandPrefix, LOG_HELP, LOG_INFOF, and LOG_TRACE.
Referenced by GENERIC_COMMAND().
Definition at line 479 of file generic.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_settemp_restore(), ftos(), GetProgramCommandPrefix, LOG_HELP, and LOG_TRACE.
Referenced by GENERIC_COMMAND().
Definition at line 232 of file generic.qc.
References buf_create, floor(), FOREACH_WORD, random(), and substring().
Referenced by GenericCommand_maplist().