]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove settemp from client/gamecommand.qc -- there's already aliases for the
authorSamual <samual@xonotic.org>
Sun, 11 Dec 2011 09:25:31 +0000 (04:25 -0500)
committerSamual <samual@xonotic.org>
Sun, 11 Dec 2011 09:25:31 +0000 (04:25 -0500)
functions I made

qcsrc/client/gamecommand.qc
qcsrc/server/clientcommands.qc

index e9dfb496f9198533226b7ab4c79dfd24aba2947d..a15626a71b0c82e5ebe559f1ac9f6f3ded8d84cd 100644 (file)
@@ -255,43 +255,6 @@ void GameCommand_sendcvar(float request, float argc)
        }
 }
 
-void GameCommand_settemp(float request, float argc)
-{
-       switch(request)
-       {
-               case GC_REQUEST_COMMAND:
-               {
-                       if((argv(1) == "restore") && (argc == 3))
-                       {
-                               float i = cvar_clientsettemp_restore();
-                               
-                               if(i)
-                                       dprint("Restored ", ftos(i), " temporary cvar settings to their original values.\n");
-                               else
-                                       dprint("Nothing to restore.\n");
-                       }
-                       else
-                       {
-                               if(cvar_clientsettemp(argv(1), argv(2)))
-                                       dprint("Creating new settemp tracker for ", argv(1), " and setting it to \"", argv(2), "\" temporarily.\n"); 
-                               else
-                                       dprint("Already had a tracker for ", argv(1), ", updating it to \"", argv(2), "\".\n");
-                       }
-                               
-                       return; 
-               }
-                       
-               default:
-               case GC_REQUEST_USAGE:
-               {
-                       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");
-                       return;
-               }
-       }
-}
-
 /* use this when creating a new command, making sure to place it in alphabetical order.
 void GameCommand_(float request)
 {
@@ -324,7 +287,6 @@ void GameCommand_(float request)
        CLIENT_COMMAND("blurtest", GameCommand_blurtest(request), "Feature for testing blur postprocessing") \
        CLIENT_COMMAND("hud", GameCommand_hud(request, arguments), "Commands regarding/controlling the HUD system") \
        CLIENT_COMMAND("sendcvar", GameCommand_sendcvar(request, arguments), "Send a cvar to the server (like weaponpriority)") \
-       CLIENT_COMMAND("settemp", GameCommand_settemp(request, arguments), "Temporarily set a value to a cvar which is restored by command or end of each match") \
        /* nothing */
        
 void GameCommand_macro_help()
index 4795b41ae5c98f046ac9430f500a9e2e33da6b31..53df3a84e27ba3b65f61f3b56ee9ace34d6675a7 100644 (file)
@@ -1,6 +1,6 @@
 // =========================================================
 //  Server side networked commands code, reworked by Samual
-//  Last updated: December 6th, 2011
+//  Last updated: December 11th, 2011
 // =========================================================
 
 #define CC_REQUEST_COMMAND 1
@@ -14,6 +14,7 @@
 string MapVote_Suggest(string m);
 //void MapVote_SendPicture(float id)
 
+// move any necessary sprint statements to "print_to"
 
 // ============================
 //  Misc. Supporting Functions