//*********************************************************************************
//                                                                                *
//             No More Room in Hell - Community Developed Server.cfg              *
//                         Version 1.3 - March 7, 2015                            *
//     Version 1.0: http://avidblur.com/nmrih/server.cfg                          *
//     Version 1.2: http://fastdl.zombiegaming.net/nmrih/cfg/server.cfg           *
//     Version 1.3: http://gameservermanagers.com/nmrih/server.cfg                *
//                                                                                *
// ********************************************************************************

// ............................ Basic Server Settings ............................. //

// The name of your server as you want it to show up on NMRiH's Server Browser
hostname "hostname"

// The contact email for your main server admin
sv_contact "email@example.com"

// Password for rcon (remote connection), can be left blank for no RCon, it's recommended that you make a secure password.
// Need a secure password? Check out https://www.grc.com/passwords.htm for automatically generated ones
rcon_password "rconpassword"

// Makes your server private so only people with the password can play on it
sv_password ""

// The region of the world this server will report as being located in
// -1 = World
//  0 = US East Coast
//  1 = US West Coast
//  2 = South America
//  3 = Europe
//  4 = Asia
//  5 = Australia
//  6 = Middle East
//  7 = Africa
sv_region -1

// Is this server running on LAN or is it accessable to the world wide web?
//  0 = Internet
//  1 = Local Area Network
sv_lan 0

// Enable communication over voice via microphone
sv_voiceenable 1

// Players can hear all other players, no team restrictions 0=off 1=on
sv_alltalk 1

//Gameplay can be chosen between classic/normal, sv_difficulty casual is casual, sv_difficulty normal is normal
sv_difficulty casual

// Time spend on a single map (in minutes) before switching to a new one automatically
mp_timelimit 45

// Maximum number of rounds to spend on a map before moving to the next one
//mp_maxrounds 0

// Name of the .txt file containing a list of maps the server should cycle through
// mapcycle.txt - All maps
// mapcycle_objective.txt - Objective maps only
// mapcycle_survival.txt - Survival maps only
mapcyclefile "mapcycle.txt"

// A comma seperated list of tags that will show up in the server browser & make it easier for users to find the server they're looking for
// "Official" tags:
// custom - If your server is running custom gameplay settings/configs
// objective - If your server only cycles through objective maps
// survival - If your server only cycles through survival maps
// IE: sv_tags "example1, example2, example3"
sv_tags "objective, survival, vanilla"

// ............................ Download Settings .................................. //

// Allow clients to upload sprays etc (NMRiH has sprays disabled by default, so 0 might be the best option)
sv_allowupload 0

// Allow clients to download files
sv_allowdownload 1

// Maximum file size allowed for downloading individual maps/textures etc (Calculated in MB)
net_maxfilesize 64

// Allow downloading of maps/textures/etc from a website for faster download speeds!
// NOTE: If left blank (sv_downloadurl "") connecting clients will download custom maps etc directly from your Gameserver.
//
// Example: 1 - Game server has a map called "nmo_example.bsp" located in the map folder
//          2 - Web server has the exact same "nmo_example.bsp" file located at "http://www.yourwebsite.com/nmrih/maps/nmo_example.bsp"
//          3 - Therefore, sv_downloadurl should be set to "http://www.yourwebsite.com/nmrih/"
//
sv_downloadurl ""


// ............................ Performance Settings .............................. //

// Sets a limit to the frame rate that the server runs at (Set a framerate your server can consistently manage)
fps_max 66

// Min bandwidth rate allowed on server, 0 = Unlimited
sv_minrate 0

// Max bandwidth rate allowed on server, 0 = Unlimited
sv_maxrate 60000

//
net_splitpacket_maxrate 60000

sv_parallel_packentities 1

sv_parallel_sendsnapshot 1

// Use a high priority thread to send queued packets out instead of sending them each frame.
net_queued_packet_thread 1

// Max # of seconds we can wait for next packets to be sent based on rate setting (0 == no limit).
net_maxcleartime 0.01

// Minimum updates per second that the server will allow
sv_minupdaterate 66

// Maximum updates per second that the server will allow
sv_maxupdaterate 66

// Minimum commands per second that the server will allow
sv_mincmdrate 66

// Maximum commands per second that the server will allow
sv_maxcmdrate 66

sv_client_min_interp_ratio 0

sv_client_max_interp_ratio 4

sv_client_cmdrate_difference 0

// This can be used to force the value of cl_predict for connected clients (only while they are connected).
// -1 = let clients set cl_predict to anything
//  0 = force cl_predict to 0
//  1 = force cl_predict to 1
sv_client_predict 1

// .............................. Additional Settings .............................. //

// Allow the use of the "wait" command by clients? (Best left disabled to prevent the abuse of scripts - 0)
sv_allow_wait_command 0

// Enable logging? (off/on)
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

// ............................... Sourcemod Settings .............................. //


// ********************************************************************************
//                                                                                *
//                Advanced Server Settings (Best left untouched!)                 *
//                                                                                *
// ********************************************************************************

exec banned_user.cfg
exec banned_ip.cfg

//These commands will run on map change, sometimes a crash may wipe a recent ban from your banlist, this minimises that issue
writeid
writeip

//**********************************************************************************************************
// Master Server Settings
//**********************************************************************************************************
sv_master_legacy_mode 0                 // Disable legacy mode, since steam master servers won't support it anymore
heartbeat                               // Send heartbeat that this server is ready. Should be the last line of the config
//**********************************************************************************************************

//-----End of Server.cfg-----