Crouch Stance – Toggle Crouch with Running
This addon simply lets you toggle crouching. A somewhat similar example of this mechanic can be seen in games such as SOCOM II U.S. Navy SEALs.
Crouch Stance adds two console commands that let you crouch automatically with several movement preferences:
- crouchstance
- crouchstance_mode
The first command activates or deactivates crouch stance, the second command changes and displays your selected stance type.
- Toggle: This simply toggles crouch at all times when possible. (Default)
- Toggle + Run: This automatically deactivates crouching when you are inputting player movement whenever possible. Reactivates toggle crouch when not inputting movement. (Velocity caused by other factors will not force crouch deactivation.)
- Toggle + Sprint Only: This automatically deactivates crouching when you are holding the sprint button (default: Shift key). Reactivates toggle crouch when not holding the sprint button.
It is suggested you bind these like in the examples below based on your preferences:
- bind b automove
- bind n automove_mode
Keybind Name Reference: https://developer.valvesoftware.com/wiki/Bind
Tested in Sandbox singleplayer and multiplayer but should technically work on most standard gamemodes.
Unlike toggle_duck, it allows you to alternate from remaining crouched to moving with all non-crouch related movement such as walking, running, and sprinting while having a visual indicator.
Crouch Stance only activates based on player input, meaning my other addon Automove does not benefit from it at the moment.
Github Link: https://github.com/Nara7K/Crouch-Stance