Garry's Mod
Оценок: 114
Crouch Stance - Toggle Crouch with Running
   
Наградить
В избранное
В избранном
Удалить
Тип контента: Дополнение
Тип дополнения: Инструмент
Размер файла
Добавлен
Изменён
1.991 KB
18 июл. 2022 г. в 11:23
5 авг. 2023 г. в 10:05
Обновлений: 3 (просмотреть)

Подпишитесь, чтобы загрузить
Crouch Stance - Toggle Crouch with Running

Описание
Toggle crouching with two options!

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.

Why use this instead of toggle_duck/+duck?

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.

Note

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
Комментариев: 25
Callsign_Ewok 10 ноя. 2024 г. в 7:42 
Solution! Bind crouchstance to CTRL to replace default crouch, then also use prone mod, results are awesome and intuitive! I use toggle crouch only personally. I binded the automove_mode to period "."
Callsign_Ewok 10 ноя. 2024 г. в 7:39 
automove gives me a unknown command it says in the console, and oddly after typing in crouchstance i seem to be stuck in crouch. Maybe binding CTRL to crouchstance would solve this? Trying to make sure it's compatible with prone mod too.
Lombaxtard 5 авг. 2023 г. в 14:54 
That was quick, thanks a lot! It works and CS is finally compatible with configs
Nararana  [создатель] 5 авг. 2023 г. в 10:05 
Pushed out an update, crouchstance mode should now save for the client.
Lombaxtard 4 авг. 2023 г. в 9:48 
Great to hear it, thanks for the reply :steamthumbsup:
Nararana  [создатель] 4 авг. 2023 г. в 8:29 
I'll be updating it soon to save the preferred mode.
Lombaxtard 1 авг. 2023 г. в 5:37 
Can you change crouchstance_mode to crouchstance mode 1/2/3 ? Preferred mode isn't being saved and having to click through to get the one I desire is quite daunting
「ZA HANDO」 21 апр. 2023 г. в 12:10 
shadow dio real
Snoobert 11 мар. 2023 г. в 1:52 
weird but i still have to hold crouch to crouch,
ALESHANAMORE 8 дек. 2022 г. в 16:57 
))