If a league wants a config included in the 2.1 distribution, please submit to me your configs in this format.
here's an example of what the config looks like, using an adapted TWL stopwatch config:
Code: Select all
configname TWL-SW
init
{
set g_gametype 3
set sv_privateclients 0
set g_minGameClients 8
set sv_maxRate 25000
set sv_dl_maxRate 42000
set sv_floodProtect 0
set sv_pure 1
set sv_fps 20
set g_heavyWeaponRestriction 20
set team_maxMortars 2
set team_maxFlamers 2
set team_maxMg42s 2
set team_maxPanzers 2
set g_antilag 1
set g_altStopwatchMode 0
set g_autofireteams 0
set g_complaintlimit 0
set g_ipcomplaintlimit 0
set g_fastres 0
set g_friendlyFire 1
set g_maxlives 0
set g_alliedmaxlives 0
set g_axismaxlives 0
set g_teamforcebalance 0
set g_noTeamSwitching 0
set g_voiceChatsAllowed 99
set g_doWarmup 1
set g_warmup 30
set g_spectatorInactivity 0
set sv_minping 0
set sv_maxping 0
set match_latejoin 1
set match_minplayers 4
set match_mutespecs 0
set match_readypercent 100
set match_timeoutcount 1
set match_timeoutlength 120
set match_warmupDamage 2
set team_maxplayers 0
set team_nocontrols 0
set pmove_fixed 0
set pmove_msec 8
set g_allowVote 1
set vote_limit 99
set vote_percent 51
set vote_allow_comp 1
set vote_allow_gametype 1
set vote_allow_kick 1
set vote_allow_map 1
set vote_allow_matchreset 1
set vote_allow_mutespecs 1
set vote_allow_nextmap 1
set vote_allow_pub 0
set vote_allow_referee 1
set vote_allow_shuffleteams 0
set vote_allow_swapteams 1
set vote_allow_friendlyfire 0
set vote_allow_timelimit 1
set vote_allow_warmupdamage 1
set vote_allow_antilag 0
set vote_allow_balancedteams 0
set vote_allow_muting 1
set b_defaultskills ""
set b_noskillupgrades 0
set b_shove 0
set b_shove_noz 0
set b_statsaver 1
set b_intermissiontime 20
set b_privatemessages 0
set b_match_warmupjoin 0
set b_xpstopwatch 0
set b_multiview 1
set b_stickycharge 1
set b_spectatornames 1
set b_mapscriptdirectory twl-sw
set b_levels_battlesense ""
set b_levels_engineer ""
set b_levels_medic ""
set b_levels_fieldops ""
set b_levels_lightweapons ""
set b_levels_soldier ""
set b_levels_covertops ""
set g_log comp-match.log
command "pb_sv_enable"
command "pb_sv_cvarempty"
command "pb_sv_kicklen 1"
command "sv_cvarempty"
command "sv_cvar cl_maxpackets in 30 100"
command "sv_cvar cl_timenudge eq 0"
command "sv_cvar rate in 4000 25000"
command "sv_cvar snaps in 20 40"
command "sv_cvar cl_freelook eq 1"
command "sv_cvar cg_bobup in 0 0.005"
command "sv_cvar cg_fov in 90 120"
command "sv_cvar cg_shadows in 0 1"
command "sv_cvar cg_thirdperson eq 0"
command "sv_cvar com_maxfps out 0.00001 40"
command "sv_cvar m_pitch out -0.015 0.015"
command "sv_cvar m_yaw eq 0.022"
command "sv_cvar r_flares in 0 1"
command "sv_cvar r_intensity in 1 1.5"
command "sv_cvar r_mapoverbrightbits in 2 3"
command "sv_cvar r_overbrightbits in 0 1"
command "sv_cvar r_picmip in 0 3"
command "pb_sv_cvar r_nv_fogdist_mode INCLUDE NV"
command "sv_cvar r_primitives IN 0 2"
command "sv_cvar cg_errordecay eq 100"
command "sv_cvar r_drawentities eq 1"
command "sv_cvar r_lightmap in 0 1"
command "sv_cvar r_showtris eq 0"
command "sv_cvar r_showmodelbounds eq 0"
command "sv_cvar r_shownormals eq 0"
command "sv_cvar r_wolffog eq 1"
}
map default
{
set g_userTimeLimit 0
set g_useraxisrespawntime 0
command "forcecvar r_drawfoliage 1"
}
map fueldump
{
set g_userTimeLimit 20
set g_useraxisrespawntime 40
}
map radar
{
set g_userTimeLimit 10
command "forcecvar r_drawfoliage 0"
}
map battery
{
set g_userTimeLimit 10
}
map goldrush
{
set g_userTimeLimit 20
}
map oasis
{
set g_userTimeLimit 15
}
map railgun
{
set g_userTimeLimit 15
}
configname must be the first line of the file, it takes a single parameter -- the name of the tournament config. This would be displayed below the "waiting on X players" line in warmup as "TWL-SW Enemy Territory Match".
The init block is executed only once, when the config is loaded by referee or rcon/console. It is never reloaded.
The map blocks are loaded on every map_restart. The parameter is the mapname to match to. A parameter of default will execute that block for all maps. map blocks are executed in order from first to last. Generally you want your default block first, and then specific map blocks to override it.
Inside a block you may have two commands: set and command.
The set command takes two parameters. A cvar name and a cvar value. Any cvar value with spaces in it must be quoted.
The command command takes one parameter, the console command to execute. Any command with spaces in it must be quoted.