1 void GameCommand_Init()
3 // make gg call menu QC theCommands
4 localcmd("alias qc_cmd \"menu_cmd $*\"\n");
7 void GameCommand(string theCommand)
10 argc = tokenize(theCommand);
12 if(argv(0) == "help" || argc == 0)
14 print("Usage: menu_cmd theCommand..., where possible theCommands are:\n");
15 print(" sync - reloads all cvars on the current menu page\n");
16 print(" directmenu ITEM - select a menu item as main item\n");
17 GameCommand_Generic("help");
21 if(GameCommand_Generic(theCommand))
26 // make changes in cvars known to the system
30 if(argv(0) == "directmenu") if(argc == 2)
32 // switch to a menu item
37 print("Invalid theCommand. For a list of supported theCommands, try menu_cmd help.\n");