Garry's Mod Wiki

GM:AdjustMouseSensitivity

  number GM:AdjustMouseSensitivity( number defaultSensitivity, number localFOV, number defaultFOV )

Description

Allows you to adjust the mouse sensitivity.

Arguments

1 number defaultSensitivity
The old sensitivity

In general it will be 0, which is equivalent to a sensitivity of 1.

2 number localFOV
Player's current FOV.
3 number defaultFOV
Default FOV.

Returns

1 number
A fraction of the normal sensitivity (0.5 would be half as sensitive).

Return -1 to not override and prevent subsequent hooks and WEAPON:AdjustMouseSensitivity from running.
Return nil to not override and allow subsequent hooks and WEAPON:AdjustMouseSensitivity to run.