Garry's Mod Wiki

Revision Difference

GM:HandlePlayerDucking#563727

<function name="HandlePlayerDucking" parent="GM" type="hook"> <description>Allows to override player crouch animations.</description> <realm>Shared</realm> <file line="55-L69">gamemodes/base/gamemode/animations.lua</file>⤶ <args> <arg name="ply" type="Player">The player</arg> <arg name="velocity" type="Vector">Players velocity</arg> </args> <rets> <ret name="" type="boolean">Return true if we've changed/set the animation, false otherwise</ret> </rets> </function>