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

VIEWMODEL_RECOIL

CS:GO

This command sets how much recoil is shown by the viewmodel when being shot at and taking aimpunch.

Syntax
viewmodel_recoil [Recoil]

Description

This command sets how much recoil is shown by the viewmodel when being shot at and taking aimpunch.

How To Use viewmodel_recoil

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter viewmodel_recoil [Recoil], 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

viewmodel_recoil [Recoil]
Recoil A value between 0-1 to set your viewmodel recoil to when being shot at. The default value for this command is 1. Use a lower number to reduce the recoil.