viewmodel_offset_z
Moves the gun down (negative) or up (positive).
viewmodel_offset_z -1.5
Examples
viewmodel_offset_z -1.5
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_z followed by a value and press Enter.
- To keep the setting, add the same line to your autoexec.cfg.
FAQ
Does viewmodel_offset_z need sv_cheats?
No. viewmodel_offset_z 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_z?
The default is -1, and the game accepts -2 to 2. To reset it, type viewmodel_offset_z -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).