What is the variant? How do I use a custom variant?

Post Reply
User avatar
Edge100x
Founder
Founder
Posts: 12945
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

What is the variant? How do I use a custom variant?

Post by Edge100x »

The "variant" is a set of variables used by the server. Four variants are available -- Standard, Pro, BeginnersPlayground, and Custom. Combined with the gameRules setting and the map, the variant determines what clients are playing and how the server responds.

Only two gameRules values support Pro and BeginnersPlayground:

Code: Select all

Mode	   Standard  Pro  BeginnersPlayground
Assault    X		
Crash      X		
CTF        X		
Extraction X		
DM         X         X    X
TDM        X         X    X
Hunter     X		
Spears     X		
If you change the variant to Custom, you can choose your own values for game variables, but changing any of these will make the game unranked:

g_timelimit
g_scoreLimit
g_minplayerlimit
g_autoReviveTime
g_roundlimit
g_numLives
g_maxHealthMultiplier
g_mpRegenerationRate
g_friendlyfireratio
hud_radarTypeMP
g_mpHeadshotsOnly
g_allowCustomLoadouts
g_allowSuitPerks
g_allowTeamPerks
hud_dogtagsEnable
g_allowFatalityBonus
g_modevarivar_proHud
g_modevarivar_disableNanosuit
g_modevarivar_disableKillCam
g_modevarivar_disableSpectatorCam
g_allowExplosives
g_forceWeapon

Changing any of these will keep the game ranked:

g_autoAssignTeams
gl_time
g_gameRules_startTimerLength
g_pinglimit
g_pinglimittimer
g_punishfriendlydeaths
gl_initialTime
sv_maxPlayers
g_tk_punish
g_tk_punish_limit
g_idlekicktime

Here is an example LevelRotation.xml with a custom variant:

Code: Select all

<levelRotation name="TDM" randomize = "0" includeNonPresentLevels = "1">
	<ServerInfo>
	 	<Details name="Custom Variant Server" />
		<Variant name="Custom">
			<Option setting="g_maxHealthMultiplier 1.0" />	<!--Multiplyer (default=1.0) -->
			<Option setting="g_mpRegenerationRate 1" />	<!-- 0=slow, 1=normal, 2=fast (default=1) -->
		</Variant>
	</ServerInfo>
</levelRotation>
Post Reply