Skip to content

Call of Duty: United Offensive — Server Config

Reference for the CoD:UO server.cfg file.

Location

The server configuration file is located at:

main/server.cfg

Edit this file via SFTP. Changes take effect after a server restart.

Example Configuration

ini
// Server identity
set sv_hostname "My uHost CoD:UO Server"
set sv_maxclients "24"

// Passwords
set rconpassword "change_me"
set g_password ""

// Network
set sv_maxRate "10000"
set sv_minPing "0"
set sv_maxPing "0"
set sv_allowdownload "1"
set sv_pure "1"

// Game settings
set g_gametype "tdm"
set scr_teambalance "1"
set scr_friendlyfire "0"
set g_allowvote "1"
set scr_killcam "1"
set scr_freelook "1"
set scr_spectateenemy "1"

// Logging
set logfile "1"
set g_log "games_mp.log"

// Time limits
set scr_tdm_timelimit "20"
set scr_tdm_scorelimit "150"

// Map rotation
set sv_mapRotation "gametype tdm map mp_foy gametype tdm map mp_arnhem gametype tdm map mp_cassino gametype tdm map mp_italy gametype tdm map mp_rhinevalley"
set sv_mapRotationCurrent ""

Key Settings

Server Identity

CVarDescriptionDefault
sv_hostnameServer name shown in browser""
sv_maxclientsMaximum connected players20
g_passwordServer join password"" (none)
rconpasswordRCON admin password""
scr_motdMessage of the day""

Server Info Fields

These optional fields appear in the server browser:

ini
sets .Admin "YourName"
sets .Email "admin@example.com"
sets .IRC "#yourchannel"
sets .Website "http://yoursite.com"
sets .Location "North America"

Network

CVarDescriptionDefault
sv_maxRateMax data rate per client (bytes/s)0 (unlimited)
sv_minPingMinimum allowed ping0
sv_maxPingMaximum allowed ping0 (unlimited)
sv_allowdownloadAllow clients to download files0
sv_pureEnforce unmodified client files1
sv_allowAnonymousAllow anonymous player names0
sv_fpsServer frame rate20

Master Servers

ini
set sv_master1 "codmaster.activision.com"

Gameplay

CVarDescriptionValues
g_gametypeGame modedm, tdm, sd, re, bel, hq
scr_friendlyfireFriendly fire mode0 off · 1 on · 2 reflect · 3 shared
scr_teambalanceAuto-balance teams0 off · 1 on
g_allowvoteAllow player voting0 off · 1 on
scr_killcamKill cam0 off · 1 on
scr_freelookFree look when dead0 off · 1 on
scr_spectateenemySpectate enemy when dead0 off · 1 on

Map Rotation

The sv_mapRotation cvar defines the map and game type cycle:

ini
set sv_mapRotation "gametype tdm map mp_foy gametype sd map mp_arnhem gametype hq map mp_italy"

Format: gametype <type> map <mapname> repeated for each entry.

Game Types

AbbreviationFull Name
tdmTeam Deathmatch
dmDeathmatch
sdSearch & Destroy
reRetrieval
belBehind Enemy Lines
hqHeadquarters

Game Mode Settings

Team Deathmatch

CVarDescriptionExample
scr_tdm_scorelimitScore limit (kills)150
scr_tdm_timelimitTime limit (minutes)20

Deathmatch

CVarDescriptionExample
scr_dm_scorelimitScore limit (kills)80
scr_dm_timelimitTime limit (minutes)20

Search & Destroy

CVarDescriptionExample
scr_sd_scorelimitScore limit per round5
scr_sd_roundlimitTotal rounds per map7
scr_sd_roundlengthRound length3
scr_sd_graceperiodGrace period (seconds)20
scr_sd_timelimitTime limit0 (infinite)

Retrieval

CVarDescriptionExample
scr_re_scorelimitScore limit5
scr_re_roundlimitRound limit7
scr_re_roundlengthRound length3
scr_re_graceperiodGrace period (seconds)20
scr_re_showcarrierShow item carrier0 off · 1 on
scr_re_timelimitTime limit0 (infinite)

Behind Enemy Lines

CVarDescriptionExample
scr_bel_scorelimitScore limit50
scr_bel_timelimitTime limit (minutes)30
scr_bel_alivepointtimeAlive point interval10

Headquarters

CVarDescriptionExample
scr_hq_scorelimitScore limit50
scr_hq_timelimitTime limit (minutes)20

Weapon Settings

Toggle individual weapons on (1) or off (0).

United Offensive Weapons

CVarWeapon
scr_allow_pistolsPistols
scr_allow_satchelSatchel Charges
scr_allow_smokeSmoke Grenades
scr_allow_grenadesGrenades
scr_allow_flamethrowerFlamethrower
scr_allow_artilleryArtillery
scr_allow_bazookaBazooka
scr_allow_mg34MG34
scr_allow_dp28DP28
scr_allow_mg30cal.30 Cal Machine Gun
scr_allow_gewehr43Gewehr 43
scr_allow_svt40SVT-40

Original CoD Weapons

CVarWeapon
scr_allow_barBAR
scr_allow_brenBren LMG
scr_allow_enfieldLee-Enfield
scr_allow_kar98kKar98k
scr_allow_kar98ksniperKar98k Sniper
scr_allow_m1carbineM1 Carbine
scr_allow_m1garandM1 Garand
scr_allow_mp40MP40
scr_allow_mp44MP44
scr_allow_nagantMosin-Nagant
scr_allow_nagantsniperMosin-Nagant Sniper
scr_allow_panzerfaustPanzerfaust
scr_allow_ppshPPSh-41
scr_allow_springfieldSpringfield
scr_allow_stenSten
scr_allow_thompsonThompson

Vehicle Settings

Toggle vehicles and emplacements on (1) or off (0).

CVarVehicle
scr_allow_flak88Flak 88
scr_allow_su152SU-152
scr_allow_elefantElefant
scr_allow_panzerivPanzer IV
scr_allow_t34T-34
scr_allow_shermanSherman
scr_allow_horchHorch
scr_allow_gaz67bGAZ-67B
scr_allow_willyjeepWillys Jeep

TIP

After editing server.cfg, restart your server from the dashboard for changes to take effect.

WARNING

Using original CoD maps with UO game types like Headquarters is not recommended. The maps are too small for ranked artillery strikes and excessive smoke grenades.

Stop Paying for Empty Servers.