Garry's Mod Wiki

Revision Difference

GM:AdjustMouseSensitivity#511403

<function name="AdjustMouseSensitivity" parent="GM" type="hook">⤶ <ishook>yes</ishook>⤶ <description>Allows you to adjust the mouse sensitivity.</description>⤶ <realm>Client</realm>⤶ <predicted>No</predicted>⤶ <hidepredictionwarning>No</hidepredictionwarning>⤶ <file line="408">gamemodes/base/gamemode/cl_init.lua</file>⤶ <args>⤶ <arg name="defaultSensitivity" type="number">The old sensitivity&#xA;&#xA;In general it will be 0, which is equivalent to a sensitivity of 1.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">A fraction of the normal sensitivity (0.5 would be half as sensitive), return -1 to not override.</ret>⤶ </rets>⤶ </function>⤶ ⤶