
Struggling to find the perfect weapon positioning in Counter-Strike 2? Adjusting how your weapon appears on screen can minimize distractions, making it easier to spot enemies and react to environmental changes. This guide will walk you through how to change gun position in CS2? using console commands, including adjusting your Field of View (fov) and viewmodel presets.
How to Open the Developer Console
Before making any changes, you need to enable and access the developer console:
- Open Settings > Game and set Enable Developer Console to Yes.
- Press the tilde [`] or [~] button – whichever key is below [ESC] key to open the console.
- If the console doesn’t appear, check Settings > Keyboard / Mouse > UI Keys and assign a key to Toggle Console.

Some keyboards may not have the tilde (` or ~) key mapped by default, so rebind it if necessary.
Changing Field of View (FOV) in CS2
Field of View (FOV) determines how much of the game world you can see. A higher FOV increases peripheral vision, while a lower FOV focuses the view forward. CS2 allows FOV values between 54 and 68.
Adjusting Your FOV
To modify your FOV, open the console and enter:
viewmodel_fov <value>Example:
viewmodel_fov 68(widest FOV allowed)viewmodel_fov 54(narrowest FOV allowed)

For offline and practice sessions, you can enable cheats and use:
sv_cheats 1
fov_cs_debug <value>This command allows higher FOV values but is restricted in competitive matches.
Viewmodel Commands & Limits
Your viewmodel settings control how your weapon appears on screen. Each command adjusts a different axis of movement, with values limited to:
- Horizontal (Left/Right):
viewmodel_offset_x -2.5toviewmodel_offset_x 2.5 - Depth (Forward/Backward):
viewmodel_offset_y -2toviewmodel_offset_y 2 - Vertical (Up/Down):
viewmodel_offset_z -2toviewmodel_offset_z 2
Adjusting the Vertical Position (viewmodel_offset_z)
This command moves the weapon up or down:
viewmodel_offset_z 2 (Moves the weapon up)
viewmodel_offset_z -2 (Lowers the weapon)Adjusting the Horizontal Position (viewmodel_offset_x)
This command moves the weapon left or right:
viewmodel_offset_x 2 (Moves the weapon far right)
viewmodel_offset_x -2 (Moves the weapon closer to the center)Adjusting the Depth (viewmodel_offset_y)
This command controls how far forward or back the weapon appears:
viewmodel_offset_y 2 (Pushes the weapon forward)
viewmodel_offset_y -2 (Brings the weapon closer)Choosing a Viewmodel Preset
CS2 offers two preset viewmodel positions:
- Desktop (1): Balanced weapon positioning.
- Classic (2): Matches older Counter-Strike games.
To switch between presets, enter:
viewmodel_presetpos <1 / 2>Resetting & Saving Your Settings
Reset to Default
To restore the default settings for the viewmodel in cs2 enter:
viewmodel_fov 60
viewmodel_offset_x 1
viewmodel_offset_y 1
viewmodel_offset_z -1.5The shortcut for it is: viewmodel_presetpos 1
Saving Your Settings Permanently
To keep your settings consistent every time you launch CS2:
- Navigate to Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg
- Open or create a file named
autoexec.cfgusing Notepad. - Add your preferred settings, such as:
viewmodel_offset_x 1.5
viewmodel_offset_y 2
viewmodel_offset_z -1.0
viewmodel_fov 68- Save the file and add
+exec autoexec.cfgto your CS2 launch options in Steam.
To access the launch options, open Steam, go to your Library, right-click Counter-Strike 2, select Properties, and enter commands in the Launch Options field under the General tab.
Conclusion
Tweaking your weapon positioning in CS2 can make a big impact on your gameplay, helping to minimize distractions and improving your ability to spot enemies and react to changing situations. Adjusting your FOV, vertical, horizontal, and depth settings lets you create a viewmodel that works best for you. Saving these settings with the autoexec.cfg file ensures you won’t have to redo them every time you play. With these small adjustments, you can enjoy a more tailored, responsive, and comfortable experience in CS2.


