NB! It seems this console command is not compatible with CS2.
Command Profile

CL_BOBAMT_VERT

CS:GO

This command changes how much your viewmodel & gun barrel moves up and down when you're moving forward.

Syntax
cl_bobamt_vert [Value]

Description

This command changes how much your viewmodel & gun barrel moves up and down when you're moving forward.

How To Use cl_bobamt_vert

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter cl_bobamt_vert [Value], replacing bracketed arguments with the value you want, then press Enter.

This legacy command is not currently listed as compatible with Counter-Strike 2.

Syntax And Arguments

cl_bobamt_vert [Value]
Value The value attached to how much your viewomodel/gun barrel moves up and down as you run. The higher the command, the more exaggerated the movement is. The command is capped at 2 and goes to 0.1 at its lowest. 0.25 is the default value of this command.