viewmodel_offset_y
Moves the gun towards you (negative) or away (positive).
viewmodel_offset_y 0
Examples
viewmodel_offset_y 0
How to use it
- Turn on the console under Settings, Game, Enable Developer Console.
- Press the key under Esc to open it.
- Type viewmodel_offset_y followed by a value and press Enter.
- To keep the setting, add the same line to your autoexec.cfg.
FAQ
Does viewmodel_offset_y need sv_cheats?
No. viewmodel_offset_y is not cheat-protected in CS2's command list, so you can use it in any game.
What is the default value of viewmodel_offset_y?
The default is 1, and the game accepts -2 to 2. To reset it, type viewmodel_offset_y 1 in the console.
More viewmodel commands
Revision history
- First published. Every command checked against CS2's own cvar and command list (SteamDatabase dump b73cfdeb35, 28 Oct 2026).