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);
179 entity debugmodel_entity =
new(debugmodel);
180 precache_model(modelname);
181 _setmodel(debugmodel_entity, modelname);
193 LOG_HELP(
"Usage:^3 cl_cmd debugmodel <model>");
194 LOG_HELP(
" Where <model> is a string of the model name to use for the debug model.");
202 TC(
int, request);
TC(
int, argc);
241 LOG_HELP(
"Usage:^3 cl_cmd handlevote <vote>");
242 LOG_HELP(
" Where <vote> is the selection for either the current poll or uid2name.");
250 TC(
int, request);
TC(
int, argc);
268 if (
argv(2) ==
"help")
270 LOG_HELP(
" quickmenu [[default | file | \"\"] submenu file]");
271 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.");
272 LOG_HELP(
"A submenu name can be given to open the quickmenu directly in a submenu; it requires to specify 'default', 'file' or '\"\"' option.");
273 LOG_HELP(
"A file name can also be given to open a different quickmenu");
297 case "scoreboard_columns_set":
303 case "scoreboard_columns_help":
331 LOG_HELP(
"Usage:^3 cl_cmd hud <action> [<configname> | <radartoggle> | <layout>]");
332 LOG_HELP(
" Where <action> is the command to complete,");
333 LOG_HELP(
" <configname> is the name to save to for 'save' action,");
334 LOG_HELP(
" <radartoggle> is to maximize/minimize radar for 'radar' action,");
335 LOG_HELP(
" and <layout> is how to organize the scoreboard columns for 'scoreboard_columns_set' action.");
336 LOG_HELP(
" Full list of commands here: configure, quickmenu, minigame, save, scoreboard_columns_help, scoreboard_columns_set, radar.");
344 TC(
int, request);
TC(
int, argc);
360 LOG_HELP(
"Usage:^3 cl_cmd localprint \"<message>\"");
361 LOG_HELP(
" <message> is the centerprint message to send to yourself.");
369 TC(
int, request);
TC(
int, argc);
385 LOG_HELP(
"Usage:^3 cl_cmd mv_download <mapid>");
386 LOG_HELP(
" Where <mapid> is the id number of the map to request an image of on the map vote selection menu.");
394 TC(
int, request);
TC(
int, argc);
405 if (thiscvar ==
"cl_weaponpriority")
407 else if (
substring(thiscvar, 0, 17) ==
"cl_weaponpriority" &&
strlen(thiscvar) == 18)
410 localcmd(
"cmd sentcvar ", thiscvar,
" \"", s,
"\"\n");
420 LOG_HELP(
"Usage:^3 cl_cmd sendcvar <cvar>");
421 LOG_HELP(
" Where <cvar> is the cvar to send to the server.");
473 string c = strtolower(
argv(0));
475 it.m_invokecmd(it, CMD_REQUEST_COMMAND, NULL, argc, command);
483 string c = strtolower(
argv(1));
485 it.m_invokecmd(it, CMD_REQUEST_USAGE, NULL, argc,
"");
510 string s = strtolower(
argv(0));
515 LOG_HELP(
"Client console commands:");
518 LOG_HELP(
"\nGeneric commands shared by all programs:");
521 LOG_HELP(
"\nUsage:^3 cl_cmd <command>^7, where possible commands are listed above.");
522 LOG_HELP(
"For help about a specific command, type cl_cmd help <command>");
542 LOG_INFO(((command !=
"") ?
strcat(
"Unknown client command \"", command,
"\"") :
"No command provided"),
". For a list of supported commands, try cl_cmd help.");
553 #define CONSOLE_COMMANDS_NORMAL() \ 554 CONSOLE_COMMAND("+showscores", { scoreboard_showscores = true; }) \ 555 CONSOLE_COMMAND("-showscores", { scoreboard_showscores = false; }) \ 556 CONSOLE_COMMAND("+showaccuracy", { }) \ 557 CONSOLE_COMMAND("-showaccuracy", { }) \ 560 #define CONSOLE_COMMANDS_MOVEMENT() \ 561 CONSOLE_COMMAND("+forward", { ++camera_direction.x; }) \ 562 CONSOLE_COMMAND("-forward", { --camera_direction.x; }) \ 563 CONSOLE_COMMAND("+back", { --camera_direction.x; }) \ 564 CONSOLE_COMMAND("-back", { ++camera_direction.x; }) \ 565 CONSOLE_COMMAND("+moveup", { ++camera_direction.z; }) \ 566 CONSOLE_COMMAND("-moveup", { --camera_direction.z; }) \ 567 CONSOLE_COMMAND("+movedown", { --camera_direction.z; }) \ 568 CONSOLE_COMMAND("-movedown", { ++camera_direction.z; }) \ 569 CONSOLE_COMMAND("+moveright", { --camera_direction.y; }) \ 570 CONSOLE_COMMAND("-moveright", { ++camera_direction.y; }) \ 571 CONSOLE_COMMAND("+moveleft", { ++camera_direction.y; }) \ 572 CONSOLE_COMMAND("-moveleft", { --camera_direction.y; }) \ 573 CONSOLE_COMMAND("+roll_right", { ++camera_roll; }) \ 574 CONSOLE_COMMAND("-roll_right", { --camera_roll; }) \ 575 CONSOLE_COMMAND("+roll_left", { --camera_roll; }) \ 576 CONSOLE_COMMAND("-roll_left", { ++camera_roll; }) \ 582 #define CONSOLE_COMMAND(name, execution) \ 583 { registercommand(name); } 586 #undef CONSOLE_COMMAND 593 #define CONSOLE_COMMAND(name, execution) \ 594 registercommand(name); 597 #undef CONSOLE_COMMAND 605 #define CONSOLE_COMMAND(name, execution) \ 606 { if (name == s) { { execution } return true; } } 609 #undef CONSOLE_COMMAND 618 #define CONSOLE_COMMAND(name, execution) \ 619 { if (name == s) { { execution } return true; } } 622 #undef CONSOLE_COMMAND 637 string s = strtolower(
argv(0));
void Cmd_Scoreboard_Help()
void LocalCommand_sendcvar(int request, int argc)
string W_FixWeaponOrder(string order, float complete)
bool hud_panel_radar_maximized
void DrawDebugModel(entity this)
void GameCommand(string command)
bool autocvar__hud_configure
const int CMD_REQUEST_USAGE
void LocalCommand_create_scrshot_ent(int request)
float GenericCommand(string command)
bool ConsoleCommand_macro_normal(string s, int argc)
#define CLIENT_COMMANDS(ent, request, arguments, command)
void HUD_Radar_Show_Maximized(bool doshow, bool clickable)
bool ConsoleCommand_macro_movement(string s, int argc)
void PolyDrawModel(entity e)
bool hud_panel_radar_mouse
void GenericCommand_macro_help()
string W_NumberWeaponOrder(string order)
void LocalCommand_handlevote(int request, int argc)
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
void LocalCommand_boxparticles(int request, int argc)
void ConsoleCommand_macro_init()
float GenericCommand_macro_usage(int argc)
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
bool LocalCommand_macro_command(int argc, string command)
void LocalCommand_hud(int request, int argc)
const int CMD_REQUEST_COMMAND
#define CMD_Write_Alias(execute, command, description)
ERASEABLE float InterpretBoolean(string input)
void LocalCommand_macro_help()
void LocalCommand_localprint(int request, int argc)
bool LocalCommand_macro_usage(int argc)
void Cmd_MapVote_MapDownload(int argc)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
bool CSQC_ConsoleCommand(string command)
bool QuickMenu_IsOpened()
string MapInfo_Map_bspname
void HUD_Panel_ExportCfg(string cfgname)
#define MUTATOR_CALLHOOK(id,...)
void centerprint_AddStandard(string strMessage)
#define CONSOLE_COMMANDS_MOVEMENT()
void LocalCommand_mv_download(int request, int argc)
#define CONSOLE_COMMANDS_NORMAL()
CLIENT_COMMAND(blurtest, "Feature for testing blur postprocessing")
#define FOREACH(list, cond, body)
IntrusiveList g_drawables
void LocalCommand_debugmodel(int request, int argc)
void Cmd_Scoreboard_SetFields(int)
void LocalCommand_macro_write_aliases(int fh)
void LocalCommand_blurtest(int request)