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
(Created page with "{{LanguageBar}} {{this is a|console variable|name=sv_rollangle}} This float cvar adjusts or disable view rolling (which is used in {{bms|1}}, and works similarly to {{quake|1}} and {{hl|1}}). {{Note|This console variable is flagged as "launcher"-only in all Source games since {{src07|1}}, so it can be only changed through launch options. Alternatively, you can also use {{sourcemod|1}} or VScript: {{hl2}} {{L4d}} {{code|sm_cvar sv_rollangle <val...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
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}}).


{{Note|This console variable is flagged as "launcher"-only in all Source games since {{src07|1}}, so it can be only changed through launch options.
{{Note|This console variable is flagged as "launcher"-only in all Source games since {{src07|1}}, so it can be only changed through [[launch options]].
{{Important|When changing the value through launch options, the console may show {{code|Unknown command "sv_rollangle"}}. However the value does actually changes.}}
Alternatively, you can also use {{sourcemod|1}} or [[VScript]]:
Alternatively, you can also use {{sourcemod|1}} or [[VScript]]:
{{hl2}} {{L4d}} {{code|sm_cvar sv_rollangle <value>}} command (with [[SourceMod]] installed) or </br>{{tf2branch}}{{L4d2}} {{code|script Convars.SetValue("sv_rollangle", "<value>")}} (using [[VScript]]).}}
{{hl2}} {{L4d}} {{code|sm_cvar sv_rollangle <value>}} command (with [[SourceMod]] installed) or </br>{{tf2branch}}{{L4d2}} {{code|script Convars.SetValue("sv_rollangle", "<value>")}} (using [[VScript]]).}}

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.