IConsoleVarRegister("net_frame_freq",&_network_frame_freq,ICONSOLE_VAR_BYTE,"The amount of frames before a command will be (visibly) executed. Default value: 1");
IConsoleVarRegister("net_frame_freq",&_settings_client.network.frame_freq,ICONSOLE_VAR_BYTE,"The amount of frames before a command will be (visibly) executed. Default value: 1");
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");
IConsoleVarRegister("net_sync_freq",&_settings_client.network.sync_freq,ICONSOLE_VAR_UINT16,"The amount of frames to check if the game is still in sync. Default value: 100");
IConsoleVarStringRegister("server_pw",&_network_server_password,sizeof(_network_server_password),"Set the server password to protect your server. Use '*' to clear the password");
IConsoleVarStringRegister("server_pw",&_settings_client.network.server_password,sizeof(_settings_client.network.server_password),"Set the server password to protect your server. Use '*' to clear the password");
IConsoleVarStringRegister("rcon_pw",&_network_rcon_password,sizeof(_network_rcon_password),"Set the rcon-password to change server behaviour. Use '*' to disable rcon");
IConsoleVarStringRegister("rcon_pw",&_settings_client.network.rcon_password,sizeof(_settings_client.network.rcon_password),"Set the rcon-password to change server behaviour. Use '*' to disable rcon");
IConsoleVarStringRegister("server_name",&_network_server_name,sizeof(_network_server_name),"Set the name of the server for multiplayer");
IConsoleVarStringRegister("server_name",&_settings_client.network.server_name,sizeof(_settings_client.network.server_name),"Set the name of the server for multiplayer");
IConsoleVarRegister("server_port",&_network_server_port,ICONSOLE_VAR_UINT32,"Set the server port. Changes take effect the next time you start a server");
IConsoleVarRegister("server_port",&_settings_client.network.server_port,ICONSOLE_VAR_UINT32,"Set the server port. Changes take effect the next time you start a server");
IConsoleVarRegister("server_ip",&_network_server_bind_ip,ICONSOLE_VAR_UINT32,"Set the IP the server binds to. Changes take effect the next time you start a server. Use 'all' to bind to any IP.");
IConsoleVarRegister("server_advertise",&_network_advertise,ICONSOLE_VAR_BOOLEAN,"Set if the server will advertise to the master server and show up there");
IConsoleVarRegister("server_advertise",&_settings_client.network.server_advertise,ICONSOLE_VAR_BOOLEAN,"Set if the server will advertise to the master server and show up there");
IConsoleVarRegister("max_join_time",&_network_max_join_time,ICONSOLE_VAR_UINT16,"Set the maximum amount of time (ticks) a client is allowed to join. Default value: 500");
IConsoleVarRegister("max_join_time",&_settings_client.network.max_join_time,ICONSOLE_VAR_UINT16,"Set the maximum amount of time (ticks) a client is allowed to join. Default value: 500");
IConsoleVarRegister("pause_on_join",&_network_pause_on_join,ICONSOLE_VAR_BOOLEAN,"Set if the server should pause gameplay while a client is joining. This might help slow users");
IConsoleVarRegister("pause_on_join",&_settings_client.network.pause_on_join,ICONSOLE_VAR_BOOLEAN,"Set if the server should pause gameplay while a client is joining. This might help slow users");
IConsoleVarRegister("autoclean_companies",&_network_autoclean_companies,ICONSOLE_VAR_BOOLEAN,"Automatically shut down inactive companies to free them up for other players. Customize with 'autoclean_(un)protected'");
IConsoleVarRegister("autoclean_companies",&_settings_client.network.autoclean_companies,ICONSOLE_VAR_BOOLEAN,"Automatically shut down inactive companies to free them up for other players. Customize with 'autoclean_(un)protected'");
IConsoleVarRegister("autoclean_protected",&_network_autoclean_protected,ICONSOLE_VAR_BYTE,"Automatically remove the password from an inactive company after the given amount of months");
IConsoleVarRegister("autoclean_protected",&_settings_client.network.autoclean_protected,ICONSOLE_VAR_BYTE,"Automatically remove the password from an inactive company after the given amount of months");
IConsoleVarRegister("autoclean_unprotected",&_network_autoclean_unprotected,ICONSOLE_VAR_BYTE,"Automatically shut down inactive companies after the given amount of months");
IConsoleVarRegister("autoclean_unprotected",&_settings_client.network.autoclean_unprotected,ICONSOLE_VAR_BYTE,"Automatically shut down inactive companies after the given amount of months");
IConsoleVarRegister("restart_game_year",&_network_restart_game_year,ICONSOLE_VAR_UINT16,"Auto-restart the server when Jan 1st of the set year is reached. Use '0' to disable this");
IConsoleVarRegister("restart_game_year",&_settings_client.network.restart_game_year,ICONSOLE_VAR_UINT16,"Auto-restart the server when Jan 1st of the set year is reached. Use '0' to disable this");
IConsoleVarRegister("min_players",&_network_min_players,ICONSOLE_VAR_BYTE,"Automatically pause the game when the number of active players passes below the given amount");
IConsoleVarRegister("min_players",&_settings_client.network.min_players,ICONSOLE_VAR_BYTE,"Automatically pause the game when the number of active players passes below the given amount");
IConsoleVarRegister("reload_cfg",&_network_reload_cfg,ICONSOLE_VAR_BOOLEAN,"reload the entire config file between the end of this game, and starting the next new game - dedicated servers");
IConsoleVarRegister("reload_cfg",&_settings_client.network.reload_cfg,ICONSOLE_VAR_BOOLEAN,"reload the entire config file between the end of this game, and starting the next new game - dedicated servers");
IConsolePrintF(CC_ERROR,"Client #%d is dropped because it took longer than %d ticks for him to join",cs->index,_network_max_join_time);
if(lag>_settings_client.network.max_join_time){
IConsolePrintF(CC_ERROR,"Client #%d is dropped because it took longer than %d ticks for him to join",cs->index,_settings_client.network.max_join_time);