diff --git a/engine/server/sv_main.c b/engine/server/sv_main.c index 7c7624da..60aa39a0 100644 --- a/engine/server/sv_main.c +++ b/engine/server/sv_main.c @@ -843,93 +843,93 @@ void SV_Init( void ) SV_InitHostCommands(); - Cvar_Get ("protocol", va( "%i", PROTOCOL_VERSION ), FCVAR_READ_ONLY, "displays server protocol version" ); - Cvar_Get ("suitvolume", "0.25", FCVAR_ARCHIVE, "HEV suit volume" ); - Cvar_Get ("sv_background", "0", FCVAR_READ_ONLY, "indicate what background map is running" ); + Cvar_Get( "protocol", va( "%i", PROTOCOL_VERSION ), FCVAR_READ_ONLY, "displays server protocol version" ); + Cvar_Get( "suitvolume", "0.25", FCVAR_ARCHIVE, "HEV suit volume" ); + Cvar_Get( "sv_background", "0", FCVAR_READ_ONLY, "indicate what background map is running" ); Cvar_Get( "gamedir", GI->gamefolder, FCVAR_READ_ONLY, "game folder" ); Cvar_Get( "sv_alltalk", "1", 0, "allow to talking for all players (legacy, unused)" ); Cvar_Get( "sv_allow_PhysX", "1", FCVAR_ARCHIVE, "allow XashXT to usage PhysX engine" ); // XashXT cvar Cvar_Get( "sv_precache_meshes", "1", FCVAR_ARCHIVE, "cache SOLID_CUSTOM meshes before level loading" ); // Paranoia 2 cvar - Cvar_Get ("mapcyclefile", "mapcycle.txt", 0, "name of config file for map changing rules" ); - Cvar_Get ("servercfgfile","server.cfg", 0, "name of dedicated server configuration file" ); - Cvar_Get ("lservercfgfile","listenserver.cfg", 0, "name of listen server configuration file" ); - Cvar_Get ("logsdir","logs", 0, "default folder to write server logs" ); - - Cvar_RegisterVariable (&sv_zmax); - Cvar_RegisterVariable (&sv_wateramp); - Cvar_RegisterVariable (&sv_skycolor_r); - Cvar_RegisterVariable (&sv_skycolor_g); - Cvar_RegisterVariable (&sv_skycolor_b); - Cvar_RegisterVariable (&sv_skyvec_x); - Cvar_RegisterVariable (&sv_skyvec_y); - Cvar_RegisterVariable (&sv_skyvec_z); - Cvar_RegisterVariable (&sv_skyname); - Cvar_RegisterVariable (&sv_footsteps); - Cvar_RegisterVariable (&sv_wateralpha); - Cvar_RegisterVariable (&sv_cheats); - Cvar_RegisterVariable (&sv_airmove); - Cvar_RegisterVariable (&sv_fps); - Cvar_RegisterVariable (&showtriggers); - Cvar_RegisterVariable (&sv_aim); - Cvar_RegisterVariable (&motdfile); - Cvar_RegisterVariable (&deathmatch); - Cvar_RegisterVariable (&coop); - Cvar_RegisterVariable (&teamplay); - Cvar_RegisterVariable (&skill); - Cvar_RegisterVariable (&temp1); - - Cvar_RegisterVariable (&rcon_password); - Cvar_RegisterVariable (&sv_stepsize); - Cvar_RegisterVariable (&sv_newunit); - Cvar_RegisterVariable (&hostname); + Cvar_Get( "mapcyclefile", "mapcycle.txt", 0, "name of config file for map changing rules" ); + Cvar_Get( "servercfgfile", "server.cfg", 0, "name of dedicated server configuration file" ); + Cvar_Get( "lservercfgfile", "listenserver.cfg", 0, "name of listen server configuration file" ); + Cvar_Get( "logsdir", "logs", 0, "default folder to write server logs" ); + + Cvar_RegisterVariable( &sv_zmax ); + Cvar_RegisterVariable( &sv_wateramp ); + Cvar_RegisterVariable( &sv_skycolor_r ); + Cvar_RegisterVariable( &sv_skycolor_g ); + Cvar_RegisterVariable( &sv_skycolor_b ); + Cvar_RegisterVariable( &sv_skyvec_x ); + Cvar_RegisterVariable( &sv_skyvec_y ); + Cvar_RegisterVariable( &sv_skyvec_z ); + Cvar_RegisterVariable( &sv_skyname ); + Cvar_RegisterVariable( &sv_footsteps ); + Cvar_RegisterVariable( &sv_wateralpha ); + Cvar_RegisterVariable( &sv_cheats ); + Cvar_RegisterVariable( &sv_airmove ); + Cvar_RegisterVariable( &sv_fps ); + Cvar_RegisterVariable( &showtriggers ); + Cvar_RegisterVariable( &sv_aim ); + Cvar_RegisterVariable( &motdfile ); + Cvar_RegisterVariable( &deathmatch ); + Cvar_RegisterVariable( &coop ); + Cvar_RegisterVariable( &teamplay ); + Cvar_RegisterVariable( &skill ); + Cvar_RegisterVariable( &temp1 ); + + Cvar_RegisterVariable( &rcon_password ); + Cvar_RegisterVariable( &sv_stepsize ); + Cvar_RegisterVariable( &sv_newunit ); + Cvar_RegisterVariable( &hostname ); timeout = Cvar_Get( "timeout", "125", FCVAR_SERVER, "connection timeout" ); sv_pausable = Cvar_Get( "pausable", "1", FCVAR_SERVER, "allow players to pause or not" ); sv_validate_changelevel = Cvar_Get( "sv_validate_changelevel", "1", FCVAR_ARCHIVE, "test change level for level-designer errors" ); - Cvar_RegisterVariable (&sv_clienttrace); - Cvar_RegisterVariable (&sv_bounce); - Cvar_RegisterVariable (&sv_spectatormaxspeed); - Cvar_RegisterVariable (&sv_waterfriction); - Cvar_RegisterVariable (&sv_wateraccelerate); - Cvar_RegisterVariable (&sv_rollangle); - Cvar_RegisterVariable (&sv_rollspeed); - Cvar_RegisterVariable (&sv_airaccelerate); - Cvar_RegisterVariable (&sv_maxvelocity); - Cvar_RegisterVariable (&sv_gravity); - Cvar_RegisterVariable (&sv_maxspeed); - Cvar_RegisterVariable (&sv_accelerate); - Cvar_RegisterVariable (&sv_friction); - Cvar_RegisterVariable (&sv_edgefriction); - Cvar_RegisterVariable (&sv_stopspeed); + Cvar_RegisterVariable( &sv_clienttrace ); + Cvar_RegisterVariable( &sv_bounce ); + Cvar_RegisterVariable( &sv_spectatormaxspeed ); + Cvar_RegisterVariable( &sv_waterfriction ); + Cvar_RegisterVariable( &sv_wateraccelerate ); + Cvar_RegisterVariable( &sv_rollangle ); + Cvar_RegisterVariable( &sv_rollspeed ); + Cvar_RegisterVariable( &sv_airaccelerate ); + Cvar_RegisterVariable( &sv_maxvelocity ); + Cvar_RegisterVariable( &sv_gravity ); + Cvar_RegisterVariable( &sv_maxspeed ); + Cvar_RegisterVariable( &sv_accelerate ); + Cvar_RegisterVariable( &sv_friction ); + Cvar_RegisterVariable( &sv_edgefriction ); + Cvar_RegisterVariable( &sv_stopspeed ); sv_maxclients = Cvar_Get( "maxplayers", "1", FCVAR_LATCH, "server max capacity" ); sv_check_errors = Cvar_Get( "sv_check_errors", "0", FCVAR_ARCHIVE, "check edicts for errors" ); public_server = Cvar_Get ("public", "0", 0, "change server type from private to public" ); sv_lighting_modulate = Cvar_Get( "r_lighting_modulate", "0.6", FCVAR_ARCHIVE, "lightstyles modulate scale" ); sv_reconnect_limit = Cvar_Get ("sv_reconnect_limit", "3", FCVAR_ARCHIVE, "max reconnect attempts" ); - Cvar_RegisterVariable (&sv_failuretime ); - Cvar_RegisterVariable (&sv_unlag); - Cvar_RegisterVariable (&sv_maxunlag); - Cvar_RegisterVariable (&sv_unlagpush); - Cvar_RegisterVariable (&sv_unlagsamples); - Cvar_RegisterVariable (&sv_allow_upload); - Cvar_RegisterVariable (&sv_allow_download); - Cvar_RegisterVariable (&sv_send_logos); - Cvar_RegisterVariable (&sv_send_resources); - Cvar_RegisterVariable (&sv_uploadmax); - Cvar_RegisterVariable (&sv_version); - Cvar_RegisterVariable (&sv_instancedbaseline); - Cvar_RegisterVariable (&sv_consistency); - Cvar_RegisterVariable (&sv_downloadurl); + Cvar_RegisterVariable( &sv_failuretime ); + Cvar_RegisterVariable( &sv_unlag ); + Cvar_RegisterVariable( &sv_maxunlag ); + Cvar_RegisterVariable( &sv_unlagpush ); + Cvar_RegisterVariable( &sv_unlagsamples ); + Cvar_RegisterVariable( &sv_allow_upload ); + Cvar_RegisterVariable( &sv_allow_download ); + Cvar_RegisterVariable( &sv_send_logos ); + Cvar_RegisterVariable( &sv_send_resources ); + Cvar_RegisterVariable( &sv_uploadmax ); + Cvar_RegisterVariable( &sv_version ); + Cvar_RegisterVariable( &sv_instancedbaseline ); + Cvar_RegisterVariable( &sv_consistency ); + Cvar_RegisterVariable( &sv_downloadurl ); sv_novis = Cvar_Get( "sv_novis", "0", 0, "force to ignore server visibility" ); sv_hostmap = Cvar_Get( "hostmap", GI->startmap, 0, "keep name of last entered map" ); - Cvar_RegisterVariable (&sv_password); - Cvar_RegisterVariable (&sv_lan); - Cvar_RegisterVariable (&violence_ablood); - Cvar_RegisterVariable (&violence_hblood); - Cvar_RegisterVariable (&violence_agibs); - Cvar_RegisterVariable (&violence_hgibs); - Cvar_RegisterVariable (&mp_logecho); - Cvar_RegisterVariable (&mp_logfile); - Cvar_RegisterVariable (&sv_background_freeze); + Cvar_RegisterVariable( &sv_password ); + Cvar_RegisterVariable( &sv_lan ); + Cvar_RegisterVariable( &violence_ablood ); + Cvar_RegisterVariable( &violence_hblood ); + Cvar_RegisterVariable( &violence_agibs ); + Cvar_RegisterVariable( &violence_hgibs ); + Cvar_RegisterVariable( &mp_logecho ); + Cvar_RegisterVariable( &mp_logfile ); + Cvar_RegisterVariable( &sv_background_freeze ); sv_allow_joystick = Cvar_Get( "sv_allow_joystick", "1", FCVAR_ARCHIVE, "allow connect with joystick enabled" ); sv_allow_mouse = Cvar_Get( "sv_allow_mouse", "1", FCVAR_ARCHIVE, "allow connect with mouse" );