View Rolling

If you liked this item, please rate it up on Steam Workshop page.

Author: [aka]bomb

Last revision: 10 Jul, 2022 at 21:45 UTC

File size: 3.07 KB

On Steam Workshop

Description:

A simple script that implements view roll similar to the Source Engine view roll for the client, which is normally only available to configure on the server. The view roll code was referenced from the Source SDK 2013 base.

How to use

2 console variables have been added: cl_rollangle and cl_rollspeed.
These are set using the console which is to keep the code nice and simple by typing:
cl_rollangle <number>
and/or:
cl_rollspeed <number>
… where <number> is the value you want to assign to the variable.
What these console variables do is explained below.

Console variables
Name
Default
Purpose
cl_rollangle
0.8
The roll angle value to target
cl_rollspeed
200
The velocity at which the view roll is at 100% (the default walking speed and thus the velocity is 200)