+set value_name value
. Although this works, this is of course not do-able if you're going to use more options. For this you can create configuration files which are called by the server upon launch.serverlocation/main
. If your server is going to run mods, place it in serverlocation/mods/modname
instead.server.cfg
for now, but this can be anything you want.Although most variables can be configured in the configuration file, not every variable can.+set dedicated
tells the server if it should run as dedicated or not. 1 = lan, 2 = dedicated+set sv_punkbuster
specifies if Punkbuster anti-cheat should be enabled. Since Punkbuster does not support Cod4 anymore, it's recommended to set it at 0.+set sv_maxclients
specifies the maximum amount of players that can connect at the same time. This includes the private slots specified later on.+map_rotate
tells the server to start the map rotation. Although this is not necessarily needed, it won't start a map without it. This prevents player from joining.set
is not required here):sv_hostname
The name of the server that appears in the server list. Colors are supported (note that the ^ is required).rcon_password
Rcon stands for remote connection. This allows admin to manage the server from within the game. This variable sets the password needed for admins to authenticate. It must be at least 8 characters long.g_password
A server password. If set, requires players to enter a password before they join the server. If you don't want this, leave it empty.sv_privatePassword
The password a player needs for private slots. Private slots are kept open to allow admins to join even when the server is on it's player limit.sv_privateclients
The amount of slots the server should reserve for admins.sv_floodProtect
TODOsv_reconnectLimit
The amount of times a client is allowed to try reconnecing on disconnect or failuressv_cheats
Are cheats enabled or not. A cheat could be no-clip, god mode or unlimited ammonution.sv_voice
If voice chat is enabled or not. 1 is on, 0 is off.scr_teambalance
Tells the server if it should try to balance teams if not an even number is in all teams.g_allowvote
Allow the players to vote for maps or not.exec configfilename.cfg
somewhere in your config file. I would recommend adding them all either on top or on the bottom to keep your config readable.sv_modStats
If the server is modded, use seperate player stats (levels, challenges, etc) for the mod or not. Setting this to 0 uses the non-modded stats.sv_authorizemode
Require player authentication. 1 only allows players with legal copies to join, 0 allows cracked players, and -1 allows both types of players while the Activison authentication server is down.sv_showasranked
Show the server as a non-modded server, even if the player has modded servers filtered outsv_statusfile
TODOg_friendlyPlayerCanBlock
Will walking into a friendly player block your or not. Settings this to 0 allows a player to walk through his teammates which can help in case of players blocking paths on purposeg_FFAPlayerCanBlock
Same as above, but for FFA. Allow players to walk through enemies or notsv_autodemorecord
TODO automatically record demo's of each player for administration purposessv_demoCompletedCmd
TODO run a command after recording of a demo is completedsv_screenshotArrivedCmd
TODO run a command after a server-side screenshot is takensv_mapDownloadCompletedCmd
TODO run a command after a map download of a player is completesv_updatebackendname
TODOsv_mapRotation
and follows a specific format. First you require to tell the server what gametype to run, for example gametype dm
(deathmatch, also known as free-for-all).You can use the following gametypes:map mp_mapname
. For example map mp_killhouse
. Place it after the gametype, so gametype dm map mp_killhouse
. If you want more maps just add map mp_mapname
after what you already have.serverdirectory/plugins
. For Windows servers you will need .dll
files, for Linux .so
files.loadplugin pluginname
in the console (either rcon or on the live server output). The pluginname is the name of the plugin file without the file extension. Of course you can also specify this in a config file upon server startup (which is recommended) by just adding the command.serverdirectory/mods
so you end up with the following file structure:set fs_game mods/modname
to the server launch parameters.serverdirectory/main
. This is because this way you can use different config files per mod.