From 98918a418e7d99beea08cfaa69bdd15164efc635 Mon Sep 17 00:00:00 2001 From: Frisasky Date: Wed, 8 May 2019 04:27:39 +0800 Subject: [PATCH] Rewrite HL2DM config file (#53) Co-authored-by: Frisa --- HalfLife2Deathmatch/server.cfg | 211 ++++++++++++++++++++++++++++++++- 1 file changed, 208 insertions(+), 3 deletions(-) diff --git a/HalfLife2Deathmatch/server.cfg b/HalfLife2Deathmatch/server.cfg index dedeb76..4c2461c 100644 --- a/HalfLife2Deathmatch/server.cfg +++ b/HalfLife2Deathmatch/server.cfg @@ -1,4 +1,12 @@ -// Hostname for server. +// ************************************************************************** // +// // +// Half-Life 2 DeathMatch - server.cfg // // +// // +// ************************************************************************** // + +// .................................. Basic ................................. // + +// Hostname - Name of the server. hostname "SERVERNAME" // RCON - remote console password. @@ -7,9 +15,206 @@ rcon_password "ADMINPASSWORD" // Server password - for private servers. sv_password "" -// Server Logging +// Email - Server admin email. +// Example: sv_contact "email@example.com" +sv_contact "" + +// LAN mode - If set the server will not show on the internet. +// Default: sv_lan 0 +sv_lan 0 + +// ............................. Server Logging ............................. // + +// Enable log - Enables logging to file, console, and udp < on | off >. +// Recommended: log on log on + +// Log bans - Log server bans in the server logs. +// Default: sv_logbans 1 +// Recommended: sv_logbans 1 sv_logbans 1 + +// Log echo - Display log information to the server console. +// Default: sv_logecho 1 +// Recommended: sv_logecho 1 sv_logecho 1 + +// Log file - Log server information in the log file. +// Default: sv_logfile 1 +// Recommended: sv_logfile 1 sv_logfile 1 -sv_log_onefile 0 \ No newline at end of file + +// One file log - Log server information to only one file. +// Default: sv_log_onefile 0 +// Recommended: sv_log_onefile 0 +sv_log_onefile 0 + +// ................................ Ban List ................................ // + +// User ban - Server banlist based on user steam ID. +// Recommended: exec banned_user.cfg +exec banned_user.cfg + +// IP ban - Server banlist based on user IP. +// Recommended: exec banned_ip.cfg +exec banned_ip.cfg + +// Write ID - Writes a list of permanently-banned user IDs to banned_user.cfg. +writeid + +// Write IP - Save the ban list to banned_ip.cfg. +writeip + +// ........................ HL2DM Settings...................... // + +// set to 1 if this is a teamplay server +mp_teamplay 1 + +// allow or disallow damage from teammates +mp_friendlyfire 0 + +// how much damage is inflicted from falls, default 0 +mp_falldamage 0 + +// set to 1 if weapons stay (immediate pickup by players without weapons) +// requires that there be additional ammo (can't pick up a weapon to get more ammo) +mp_weaponstay 0 + +// set to force players to respawn after death +mp_forcerespawn 1 + +// enable player footstep sounds +mp_footsteps 1 + +// enable flashlight +mp_flashlight 1 + +// enable autocrosshair (default is 1) +mp_autocrosshair 1 + +// allow bots +mp_allowNPCs 1 + +// world gravity (default 600) +sv_gravity 600 + +// world friction (default 4) +sv_friction 4 + +// world water friction (default 1) +sv_waterfriction 1 + +// Minimum stopping speed when on ground +sv_stopspeed 100 + +// spectator settings +sv_noclipaccelerate 5 +sv_noclipspeed 5 + +sv_specaccelerate 5 +sv_specspeed 3 +sv_specnoclip 1 + +// player movement acceleration rate (default 10) +sv_accelerate 10 +sv_airaccelerate 10 +sv_wateraccelerate 10 + +// max player speed (default 320) +sv_maxspeed 320 + +// misc physics settings, leave them as-is +sv_rollspeed 200 +sv_rollangle 0 +sv_bounce 0 + +// player stepsize - dont mess with this (default 18) +sv_stepsize 18 + +// teamplay talk all (1) or team only (0) +sv_alltalk 1 + +// enable voice on server +sv_voiceenable 1 + +// disable pause on server (set this to 0 always) +sv_pausable 0 + +// disable cheats (set this to 0 always) +sv_cheats 0 + +// teamserver coop (default 0) +coop 0 + +// deathmatch - set this to 1 +deathmatch 1 + +// allow players to upload sprays (default 1) +sv_allowupload 1 + +// allow sprays and map content to be downloaded (default 1) +sv_allowdownload 1 + +// how often players can spray tags (default 20) +decalfrequency 20 + +// fast http download url address +sv_downloadurl "" + +// Enable instanced baselines - Saves network overhead +sv_instancebaselines 0 + +//Force server side preloading (default 0) +sv_forcepreload 1 + +// set fraglimit before mapchange +mp_fraglimit 0 + +// set timelimit before map change +mp_timelimit 30 + +// Max bandwidth rate allowed on server, 0 == unlimited +sv_maxrate 35000 + +// Min bandwidth rate allowed on server, 0 == unlimited +sv_minrate 10000 + +// Maximum updates per second that the server will allow (default 60) +sv_maxupdaterate 66 + +// Minimum updates per second that the server will allow (default 10) +sv_minupdaterate 33 + +// Maximum lag compensation in seconds (default 1) +sv_maxunlag 1 + +// explosion size (default 1) +sv_robust_explosions 1 + +// Maximum speed any ballistically moving object is allowed to attain per axis (default 3500) +sv_maxvelocity 3500 + +// rcon failure settings, uncomment the cvars to enabling settings +//sv_rcon_banpenalty 0 +//sv_rcon_maxfailures 10 +//sv_rcon_minfailures 5 +//sv_rcon_minfailuretime 30 + +//The region of the world to report this server in (255 = world) +sv_region 255 + +// gather server statistics +sv_stats 1 + +//After this many seconds without a message from a client, the client is dropped (default 65) +sv_timeout 65 + +//Enables player lag compensation +sv_unlag 1 + +//Enables HLTV on this server +sv_hltv 0 + +//toggles whether the server allows spectator mode or not +mp_allowspectators 0 +