• Figuring out if player is in mid-crouch
    3 replies, posted
There's a delay between the player hitting the crouch button and them being completely crouched, where their model bound offset doesn't match the hull -- speed determined by GetDuckSpeed. Is there a method to figuring out when the player is in this state? The engine has a variable for this it seems: m_bDucking, but there's obviously no access to it.
[url]https://wiki.garrysmod.com/page/Enums/FL[/url] - FL_ANIMDUCKING?
That's what I need; thanks! Also, does anyone happen to know if Player:Crouching() uses FL_DUCKING internally?
Seems like a [URL="https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/const.h#L149"]source SDK file[/URL] shows a bit of information about what these enums mean When the player is in the progress of crouching FL_DUCKING is false and FL_ANIMDUCKING is true. Hopefully that's of some use to you.
Sorry, you need to Log In to post a reply to this thread.