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.

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.