- print("\nUsage:^3 cl_cmd settemp \"cvar\" | [restore]\n");
- print(" Where 'cvar' is the cvar plus arguments to send to the server,\n");
- print(" or 'restore' allows you to restore all of the original temporary cvar values.\n");
+ print("\nUsage:^3 cl_cmd settemp \"cvar\" \"arguments\"\n");
+ print(" Where 'cvar' is the cvar you want to temporarily set with 'arguments'.\n");
+ return;
+ }
+ }
+}
+
+void LocalCommand_settemp_restore(float request, float argc)
+{
+ switch(request)
+ {
+ case CMD_REQUEST_COMMAND:
+ {
+ float i = cvar_settemp_restore();
+
+ if(i)
+ dprint("Restored ", ftos(i), " temporary cvar settings to their original values.\n");
+ else
+ dprint("Nothing to restore.\n");
+
+ return;
+ }
+
+ default:
+ case CMD_REQUEST_USAGE:
+ {
+ print("\nUsage:^3 cl_cmd settemp_restore\n");
+ print(" No arguments required.\n");