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

// see https://github.com/etlegacy/etlegacy/wiki
//     https://github.com/etlegacy/etlegacy/wiki/Set-up-Features
//     https://github.com/etlegacy/etlegacy/wiki/List-of-Cvars
//
// Lua server administration suite provided by WolfAdmin
// see https://dev.timosmit.com/wolfadmin/

// FOR ET: LEGACY ENGINE ONLY


// HOSTNAME & MOTD

set sv_hostname "ET: Legacy Host"               // name of server (max length is 26 chars without color codes)
// max length is "12345678901234567890123456"   // (message should not be longer than this without the color codes)
set server_motd0 " ^NET: Legacy ^7MOTD "        // 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 "24"                          // number of players including private slots
set sv_privateclients "4"                       // 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 "25000"                          // 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 "0"                          // 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 "2"                                 // 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 "1"                         // prevent server flooding
set sv_userInfofloodProtect "1"                 // prevent userinfo flooding
set sv_ipMaxClients "0"                         // limits connections per IP to cvar value (0: no maximum)

// MOD CONFIG - put mod related vars in a separate config
exec legacy.cfg

// MAP ROTATION - set the game type

//exec campaigncycle.cfg                        // Campaign mode
//exec objectivecycle.cfg                       // Objective mode
//exec lmscycle.cfg                             // Last Man Standing mode
exec mapvotecycle.cfg                           // Map Voting mode

// 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 mapvotecycle.cfg"    // defaults to quit
