How to Toggle crouch (And walk!)

    Share
    avatar
    Detective Zero

    Posts : 38
    Join date : 2014-09-01

    How to Toggle crouch (And walk!)

    Post by Detective Zero on Sun Sep 14, 2014 5:13 am

    Note: This is a rough approximation of a guide that used to be on these forums.

    Tired of not being able to talk whilst crouching? Well fear not! I have a solution.

    You're going to need to create three files in your C:\Program Files\Steam\steamapps\\garrysmod\garrysmod\cfg folder.

    These files are:

    • autoexec.cfg
    • myaliases.cfg
    • mybindings.cfg



    In autoexec.cfg, type:

    Code:
    exec myaliases.cfg
    exec mybindings.cfg


    In myaliases.cfg, type:

    Code:
    alias duck_t "duck_on"
    alias duck_on "alias duck_t duck_off; +duck; developer 1; echo Crouching (on); developer 0"
    alias duck_off "alias duck_t duck_on; -duck; developer 1; echo Crouching (off); developer 0"

    alias walk_t "walk_on"
    alias walk_on "alias walk_t walk_off; +walk; developer 1; echo Walking (on); developer 0"
    alias walk_off "alias walk_t walk_on; -walk; developer 1; echo Walking (off); developer 0"

    In mybindings.cfg, type:

    Code:
    bind "<KEY>" "duck_t"
    bind "<KEY>" "walk_t"

    Remember to replace with the key of your choice.

    Then just save these three files, restart Gmod et Voilá! 1 custom crouch keybind!

    Enjoy!


    Copy-pasted this from a thread back in TNB. Enjoy.


    ___________________________________
    avatar
    Bulldog

    Posts : 28
    Join date : 2014-08-23
    Age : 25

    Re: How to Toggle crouch (And walk!)

    Post by Bulldog on Sun Sep 14, 2014 6:08 am

    Here's an easier way to do it:
    bind "-duck ; -duck"
    bind ""+duck ; +duck"

    I personally use c and x, since most of my other stuff is taken up with other things.
    avatar
    Detective Zero

    Posts : 38
    Join date : 2014-09-01

    Re: How to Toggle crouch (And walk!)

    Post by Detective Zero on Sun Sep 14, 2014 6:10 am

    My way keeps it to a single key, so you can just keep it on CTRL for duck and ALT for walk just like original, they just will be toggled now.


    ___________________________________
    avatar
    Bulldog

    Posts : 28
    Join date : 2014-08-23
    Age : 25

    Re: How to Toggle crouch (And walk!)

    Post by Bulldog on Sun Sep 14, 2014 6:43 am

    Mine doesn't require you to make new files.
    avatar
    Detective Zero

    Posts : 38
    Join date : 2014-09-01

    Re: How to Toggle crouch (And walk!)

    Post by Detective Zero on Sun Sep 14, 2014 7:00 am

    which shouldn't take you more than five seconds to do lol.


    ___________________________________

    Asiimov

    Posts : 46
    Join date : 2014-08-25

    Re: How to Toggle crouch (And walk!)

    Post by Asiimov on Sun Sep 14, 2014 1:27 pm

    +duck and -duck are a hell of a lot easier lmao
    avatar
    Detective Zero

    Posts : 38
    Join date : 2014-09-01

    Re: How to Toggle crouch (And walk!)

    Post by Detective Zero on Sun Sep 14, 2014 4:54 pm

    wwell i put this in the suggestions for a reason. if people use it, cool. if they don't, then cool, up to them after all.


    ___________________________________

    Sponsored content

    Re: How to Toggle crouch (And walk!)

    Post by Sponsored content


      Current date/time is Sun Sep 24, 2017 7:24 pm