console_cmds.c
changeset 3120 06e99f8463f7
parent 3013 d09de45c8964
child 3123 ad1ec737e974
equal deleted inserted replaced
3119:8f1b561d9870 3120:06e99f8463f7
  1418 	IConsoleCmdHookAdd("pause",            ICONSOLE_HOOK_ACCESS, ConHookServerOnly);
  1418 	IConsoleCmdHookAdd("pause",            ICONSOLE_HOOK_ACCESS, ConHookServerOnly);
  1419 	IConsoleCmdRegister("unpause",         ConUnPauseGame);
  1419 	IConsoleCmdRegister("unpause",         ConUnPauseGame);
  1420 	IConsoleCmdHookAdd("unpause",          ICONSOLE_HOOK_ACCESS, ConHookServerOnly);
  1420 	IConsoleCmdHookAdd("unpause",          ICONSOLE_HOOK_ACCESS, ConHookServerOnly);
  1421 
  1421 
  1422 	IConsoleCmdRegister("patch",           ConPatch);
  1422 	IConsoleCmdRegister("patch",           ConPatch);
  1423 	IConsoleCmdHookAdd("patch",            ICONSOLE_HOOK_ACCESS, ConHookServerOnly);
       
  1424 
  1423 
  1425 	/*** Networking variables ***/
  1424 	/*** Networking variables ***/
  1426 	IConsoleVarRegister("net_frame_freq",        &_network_frame_freq, ICONSOLE_VAR_BYTE, "The amount of frames before a command will be (visibly) executed. Default value: 1");
  1425 	IConsoleVarRegister("net_frame_freq",        &_network_frame_freq, ICONSOLE_VAR_BYTE, "The amount of frames before a command will be (visibly) executed. Default value: 1");
  1427 	IConsoleVarHookAdd("net_frame_freq",         ICONSOLE_HOOK_ACCESS, ConHookServerOnly);
  1426 	IConsoleVarHookAdd("net_frame_freq",         ICONSOLE_HOOK_ACCESS, ConHookServerOnly);
  1428 	IConsoleVarRegister("net_sync_freq",         &_network_sync_freq,  ICONSOLE_VAR_UINT16, "The amount of frames to check if the game is still in sync. Default value: 100");
  1427 	IConsoleVarRegister("net_sync_freq",         &_network_sync_freq,  ICONSOLE_VAR_UINT16, "The amount of frames to check if the game is still in sync. Default value: 100");