Jump to content

The forums were recently upgraded.  Please forward any issues to administration.

Sign in to follow this  

Toggle Crouching

Recommended Posts

Originally posted by kingryan on 2/21/2017


Note: This is not mine. This is from a friend of mine, Siphon76.
We all have that hatred. "I keep getting killed while I'm typing, even though i'm in cover."

Well no more, lads.

All you need to do is go to your Gmod config folder, under Program x86 > Steam > steamapps > GarrysMod > garrysmod > cfg (or C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\cfg for those who have an alike-setup directory) and open up the "Autoexec.cfg" in Notepad. If Autoexec.cfg does not exist, create it as a text document. Make sure the file saves as a .cfg (renaming won't always work, you'll need to change the file-type entirely) and open it.

Once it is open, copy and paste the following code into the file:

alias duck_on "+duck; alias toggleduck duck_off"
alias duck_off "-duck; alias toggleduck duck_on"
bind ctrl toggleduck

That's it. Save it, restart Gmod if you have it open.

ctrl at the bottom can be substituted for whatever control you'd like. I, personally, use "alt" (left alt key) as my toggle crouch, but you can assign it to whatever you'd like.

I've been using this for the better part of 5 months - and let me tell you, it's saved myself from a PK numerous times. Feel free to comment below if you have questions regarding which key is which (Like the number pad keys... Numkeys are annoying as fuck).


  • Like 1

Share this post

Link to post
10 hours ago, AlphaDuck said:

Can't you just type +duck in the console and then -duck when you're done?

why do that when you can toggle duck with the press of a button?

4 hours ago, Deadeye said:

I just bind +duck to n and -duck to m lol

i think you're lying because setting a key to crouch just binds it to +duck, it doesn't make a toggle

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...