This article's documentation is for anything that uses the Source engine. Click here for more information.

Sv rollangle: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{LanguageBar}}
{{LanguageBar}}
[[File:Viewrolling demonstration.gif|320px|thumb|right|View rolling demonstration.<br>(Click to view if GIF does not play automatically).]]
{{this is a|console variable|name=sv_rollangle}}
{{this is a|console variable|name=sv_rollangle}}
This [[float]] [[cvar]] adjusts or disable [[View_roll|view rolling]] (which is used in {{bms|1}}, and works similarly to {{quake|1}} and {{hl|1}}).
This [[float]] [[cvar]] adjusts or disable [[View_roll|view rolling]] (which is used in {{bms|1}}, and works similarly to {{quake|1}} and {{hl|1}}).

Latest revision as of 07:15, 10 April 2025

English (en)Translate (Translate)
View rolling demonstration.
(Click to view if GIF does not play automatically).

sv_rollangle is a console variable available in all Source Source games. This float cvar adjusts or disable view rolling (which is used in Black Mesa, and works similarly to Quake and Half-Life).

Note.pngNote:This console variable is flagged as "launcher"-only in all Source games since Source 2007, so it can be only changed through launch options.
Icon-Important.pngImportant:When changing the value through launch options, the console may show Unknown command "sv_rollangle". However the value does actually changes.

Alternatively, you can also use SourceMod or VScript:

Half-Life 2 Left 4 Dead sm_cvar sv_rollangle <value> command (with SourceMod installed) or
Team Fortress 2 branchLeft 4 Dead 2 script Convars.SetValue("sv_rollangle", "<value>") (using VScript).
Note.pngNote:Black Mesa Black Mesa replaced this command with rollangle.
Confirm:This is confirmed on 2012 mod version, needs confirm on latest Steam version aswell.