Skip to content

Commit

Permalink
Add server config file template
Browse files Browse the repository at this point in the history
  • Loading branch information
ysdragon committed Dec 9, 2024
1 parent 5c60e07 commit 44dc925
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions server.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// Server Config File Template

seta sv_hostname "SERVER_NAME" // server name
seta sv_maxclients "14" // maximum number of players
seta sv_maxrate "10000" // server-side limit for the client rate
seta sv_allowdownload "0" // toggles the ability for clients to download files from the server | default=1
seta sv_timeout "30" // the amount of time for the server to wait for a client packet before assuming a disconnected state | default=120
seta sv_zombietime "1" // the amount of time in minutes before a timed out player is removed from the server | default=2
seta sv_runspeed "250" // running speed | default=250
seta sv_walkspeed "150" // walking speed | default=150
seta g_allowjointime "10" // time in secods the player has to spawn when the round starts in objective mode | default=30
seta g_droppeditemlife "30" // weapons/healthpacks life duration in seconds when dropped | default=30
seta g_forcerespawn "10" // number of seconds until a player is automatically respawned (if the player doesn't do it by itself) | disabled=0, default=0
seta g_forceteamspectate "1" // force team only spectating | default=1
seta g_immediateswitch "0" // faster weapon switch (skips the putaway weapon animation) | 1=enabled, 0=disabled, default=0
seta g_inactivekick "0" // amount of time in seconds a player can remain inactive before kicked | 0=disabled, default=900
seta g_inactivespectate "0" // time in seconds to it takes move an afk player to expectator | 0=disabled, default=60
seta g_teamdamage "1" // toggles team damage | default=0
seta g_voicechat "1" // toggles character specific pain/death sounds (saves server sound indexes if turned off) | default=1
// Server Passwords
seta rconpassword "" // password for remote console control of the server
seta password "" // the serverside password players use to get on the server
seta sv_privateclients "0" // number of spots, out of sv_maxclients, reserved for players with the server password (sv_privatepassword) | default=0
seta sv_privatepassword "" // password for private clients to login with
// Voting options
seta g_allowvote "0" // toggles the voting system | default=1
seta g_votetimeout "0.5" // sets the Vote-Expire-Time | 1=1 minute, 0.5=30 seconds
// Reborn cvars. More info on mohreborn.com
seta g_badchatlimit "3" // limit of bad words a player can say on chat before he gets kicked when sv_filterchat is on | default=3
seta g_teambalance "0" // forces the "Auto Join Team" on new players | default=0
seta sv_antistwh "1" // toggles the Anti Shoot Through Walls Hack System | default=1
seta sv_antiwh "0" // toggles the Anti Wallhack System (Broken, it is not recommended to turn it on) | 0=disabled,
seta sv_banning "1" // toggles the Banning System | default=1
seta sv_disablechat "0" // disables the server's chat | default=0
seta sv_disabletaunt "0" // disables taunts for all players on server | default=0
seta sv_filterchat "1" // toggles the Chat Filtering System | default=1
seta sv_kickbadcmd "0" // when set to 1, server will kick players using malicious or bad commands | default=1
seta sv_kickping "0" // when a player ping exceeds this value, he will get kicked from server | 0=disabled, default=500
seta sv_maxconnperip "3" // maximum connections per IP | -1=disabled, default=3
seta sv_protectnames "1" // toggles the Name Protection System (protectednamefilter.cfg) | default=1
seta sv_recoilemulation "0" // toggles the Anti NoRecoil System | default=0
seta sv_stufftextdetection "0" // toggles the Stufftext Bypass Detection System (Broken, it is not recommended to turn it on) | default=1
seta sv_updatedelay "24" // ammount of hours to wait until next update check | default=12

seta logfile "2" // console logging | 0=no log, 1=buffered, 2=continuous

// Gametype
seta g_gametype "1" // 1=Free-For-All, 2=Team-Match, 3=Round-Based-Match, 4=Objective-Match
seta timelimit "0" // amount of minutes before new map loads or next match begins | 0=no limit
seta fraglimit "50" // sets the fraglimit | 0=no limit
seta roundlimit "0" // sets the roundlimit in minutes | 0=no limit

seta sv_maplist "dm/mohdm1 dm/mohdm3 dm/mohdm4 dm/mohdm6"

map "dm/mohdm6" // Starts the first map (Stalingrad)

0 comments on commit 44dc925

Please sign in to comment.