switch(request)
{
case GC_REQUEST_HELP:
- print(" bot_cmd - Control and send commands to bots");
+ print(" bot_cmd - Control and send commands to bots\n");
break;
case GC_REQUEST_COMMAND:
switch(request)
{
case GC_REQUEST_HELP:
- print(" cointoss - Flip a virtual coin and give random result");
+ print(" cointoss - Flip a virtual coin and give random result\n");
break;
case GC_REQUEST_COMMAND:
}
}
+void GameCommand_cvar_changes(float request)
+{
+ switch(request)
+ {
+ case GC_REQUEST_HELP:
+ print(" cvar_changes - Prints a list of all changed server cvars\n");
+ break;
+
+ case GC_REQUEST_COMMAND:
+ print(cvar_changes);
+ break;
+
+ default:
+ case GC_REQUEST_USAGE:
+ print("\nUsage: sv_cmd \n");
+ print(" No arguments required.\n");
+ return;
+ }
+}
+
+void GameCommand_cvar_purechanges(float request)
+{
+ switch(request)
+ {
+ case GC_REQUEST_HELP:
+ print(" cvar_purechanges - Prints a list of all changed gameplay cvars\n");
+ break;
+
+ case GC_REQUEST_COMMAND:
+ print(cvar_purechanges);
+ break;
+
+ default:
+ case GC_REQUEST_USAGE:
+ print("\nUsage: sv_cmd cvar_purechanges\n");
+ print(" No arguments required.\n");
+ return;
+ }
+}
+
void GameCommand(string command)
{
// ===== TODO list =====
GameCommand_bbox(GC_REQUEST_HELP);
GameCommand_bot_cmd(GC_REQUEST_HELP, command);
GameCommand_cointoss(GC_REQUEST_HELP);
+ GameCommand_cvar_changes(GC_REQUEST_HELP);
+ GameCommand_cvar_purechanges(GC_REQUEST_HELP);
print(" teamstatus\n");
print(" printstats\n");
print(" make_mapinfo\n");
case "bbox": GameCommand_bbox(search_request_type); break;
case "bot_cmd": GameCommand_bot_cmd(search_request_type, command); break;
case "cointoss": GameCommand_cointoss(search_request_type); break;
+ case "cvar_changes": GameCommand_cvar_changes(search_request_type); break;
+ case "cvar_purechanges": GameCommand_cvar_purechanges(search_request_type); break;
default:
print("Invalid command. For a list of supported commands, try sv_cmd help.\n");