51 blurtest_time0 =
time;
62 LOG_HELP(
"Usage:^3 cl_cmd blurtest");
70 LOG_INFO(
"Blurtest is not enabled on this client.");
78 TC(
int, request);
TC(
int, argc);
85 int effect = _particleeffectnum(
argv(1));
91 own = entitybyindex(-index);
100 boxparticles(effect, own, org_from, org_to, dir_from, dir_to, countmultiplier,
flags);
111 "Usage:^3 cl_cmd boxparticles <effectname> <owner> <org_from> <org_to> <dir_from> <dir_to> <countmultiplier> <flags>\n"
112 " <effectname> is the name of a particle effect in effectinfo.txt\n"
113 " <owner> is the entity number of the owner (negative for csqc ent, positive for svqc ent)\n"
114 " <org_from> is the starting origin of the box\n"
115 " <org_to> is the ending origin of the box\n"
116 " <dir_from> is the minimum velocity\n"
117 " <dir_to> is the maximum velocity\n"
118 " <countmultiplier> defines a multiplier for the particle count (affects count only, not countabsolute or trailspacing)\n"
119 " <flags> can contain:\n"
120 " 1 to respect globals particles_alphamin, particles_alphamax (set right before via prvm_globalset client)\n"
121 " 2 to respect globals particles_colormin, particles_colormax (set right before via prvm_globalset client)\n"
122 " 4 to respect globals particles_fade (set right before via prvm_globalset client)\n"
123 " 128 to draw a trail, not a box"
144 fputs(fh,
strcat(
"\"classname\" \"info_autoscreenshot\"\n"));
155 LOG_INFO(
"^1Error: ^7Could not dump to file!");
163 LOG_HELP(
"Usage:^3 cl_cmd create_scrshot_ent [<path>]");
164 LOG_HELP(
" Where <path> can be the subdirectory of data/data in which the file is saved.");
172 TC(
int, request);
TC(
int, argc);
177 string modelname =
argv(1);
181 entity debugmodel_entity =
new(debugmodel);
182 precache_model(modelname);
183 _setmodel(debugmodel_entity, modelname);
196 LOG_HELP(
"Usage:^3 cl_cmd debugmodel <model>");
197 LOG_HELP(
" Where <model> is a string of the model name to use for the debug model.");
205 TC(
int, request);
TC(
int, argc);
244 LOG_HELP(
"Usage:^3 cl_cmd handlevote <vote>");
245 LOG_HELP(
" Where <vote> is the selection for either the current poll or uid2name.");
253 TC(
int, request);
TC(
int, argc);
271 if (
argv(2) ==
"help")
273 LOG_HELP(
" quickmenu [[default | file | \"\"] <submenu> <filename>]");
274 LOG_HELP(
"Called without options (or with \"\") loads either the default quickmenu or a quickmenu file if hud_panel_quickmenu_file is set to a valid filename.");
275 LOG_HELP(
"A submenu name can be given to open the quickmenu directly in a submenu; it requires to specify 'default', 'file' or '\"\"' option.");
276 LOG_HELP(
"A file name can also be given to open a different quickmenu");
300 case "scoreboard_columns_set":
306 case "scoreboard_columns_help":
334 LOG_HELP(
"Usage:^3 cl_cmd hud <action> [<configname> | <radartoggle> | <layout>]");
335 LOG_HELP(
" Where <action> is the command to complete,");
336 LOG_HELP(
" <configname> is the name to save to for 'save' action,");
337 LOG_HELP(
" <radartoggle> is to maximize/minimize radar for 'radar' action,");
338 LOG_HELP(
" and <layout> is how to organize the scoreboard columns for 'scoreboard_columns_set' action.");
339 LOG_HELP(
" Full list of commands here: configure, quickmenu, minigame, save, scoreboard_columns_help, scoreboard_columns_set, radar.");
347 TC(
int, request);
TC(
int, argc);
363 LOG_HELP(
"Usage:^3 cl_cmd localprint \"<message>\"");
364 LOG_HELP(
" <message> is the centerprint message to send to yourself.");
372 TC(
int, request);
TC(
int, argc);
388 LOG_HELP(
"Usage:^3 cl_cmd mv_download <mapid>");
389 LOG_HELP(
" Where <mapid> is the id number of the map to request an image of on the map vote selection menu.");
397 TC(
int, request);
TC(
int, argc);
408 if (thiscvar ==
"cl_weaponpriority")
410 else if (
substring(thiscvar, 0, 17) ==
"cl_weaponpriority" &&
strlen(thiscvar) == 18)
413 localcmd(
"cmd sentcvar ", thiscvar,
" \"", s,
"\"\n");
423 LOG_HELP(
"Usage:^3 cl_cmd sendcvar <cvar>");
424 LOG_HELP(
" Where <cvar> is the cvar to send to the server.");
437 for (
int i = 0; i <= 255; ++i)
447 LOG_HELP(
"Usage:^3 cl_cmd print_cptimes");
448 LOG_HELP(
" No arguments required, will show current or last run checkpoint times.");
496 FOREACH(CLIENT_COMMANDS,
true,
LOG_HELPF(
" ^2%s^7: %s", it.m_name, it.m_description));
502 FOREACH(CLIENT_COMMANDS, it.m_name == c, {
503 it.m_invokecmd(it, CMD_REQUEST_COMMAND, NULL, argc, command);
512 FOREACH(CLIENT_COMMANDS, it.m_name == c, {
513 it.m_invokecmd(it, CMD_REQUEST_USAGE, NULL, argc,
"");
543 LOG_HELP(
"Client console commands:");
546 LOG_HELP(
"\nGeneric commands shared by all programs:");
549 LOG_HELP(
"\nUsage:^3 cl_cmd <command>^7, where possible commands are listed above.");
550 LOG_HELP(
"For help about a specific command, type cl_cmd help <command>");
570 LOG_INFO(((command !=
"") ?
strcat(
"Unknown client command \"", command,
"\"") :
"No command provided"),
". For a list of supported commands, try cl_cmd help.");
581#define CONSOLE_COMMANDS_NORMAL() \
582 CONSOLE_COMMAND("+showaccuracy", { }) \
583 CONSOLE_COMMAND("-showaccuracy", { }) \
586#define CONSOLE_COMMANDS_MOVEMENT() \
587 CONSOLE_COMMAND("+forward", { ++camera_direction.x; }) \
588 CONSOLE_COMMAND("-forward", { --camera_direction.x; }) \
589 CONSOLE_COMMAND("+back", { --camera_direction.x; }) \
590 CONSOLE_COMMAND("-back", { ++camera_direction.x; }) \
591 CONSOLE_COMMAND("+moveup", { ++camera_direction.z; }) \
592 CONSOLE_COMMAND("-moveup", { --camera_direction.z; }) \
593 CONSOLE_COMMAND("+movedown", { --camera_direction.z; }) \
594 CONSOLE_COMMAND("-movedown", { ++camera_direction.z; }) \
595 CONSOLE_COMMAND("+moveright", { --camera_direction.y; }) \
596 CONSOLE_COMMAND("-moveright", { ++camera_direction.y; }) \
597 CONSOLE_COMMAND("+moveleft", { ++camera_direction.y; }) \
598 CONSOLE_COMMAND("-moveleft", { --camera_direction.y; }) \
599 CONSOLE_COMMAND("+roll_right", { ++camera_roll; }) \
600 CONSOLE_COMMAND("-roll_right", { --camera_roll; }) \
601 CONSOLE_COMMAND("+roll_left", { --camera_roll; }) \
602 CONSOLE_COMMAND("-roll_left", { ++camera_roll; }) \
608 #define CONSOLE_COMMAND(name, execution) \
609 { registercommand(name); }
612 #undef CONSOLE_COMMAND
619 #define CONSOLE_COMMAND(name, execution) \
620 registercommand(name);
623 #undef CONSOLE_COMMAND
631 #define CONSOLE_COMMAND(name, execution) \
632 { if (name == s) { { execution } return true; } }
635 #undef CONSOLE_COMMAND
644 #define CONSOLE_COMMAND(name, execution) \
645 { if (name == s) { { execution } return true; } }
648 #undef CONSOLE_COMMAND
#define MUTATOR_CALLHOOK(id,...)
ERASEABLE float InterpretBoolean(string input)
void centerprint_AddStandard(string strMessage)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void LocalCommand_debugmodel(int request, int argc)
void LocalCommand_mv_download(int request, int argc)
bool LocalCommand_macro_usage(int argc)
void LocalCommand_handlevote(int request, int argc)
void LocalCommand_localprint(int request, int argc)
bool ConsoleCommand_macro_normal(string s, int argc)
bool LocalCommand_macro_command(int argc, string command)
void LocalCommand_boxparticles(int request, int argc)
#define CONSOLE_COMMANDS_NORMAL()
void DrawDebugModel(entity this)
void LocalCommand_blurtest(int request)
bool ConsoleCommand_macro_movement(string s, int argc)
void LocalCommand_print_cptimes(int request)
void ConsoleCommand_macro_init()
void LocalCommand_macro_help()
void GameCommand(string command)
void LocalCommand_hud(int request, int argc)
void LocalCommand_create_scrshot_ent(int request)
#define CONSOLE_COMMANDS_MOVEMENT()
void LocalCommand_macro_write_aliases(int fh)
void LocalCommand_sendcvar(int request, int argc)
void Cmd_Scoreboard_Help()
void Cmd_Scoreboard_SetFields(int argc)
#define CLIENT_COMMAND(id, description)
void PolyDrawModel(entity e)
IntrusiveList g_drawables
void Cmd_MapVote_MapDownload(int argc)
const int CMD_REQUEST_COMMAND
const int CMD_REQUEST_USAGE
string strtolower(string s)
float GenericCommand_macro_usage(int argc)
void GenericCommand_macro_help()
float GenericCommand(string command)
#define CMD_Write_Alias(execute, command, description)
bool hud_panel_radar_mouse
bool hud_panel_radar_maximized
bool QuickMenu_IsOpened()
void HUD_Panel_ExportCfg(string cfgname)
bool autocvar__hud_configure
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
#define FOREACH(list, cond, body)
#define CSQC_ConsoleCommand
string MapInfo_Map_bspname
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
string race_checkpoint_splits[256]
void HUD_Radar_Show_Maximized(bool doshow, bool clickable)
string W_NumberWeaponOrder(string order)
string W_FixWeaponOrder(string order, float complete)