L4D2 Server Config
L4D2 Server Config
// This states how players should contact you. Use your email or website
sv_contact your@email.com
// If you want to use a search key to find the server in the lobby, uncomment and
edit this line
sv_search_key ""
sv_tags ""
// STEAM GROUP
sv_steamgroup GROUPIDHERE
//MASTERSERVERS
//FRIENDLY FIRE
sm_cvar survivor_friendly_fire_factor_easy 0
sm_cvar survivor_friendly_fire_factor_expert 0
sm_cvar survivor_friendly_fire_factor_hard 1
sm_cvar survivor_friendly_fire_factor_normal 1
// CHEAT/CONFIG
sv_lan 0
sv_cheats 0
sv_consistency 1
sv_maxcmdrate 101
sv_maxrate 30000
sm_cvar sv_disable_glow_survivors 0
sm_cvar sv_disable_glow_faritems 0
sm_cvar sv_rescue_disabled 0
//ADVERTRISMENTS
sm_advertisements_enabled 1
sm_advertisements_interval 480
//MOTD
motd_enabled 1
//GAME MODE
sv_gametypes "coop, versus, mutation"
sm_cvar mp_gamemode coop
//DIFFICULTY
z_difficulty Impossible
//LOBBY CONNECT
sv_allow_lobby_connect_only 0
//BEBOP
l4d_maxplayers "8"
sv_maxplayers "8"
sm_cvar l4d_maxplayers "8"
sv_visiblemaxplayers "-1"
sm_cvar l4d_survivor_limit "8"
sm_cvar sv_removehumanlimit "1"
//PIPE-BOMB DURATION
sm_cvar pipe_bomb_timer_duration "10"
/////////////////////////
//Game Settings
////////////
mp_disable_autokick 1 //(command)prevents a userid from being auto-kicked
(Usage mp_diable_autokick )
sv_allow_wait_command 0 //default 1; Allow or disalow the wait command on
clients connected to this server.
sv_alternateticks 0 //defulat 0; (singleplayer)If set, server only simulates
entities on even numbered ticks.
sv_clearhinthistory 0 //(command)Clear memory of server side hint displayed
to the player.
sv_consistency 0 //default 1; Whether the server enforces file consistency
for critical files
sv_pausable 0 //default 0; is the server pausable
sv_forcepreload 1 //default 0; Force server side preloading
sv_pure_kick_clients 0 //default 1; If set to 1, the server will kick
clients with mismatchng files. Otherwise, it will issue a warning to the client.
sv_pure 0 //If set to 1, server will force all client files execpt
whitelisted ones (in pure_server_whitelist.txt) to match server's files.
//If set to 2, the server will force all clietn files to come from
steam and not load pure_server_whilelist.txt. Set to 0 for disabled.
/////////////////////////
//communication
////////////
sv_voiceenable 1 //default 1; enable/disable voice comm
sv_alltalk 1 //default 0; Players can hear all other players' voice
communication, no team restrictions
/////////////////////////
//LOGGING
////////////
log on //Creates a logfile (on | off)
sv_logecho 0 //default 0; Echo log information to the console.
sv_logfile 1 //default 1; Log server information in the log file.
sv_log_onefile 0 //default 0; Log server information to only one file.
sv_logbans 1 //default 0;Log server bans in the server logs.
sv_logflush 0 //default 0; Flush the log files to disk on each write (slow).
sv_logsdir logs //Folder in the game directory where server logs will be
stored.
/////////////////////////
//Bans
// execute banned.cfgs at server start. Optimally at launch commandline.
// Put writeip/wrtieid commands in the bottom of server.cfg AFTER banned.cfgs have
loaded.
////////////
exec banned_user.cfg //loads banned users' ids
exec banned_ip.cfg //loads banned users' ips
writeip //Save the ban list to banned_ip.cfg.
writeid //Wrties a list of permanently-banned user IDs to banned_user.cfg.
/////////////////////////
//Network Tweaks - Increase network performance
////////////
rate 10000 //default 10000; Max bytes/sec the host can recieve data
sv_minrate 15000 //default "5000"; Min bandwidth rate allowed on server, 0 =
unlimited
sv_maxrate 30000 //default "0"; Max bandwidth rate allowed on server, 0 =
unlimited
sv_mincmdrate 20 //default 0; This sets the minimum value for cl_cmdrate. 0 =
unlimited [cevo=67]
sv_maxcmdrate 33 //default 40; (If sv_mincmdrate is > 0), this sets the maximum
value for cl_cmdrate. [cevo=101]