You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
290 lines
9.4 KiB
290 lines
9.4 KiB
// ************************************************************************** //
|
|
// //
|
|
// Call of Duty 4 X - server.cfg //
|
|
// Version 260426 //
|
|
// //
|
|
// ************************************************************************** //
|
|
|
|
// ................................ Metadata ................................ //
|
|
|
|
// Optional server metadata used by some admin tools.
|
|
sets _Admin "Admin"
|
|
sets _Email ""
|
|
sets _Website ""
|
|
sets _Location ""
|
|
sets _Maps ""
|
|
sets _Gametype ""
|
|
|
|
// .................................. Basic ................................. //
|
|
|
|
// sv_hostname - Name shown in the server browser.
|
|
set sv_hostname "SERVERNAME"
|
|
|
|
// g_motd - Message shown to each player on first spawn.
|
|
set g_motd ""
|
|
|
|
// dedicated - 0 = listen, 1 = LAN dedicated, 2 = internet dedicated.
|
|
set dedicated "2"
|
|
|
|
// rcon_password - Remote console password. Leave empty to disable.
|
|
set rcon_password "ADMINPASSWORD"
|
|
|
|
// g_password - Join password. Leave empty to disable.
|
|
set g_password ""
|
|
|
|
// sv_privateClients - Reserved slots available only with private password.
|
|
set sv_privateClients "2"
|
|
|
|
// sv_privatePassword - Password for reserved slots.
|
|
set sv_privatePassword "mypassword"
|
|
|
|
// sv_authorizemode - 1 = legal clients only, 0 = allow cracked clients, -1 = mixed fallback.
|
|
set sv_authorizemode "0"
|
|
|
|
// sv_authtoken - CoD4X master-list auth token. Uncomment and set for public listing.
|
|
// set sv_authtoken "REPLACE_WITH_YOUR_COD4MASTER_TOKEN"
|
|
|
|
// sv_showasranked - 0 = show modded server as unranked, 1 = show as ranked.
|
|
set sv_showasranked 0
|
|
|
|
// ............................. Server Logging ............................. //
|
|
|
|
// g_logsync - Log write mode.
|
|
// 0 = no log, 1 = buffered, 2 = continuous, 3 = append
|
|
set g_logsync "2"
|
|
|
|
// logfile - 0 = disabled, 1 = enabled.
|
|
set logfile "1"
|
|
|
|
// g_log - Log file name. Default is games_mp.log.
|
|
set g_log "games_mp.log"
|
|
|
|
// sv_log_damage - Include damage events in logs.
|
|
set sv_log_damage "1"
|
|
|
|
// sv_statusfile - XML server status output. Leave empty to disable.
|
|
set sv_statusfile "serverstatus.xml"
|
|
|
|
// ................................ Network ................................ //
|
|
|
|
// net_ip - Bind address.
|
|
// set net_ip "0.0.0.0"
|
|
|
|
// net_port - Network port.
|
|
// set net_port 28960
|
|
|
|
// sv_maxRate - Maximum client rate.
|
|
// set sv_maxRate 25000
|
|
|
|
// sv_minPing - Minimum ping in ms allowed to join.
|
|
set sv_minPing "0"
|
|
|
|
// sv_maxPing - Maximum ping in ms allowed to join.
|
|
set sv_maxPing "350"
|
|
|
|
// sv_timeout - Seconds before timing out a client with no new message.
|
|
set sv_timeout 40
|
|
|
|
// sv_connectTimeout - Seconds to wait while a client is loading.
|
|
set sv_connectTimeout 90
|
|
|
|
// sv_zombieTime - Seconds to keep a disconnected client for final message handling.
|
|
set sv_zombieTime 2
|
|
|
|
// sv_reconnectlimit - Seconds before a prior client can reconnect.
|
|
set sv_reconnectlimit 5
|
|
|
|
// Flood protection is enabled by default.
|
|
// sv_floodProtect, sv_maxRate
|
|
|
|
// ............................... Compatibility ............................ //
|
|
|
|
// sv_fps - Server FPS. Do not change.
|
|
// set sv_fps "20"
|
|
|
|
// sv_punkbuster - PunkBuster is not supported on CoD4X.
|
|
// set sv_punkbuster "0"
|
|
|
|
// sv_pure - IWD integrity checks.
|
|
// 0 = off, 1 = on
|
|
// set sv_pure "1"
|
|
|
|
// g_antilag - Anti-lag checks for weapon hits.
|
|
// 0 = off, 1 = on
|
|
// set g_antilag "1"
|
|
|
|
// ModStats - Legacy template variable for mod stats behavior.
|
|
// 1 = per-mod stats, 0 = basegame stats
|
|
// set ModStats 1
|
|
|
|
// sv_allowAnonymous - Allow anonymous clients.
|
|
// 0 = off, 1 = on
|
|
set sv_allowAnonymous "0"
|
|
|
|
// ................................ Gameplay ................................ //
|
|
|
|
// sv_mapRotation - Automatic map and gametype rotation.
|
|
set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant"
|
|
|
|
// sv_randomMapRotation - 0 = random order, 1 = sequential order.
|
|
// set sv_randomMapRotation 1
|
|
|
|
// g_deadChat - Dead players can use text chat.
|
|
// 0 = off, 1 = on
|
|
set g_deadChat "1"
|
|
|
|
// voice_deadChat - Dead players can use voice chat.
|
|
// 0 = off, 1 = on
|
|
set voice_deadChat "0"
|
|
|
|
// g_gravity - Player gravity. Default is 800.
|
|
set g_gravity "800"
|
|
|
|
// sv_disableClientConsole - Disable client console.
|
|
// 0 = no, 1 = yes
|
|
set sv_disableClientConsole "0"
|
|
|
|
// scr_teambalance - Automatic team balancing.
|
|
// 0 = no, 1 = yes
|
|
set scr_teambalance "1"
|
|
|
|
// scr_team_fftype - Friendly fire mode.
|
|
// 0 = off, 1 = on, 2 = reflect damage, 3 = shared damage
|
|
set scr_team_fftype "0"
|
|
|
|
// scr_game_spectatetype - Spectator mode.
|
|
// 0 = off, 1 = team/player, 2 = free
|
|
set scr_game_spectatetype "2"
|
|
|
|
// scr_hardcore - Hardcore mode.
|
|
// 0 = off, 1 = on
|
|
set scr_hardcore 0
|
|
|
|
// scr_oldschool - Oldschool mode.
|
|
// 0 = off, 1 = on
|
|
set scr_oldschool "0"
|
|
|
|
// g_friendlyPlayerCanBlock - Collision between teammates.
|
|
// 0 = off, 1 = on
|
|
set g_friendlyPlayerCanBlock 1
|
|
|
|
// g_FFAPlayerCanBlock - Collision in free-for-all modes.
|
|
// 0 = off, 1 = on
|
|
set g_FFAPlayerCanBlock 1
|
|
|
|
// Additional gameplay settings.
|
|
set scr_drawfriend "1" // Show teammates. 0 = off, 1 = on
|
|
set scr_enable_scoretext "1" // Show hit message. 0 = no, 1 = yes
|
|
set scr_game_allowkillcam "1" // Allow killcam after death. 0 = no, 1 = yes
|
|
set scr_game_deathpointloss "0" // Deduct points on death. 0 = no, 1 = yes
|
|
set scr_game_suicidepointloss "0" // Deduct points on suicide. 0 = no, 1 = yes
|
|
set scr_game_matchstarttime "10" // Seconds until match starts
|
|
set scr_game_playerwaittime "10" // Respawn delay in seconds
|
|
set scr_player_forcerespawn "-1" // Force respawn behavior. Engine/mod dependent
|
|
set scr_player_healthregentime "5" // Health regeneration delay in seconds
|
|
set scr_player_maxhealth "100" // Maximum health
|
|
set scr_player_sprinttime "4" // Sprint time in seconds
|
|
set scr_game_onlyheadshots "0" // Headshots only. 0 = no, 1 = yes
|
|
set scr_teamKillPunishCount "3" // Kick after this many team kills
|
|
set scr_team_teamkillspawndelay "20" // Spawn delay after team kill in seconds
|
|
set scr_team_teamkillpointloss "1" // Deduct points for team kill. 0 = no, 1 = yes
|
|
set scr_enable_hiticon "1" // Show hit icon. 0 = off, 1 = on
|
|
|
|
// ................................. Game Modes ............................. //
|
|
|
|
// Deathmatch (dm)
|
|
set scr_dm_scorelimit "1000"
|
|
set scr_dm_timelimit "15"
|
|
set scr_dm_roundlimit "1"
|
|
set scr_dm_numlives "0"
|
|
set scr_dm_playerrespawndelay "3"
|
|
set scr_dm_waverespawndelay "0"
|
|
|
|
// Team Deathmatch (war)
|
|
set scr_war_scorelimit "2000"
|
|
set scr_war_timelimit "10"
|
|
set scr_war_roundlimit "1"
|
|
set scr_war_numlives "0"
|
|
set scr_war_playerrespawndelay "3"
|
|
set scr_war_waverespawndelay "0"
|
|
|
|
// Domination (dom)
|
|
set scr_dom_scorelimit "250"
|
|
set scr_dom_timelimit "0"
|
|
set scr_dom_numlives "0"
|
|
set scr_dom_playerrespawndelay "3"
|
|
set scr_dom_roundlimit "1"
|
|
set scr_dom_waverespawndelay "0"
|
|
|
|
// Headquarters (koth)
|
|
set scr_koth_scorelimit "250"
|
|
set scr_koth_timelimit "15"
|
|
set koth_kothmode "0" // Classic HQ mode. 0 = off, 1 = on
|
|
set koth_capturetime "20"
|
|
set koth_spawntime "3" // 0 = immediate, x = seconds
|
|
set scr_koth_numlives "0"
|
|
set scr_koth_playerrespawndelay "3"
|
|
set scr_koth_roundlimit "1"
|
|
set scr_koth_roundswitch "1"
|
|
set scr_koth_waverespawndelay "0"
|
|
set koth_autodestroytime "60"
|
|
set koth_delayPlayer "3"
|
|
set koth_destroytime "10"
|
|
set koth_spawnDelay "3"
|
|
|
|
// Sabotage (sab)
|
|
set scr_sab_scorelimit "2"
|
|
set scr_sab_timelimit "10"
|
|
set scr_sab_roundswitch "1"
|
|
set scr_sab_bombtimer "30"
|
|
set scr_sab_planttime "2.5"
|
|
set scr_sab_defusetime "5"
|
|
set scr_sab_hotpotato "0"
|
|
set scr_sab_numlives "0"
|
|
set scr_sab_playerrespawndelay "5"
|
|
set scr_sab_roundlimit "0"
|
|
set scr_sab_waverespawndelay "0"
|
|
|
|
// Search and Destroy (sd)
|
|
set scr_sd_scorelimit "9"
|
|
set scr_sd_timelimit "2.5"
|
|
set scr_sd_roundswitch "4"
|
|
set scr_sd_bombtimer "45"
|
|
set scr_sd_planttime "5"
|
|
set scr_sd_defusetime "7"
|
|
set scr_sd_multibomb "0"
|
|
set scr_sd_numlives "1"
|
|
set scr_sd_playerrespawndelay "0"
|
|
set scr_sd_roundlimit "0"
|
|
set scr_sd_waverespawndelay "0"
|
|
|
|
// g_gametype - Active gametype. One of war, dm, sd, sab, or koth.
|
|
set g_gametype "war"
|
|
|
|
// ............................. Optional Features .......................... //
|
|
|
|
// Optional CoD4X features.
|
|
// set sv_autodemorecord 1 // Record player demos server-side into the demos folder
|
|
// set sv_demoCompletedCmd "" // Command to execute when a demo is saved
|
|
// set sv_screenshotArrivedCmd "" // Command to execute when a screenshot arrives
|
|
// set sv_legacyguidmode 0 // 1 = old 32-char GUIDs, 0 = CoD4X GUID format
|
|
|
|
// CoD4X v15.9+ banlist support moved to plugins.
|
|
// loadplugin simplebanlist
|
|
// loadplugin legacybanlist
|
|
|
|
// ............................... Custom Maps .............................. //
|
|
|
|
// Setup for custom maps when running a mod.
|
|
// seta sv_wwwDownload "1" // Enable download redirection
|
|
// seta sv_wwwBaseURL "http://someserver/cod4dl/" // URL to download from
|
|
// seta sv_wwwDlDisconnected "0" // Disconnect clients while downloading
|
|
|
|
// sv_nosteamnames - Use CoD4X names when Steam is available.
|
|
// 0 = off, 1 = on
|
|
set sv_nosteamnames 1
|
|
|
|
// Startup command.
|
|
// Required to load the first map in rotation. Alternatives include map mp_killhouse
|
|
// or setting +map mp_killhouse in launch parameters.
|
|
map_rotate
|
|
|