New Cvars

From Unvanquished
Jump to: navigation, search


This is a complete list of cvars added to Unvanquished, using Tremulous GPP revision 2259 as a reference point.

Many are not documented. It is likely that some are not used.

In some cases, cvars that existed in Tremulous are shown because their workings have changed.

Name Type Default Description Added in
Client variables
cg_animBlend
cg_binaryShaderScreenScale
cg_buildableRangeMarkerMask Integer Internal use.
cg_cmdGrenadeThrown String “vsay_local grenade” Command which is executed if you try to throw a grenade but don't have one. 0.9.0
cg_cmdNeedHealth String “vsay_local needhealth” Command which is executed if you try to use a medkit but don't have one. 0.9.0
cg_drawGun Integer  ? 0 disables 1st-person weapons, 1 enables human 1st-person weapons, and 2 enables both human and alien 1st-person weapons. Changed in v0.7.0
cg_drawBuildableHealth
cg_highPolyBuildableModels Boolean 1 These control whether our new high-polygon models are used. 0.3.5
cg_highPolyPlayerModels
cg_highPolyWeaponModels
cg_mirrorgun Boolean 0 Mirrors the gun vertically for a left-handed display. Added in v0.8.0
cg_rangeMarkerBuildableTypes
cg_rangeMarkerDrawIntersection Boolean 1 Controls drawing of building range markers.
cg_rangeMarkerDrawFrontline
cg_rangeMarkerDrawSurface
cg_rangeMarkerForBlueprint
cg_rangeMarkerLineOpacity
cg_rangeMarkerLineThickness
cg_rangeMarkerSurfaceOpacity
cg_rangeMarkerWhenSpectating Boolean 0 Controls whether you see range markers as a spectator. 0.3.5
cg_skybox
cl_IRC_channel String The name of the IRC channel to join.
cl_IRC_connect_at_startup Boolean
cl_IRC_override_nickname
cl_IRC_port Integer The port of the IRC server to connect to.
cl_IRC_reconnect_delay
cl_IRC_server String The hostname of the IRC server that you intend to connect to.
cl_altTab Boolean 1 Whether Alt-Tab minimises the game window.
cl_autorecord
cl_consoleFont File name The outline font used for the in-game console.
cl_consoleFontKerning
cl_consoleFontSize Number 20 The size of the console font (if using an outline font).
cl_defaultProfile
cl_demofilename
cl_demooffset
cl_demorecording
cl_doubletapdelay
cl_language
cl_packetloss
cl_profile
cl_renderer String “GL3,GL” Which renderer to use.
cl_showServerCommands
cl_shownuments
cl_voipSenderPos
cl_voipShowSender
cl_wavefilename
cl_wavefilerecord
cl_waveoffset
cl_waverecording
cl_wwwDownload
Audio variables
s_usemodule
s_alAvailableDevices
s_alAvailableInputDevices
s_alCapture
s_alDevice
s_alDopplerFactor
s_alDriver
s_alGain
s_alMindistance
s_alPrecache
s_alRolloff
s_mute Integer 0 Mute the game generally, when minimized or when unfocused.
  • 0: Don't mute.
  • 1: Mute everything.
  • 2: Mute all but non-local gamesounds (to strip most of what is optional to the gameplay like menu sounds).
  • 3: Mute all but local sounds (great for muting all but chat notifications and 'the overmind is dying' etc. while being minimized).
0.12.0 (2ca77071)
s_muteWhenUnfocused
s_muteWhenMinimized 1
Input devices
in_disablemacosxmouseaccel Boolean 1 Disables mouse acceleration for Mac users.
in_joystickNo
in_joystickThreshold
in_joystickUseAnalog
in_xbox360Controller
in_xbox360ControllerAvailable
in_xbox360ControllerDebug
Renderer variables

(see also Renderer Status)

r_fontScale Number, 24 to 64 36 Allows adjustment of font scaling. r9ea0709
Console variables
com_ansiColor Integer, -2 to +2 0 (off) Enable or disable the coloring of the console (TTY/curses) interface and the standard output. 0.3.5 (was boolean)
com_consoleCommand String "" (empty) Sets the command, that text is passed to, when typing into one of the terminal consoles (tty, ncurses, win32) without prior command prefix. Empty cvar means that the text should be executed directly. 0.12.0 (c0f5bfc5)
cl_consoleCommand String "say" Sets the command, that text is passed to, when typing into the ingame console without prior command prefix. Empty cvar means that the text should be executed directly. 0.12.0 (1e7c4f81)
cl_consolePrompt String “->” The text used for the in-game console command prompt.
con_autoclear Boolean
con_scrollLock Integer 0-4 2
  • 0: no scroll lock at all, scroll down on any message ariving
  • 1: lock scrolling if in scrollback, but scroll down for send message/entered commands
  • 2: lock scrolling if in scrollback, even for own output
  • 3: always lock scrolling
