// ET: Legacy competition server sample config file. Make this file your own.

// Should be used together with legacy1, legacy3, legacy5 and legacy6 configs.
// Fill in empty cvars to finish the server configuration.

// FOR ET: LEGACY ENGINE ONLY


// HOSTNAME & MOTD

set sv_hostname ""                              // name of server (max length is 26 chars without color codes)
set server_motd0 ""                             // message in right corner of join screen
set server_motd1 ""
set server_motd2 ""
set server_motd3 ""
set server_motd4 ""
set server_motd5 ""

// CLIENTS

set sv_maxclients ""                            // number of players including private slots
set sv_privateclients "0"                       // if set > 0, then this number of client slots will be reserved for connections
set sv_privatepassword ""                       // that have "password" set to the value of "sv_privatePassword"

// PASSWORDS

set g_password ""                               // server protection password
set rconpassword ""                             // remote console access password
set refereePassword ""                          // referee status password
set shoutcastPassword ""                        // shoutcast status password

// NETWORK

set dedicated "2"                               // 1: dedicated server for lan 2: dedicated server for internet
set sv_advert "3"                               // 1: send heartbeats to master server 3: to also sent statistics to Trackbase
set sv_timeout "40"                             // seconds without any message from connected clients
set sv_dl_timeout "240"                         // seconds without any message from downloading or preparing clients
set sv_minping "0"                              // minimum ping required on connect (0: no minimum)
set sv_maxping "0"                              // maximum ping allowed on connect (0: no maximum)
//set net_ip ""                                 // set to override the default IPv4 ET uses
//set net_port "27960"                          // set to override the default port ET uses
//set net_ip6 ""                                // set to override the default IPv6 ET uses
//set net_port6 "27960"                         // set to override the default port ET uses

// DOWNLOAD

set sv_maxRate "45000"                          // 10000 standard but poor for ET (0: unlimited)
set sv_dlRate "100"                             // increase/decrease if you have plenty/little spare bandwidth
set sv_allowDownload "1"                        // global toggle for both legacy download and web download
set sv_wwwDownload "1"                          // toggle to enable web download
set sv_wwwBaseURL ""                            // base URL for redirection
set sv_wwwDlDisconnected "0"                    // tell clients to perform their downloads while disconnected from the server
set sv_wwwFallbackURL ""                        // URL to send to if an http/ftp fails or is refused client side

// LOGGING & PROTECTION

set logfile "1"                                 // enable console logging - 'etconsole.log' (1: enabled 2: enabled and synchronized)
set sv_pure "1"                                 // enable hash check of client pk3 files
set sv_protect "1"                              // 1: Use ioquake3 getstatus, getchallenge DDoS protection 2: Use OpenWolf getstatus, getinfo, getchallenge DRDoS protection
set sv_protectLog "sv_protect.log"              // when set all sv_protect and server security related messages are written into this log file
set sv_floodProtect "0"                         // prevent server flooding
set sv_userInfofloodProtect "1"                 // prevent userinfo flooding
set sv_ipMaxClients "0"                         // limits connections per IP to cvar value (0: no maximum)

set g_log "game.log"                            // enable game logging if set. Name of game logging file - logs weapon changes, kills, connects etc.
set g_logSync "1"                               // game logging options (0: buffered 1: synchronized)
set g_guidCheck "0"                             // check guid validity of connecting players - "1" prevents 2.60b clients without PB from connecting
set g_protect "1"                               // mod side security options

// MISC SETTINGS 

set sv_fps "40"                                 // to ensure that the server starts at sv_fps 40
set g_customConfig "legacy6"                    // config that the server will load upon starting
set g_gametype "3"                              // game type should be set from map rotation script 

// OMNIBOTS

set omnibot_enable "0"

// WATCHDOG - in case the game dies with an ERR_DROP or any situation leading to server running with no map
set com_watchdog "60"                           // defaults 60
set com_watchdog_cmd "exec objectivecycle.cfg"  // defaults to quit

// MAP
map radar                                       // map loaded upon starting
