How to disable view bob in Black Mesa?

Solution 1:

In the Steam version, open Options > Game and set View Roll to 0 to disable view bobbing.

Game options in Steam version

In the free mod version, open Options > Black Mesa and set View Roll to 0.

Game options in mod version

(The mod version I found has an option labeled Disable View Bob, but it doesn't seem to work)

Solution 2:

Console cl_view_roll 0 got rid of view bob when sidestepping.