0.13.0 (9136efe1)
con_borderColorAlpha Float 0.0f-1.0f
con_borderColorBlue Float 0.0f-1.0f 1.0f
con_borderColorGreen Float 0.0f-1.0f 1.0f
con_borderColorRed Float 0.0f-1.0f 1.0f
con_borderWidth Integer 1
con_margin Integer 10 the distance between screen and border, also gets used in automatic paddingcalculation 0.12.0
con_horizontalPadding Integer 0 (automatic) the distance between text and console border, if 0 it will use a size relative to the margin 0.12.0
con_colorAlpha Float 0.0f-1.0f
con_colorBlue Float 0.0f-1.0f
con_colorGreen Float 0.0f-1.0f
con_colorRed Float 0.0f-1.0f
con_height Integer (Percentage) 55
con_animationType Bitmask 2 0: no animation/instant toggling 1: scroll-down effect 2: fadeing (combination via bitmask possible, i.e 3 will do fading and scroll down at the same time) 0.12.0
con_animationSpeed Float 3.0f
Server variables
g_humanRepeaterBuildPoints Integer, ≥0 20 Build points supplied by the repeater. 0 means that none are supplied, and building near that repeater takes from the global pool instead. 0.11.0 (special use of 0)
g_inactivity Integer, ≥0; suffix ‘s’ 0 (off) Inactivity time-out. With ‘s’, moves inactive players to spectators. 0 disables. 0.3.5 (suffix)
sv_dl_maxRate
sv_floodProtect
sv_fullmsg
sv_newGameShlib
sv_packetloss
sv_serverRestarting
sv_showAverageBPS
sv_wwwBaseURL
sv_wwwDlDisconnected
sv_wwwDownload
sv_wwwFallbackURL
Weapon control

These variables affect weapon power etc.

g_flameFadeout Boolean 1 Controls whether flame gets weaker over distance. 0.3.5
g_luciFullPowerTime Integer, ≥0 512 How long a luci shot travels before it begins to weaken. 0.3.5
g_luciHalfLifeTime Integer, ≥0 0 (off) How long it takes to reduce the luci shot power by half. 0.3.5
g_pulseFullPowerTime Integer, ≥0 0 How long a pulse rifle shot travels before it begins to weaken. 0.3.5
g_pulseHalfLifeTime Integer, ≥0 0 (off) How long it takes to reduce the pulse rifle shot power by half. 0.3.5
Voting

These variables control vote pass percentages etc.

Pass percentage = 0 disables the corresponding votes.

g_admitDefeatVotesPercent Integer, 0 to 100 50 Pass percentage for admit-defeat votes. 0.3.5
g_drawVotesPercent Boolean 0 Pass percentage for draw votes. 0.3.5
g_drawVotesAfter Integer 0 Time (in minutes) before which draw votes are not allowed. 0.3.5
g_drawVoteReasonRequired Boolean 0 Pass percentage for map votes. 0.3.5
g_denyVotesPercent Integer, 0 to 100 50 Pass percentage for mute and deny-build votes. 0.3.5
g_extendVotesCount Integer, ≥0 2 How many game time extension votes are allowed per game.
g_extendVotesPercent Integer, 0 to 100 50 Pass percentage for game time extension votes.
g_extendVotesTime Integer, ≥0 10 Time (in minutes) which is added when the game is extended. Also twice the time before game end during which extend votes are allowed.
g_kickVotesPercent Integer, 0 to 100 50 Pass percentage for kick and spectate votes. 0.3.5 (spectate)
g_mapVotesBefore Integer, ≥0 0 Time (in minutes) at which map votes and layout votes are no longer allowed. 0.3.5
g_mapVotesPercent Integer 0 to 100 50 Pass percentage for map or layout votes. 0.3.5
g_nextMapVotesPercent Integer, 0 to 100 50 Pass percentage for next-map votes. 0.3.5
g_pollVotesPercent Integer, 0 to 100 0 Pass percentage pass for poll votes. 0.3.5
Other variables
g_combatCooldown
g_showKillerHP
g_unnamedNamePrefix String UnnamedPlayer# Sets the prefix for unnamed players joining the server when numbering is enabled. 0.4?
g_unnamedNumbering Integer Controls how numbering behaves
g_mapRestarted String (RO) Set as follows by /restart:

y if teams are cleared;
yk if teams are kept;
yks if teams are kept but swapped.
It is cleared when the map's config scripts have been run.

0.10.0
g_mapStartupMessage String Shown to newly-connected players. It is valid only for the current map, and cleared at map start-up before any scripts are run. 0.10.0
g_mapStartupMessageDelay Integer 5000 Delay after connection is completed, in milliseconds, before the startup message is shown to a newly-connected player. 0.10.0
layout String (RO) The current map layout name. 0.10.0
Filesystem
fs_libpath Directory path Mostly useful for packagers. The .debs use it. 0.3.5 (non-Mac)
Informational
sv_nextmap String The next map to be loaded, if a next-map vote was passed this game.
Unknown
cm_forceTriangles
com_hunkused
com_ignorecrash
com_introplayed
com_logosPlaying
com_pid
com_recommended
com_recommendedSet
com_watchdog
com_watchdog_cmd
fraglimit
gamestate
p_team
p_teamname
session
viewlog