Garry's Mod Wiki

GM:HandlePlayerDucking

  boolean GM:HandlePlayerDucking( Player ply, Vector velocity )

Description

Allows to override player crouch animations.

Arguments

1 Player ply
The player
2 Vector velocity
Players velocity

Returns

1 boolean
Return true if we've changed/set the animation, false otherwise