// cmd (client-to-server command) - server/command/cmd.qc
// ========================================================
set sv_clientcommand_antispam_time 1 "Amount of seconds after a command before another command can be called again without being considered spam. (Use -1 for no antispam limit)"
-set sv_clientcommand_antispam_count 5 "Amount of commands considered spam before commands are rejected.
+set sv_clientcommand_antispam_count 8 "Amount of commands considered spam before commands are rejected."
seta sv_status_privacy 1 "hide IP addresses from \"status\" and \"who\" replies shown to clients"
seta cl_autoswitch 1 "automatically switch to newly picked up weapons if they are better than what you are carrying"
// argv: 0 - 1 - 2 - 3
// cmd vote - master - login - password
- print("recieved normal command: ", command, ".\n");
-
// for floodcheck
switch(strtolower(argv(0)))
{
// exempt commands which are not subject to floodcheck
case "begin": break; // handled by engine in host_cmd.c
+ case "download": break; // handled by engine in cl_parse.c
case "getmapvotepic": break; // handled by server in this file
case "pause": break; // handled by engine in host_cmd.c
case "prespawn": break; // handled by engine in host_cmd.c
if(SV_ParseClientCommand_floodcheck())
break; // "TRUE": continue, as we're not flooding yet
else
- return print("ANTISPAM CAUGHT: ", command, ".\n"); // "FALSE": not allowed to continue, halt
+ return print("^1ERROR: ^7ANTISPAM CAUGHT: ", command, ".\n"); // "FALSE": not allowed to continue, halt
}
/* NOTE: totally disabled for now, however the functionality and descriptions are there if we ever want it.
}
else if(ClientCommand_macro_command(argc, command)) // continue as usual and scan for normal commands
{
- return; // handled by one of the above GameCommand_* functions
+ return; // handled by one of the above ClientCommand_* functions
}
else
- {
- print("sent command to engine: ", command, ".\n");
clientcommand(self, command);
- }
}
\ No newline at end of file