Welcome to Tactical Gamer

+ Reply to Thread
Results 1 to 13 of 13
Discussion: Counter-Strike Source / Counter-Strike - General Discussion - Toggle Binds: Walking and Crouching - For those of you who have wanted to be able to have your walk/crouch keys
  1. #1
    poe
    poe is offline

    poe's Avatar

    Join Date
    Jul 2005
    Location
    Olympia, Washington (USA)
    Age
    24
    Posts
    1,105

    Toggle Binds: Walking and Crouching

    For those of you who have wanted to be able to have your walk/crouch keys be a toggle, instead of hold... (usually this is a built-in feature )

    Just put these into your /cstrike/cfg/autoexec.cfg file. Feel free to change the bolded key to whatever you want it to be, though changing other things may render the script useless.


    Walk Toggle
    Code:
    alias walk_togg "toggwalk_on"
    alias toggwalk_on "alias walk_togg toggwalk_off; +speed"
    alias toggwalk_off "alias walk_togg toggwalk_on; -speed"
    bind "shift" "walk_togg"

    Crouch Toggle
    Code:
    alias crouch_togg "toggcrouch_on"
    alias toggcrouch_on "alias crouch_togg toggcrouch_off; +duck"
    alias toggcrouch_off "alias crouch_togg toggcrouch_on; -duck"
    bind "ctrl" "crouch_togg"

  2.  
  3. #2



    Vulcan's Avatar

    Join Date
    Jan 2005
    Location
    Manhattan, New York, United States
    Age
    33
    Posts
    10,036

    Re: Toggle Binds: Walking and Crouching

    hmm i don't have an autoexec.cfg in that folder.

  4.  
  5. #3
    poe
    poe is offline

    poe's Avatar

    Join Date
    Jul 2005
    Location
    Olympia, Washington (USA)
    Age
    24
    Posts
    1,105

    Re: Toggle Binds: Walking and Crouching

    Quote Originally Posted by Vulcan
    hmm i don't have an autoexec.cfg in that folder.
    That's why you make one (I got a big autoexec file... got all my configs in there)

    Use notepad, and save the file as autoexec.cfg but make sure that the field below the file name says "All files" and not text documents.

  6.  

     
  7. #4

    Root's Avatar

    Join Date
    Dec 2004
    Location
    South east england
    Posts
    8,835

    Re: Toggle Binds: Walking and Crouching

    For those who don't know, Poe spends a lot of free time trawling various sites looking for helpful stuff for the PCS community. He finds maps, scripts, researches mani and server issues, and in addition, is doing a great job helping to administer the server.

    Nice one, Poe.
    BFCL TF2 league admin

  8.  
  9. #5

    Trooper's Avatar

    Join Date
    Jun 2005
    Location
    Ohio
    Age
    29
    Posts
    9,329

    Re: Toggle Binds: Walking and Crouching

    poe would it be possible for you to post your auto.cfg....with all your "scripts" and such
    that sounds like a good idea trooper.
    -Vulcan

  10.  
  11. #6
    poe
    poe is offline

    poe's Avatar

    Join Date
    Jul 2005
    Location
    Olympia, Washington (USA)
    Age
    24
    Posts
    1,105

    Re: Toggle Binds: Walking and Crouching

    Code:
    cl_crosshairscale 2000
    name "|T-ADMIN| Poe"
    cl_showfps 2
    
    bind kp_downarrow "buy vesthelm"
    bind kp_end "buy defuser"
    bind kp_leftarrow "buy hegrenade"
    bind kp_5 "buy flashbang"
    bind kp_rightarrow "buy smokegrenade"
    bind kp_home "buy m4a1; buy ak47; buyammo1"
    bind kp_pgdn "buy scout; buyammo1"
    bind kp_pgup "buy deagle; buyammo2"
    
    bind f6 p_menu
    bind f7 acomm_menu
    bind f8 say @menu
    There's my autoexec... not a lot, but it's there!
    The first chunk is just getting a few personal preferences... I like my small crosshairs, and for my name to automatically be set whenever I boot up CS:S (or run the autoexec). cl_showfps 2 not only shows my fps, but an easy reference to see what the map is (in case I go crazy).

    The second part is my buy binds. Basically, when buy time comes around, I can use one hand and just hit a few keys in the numpad to get all I want. It's just simpler, and I can feed while doing it (because 45 seconds isn't enough!)

    The last piece is my most personal section of it. The "say @menu" is for T-admining, and it displays the menu of commands for me. Here's where it gets more complicated, thouugh. "acomm_menu" is a script/menu I devised that saves me a lot of trouble... those admin messages you guys see, I can access via this menu. Instead of having tons of binds, I hit one key and it brings this up (similar to your radio commands. It shows 7 @say messages, a "back" feature, and a "next", since the messages span over like four sets...). The "p_menu" is something for miscellaneous stuff I began to start, but the only thing I have in it so far is options to turn on/off the walk/crouch toggles. I don't even use the toggle though, so....

    Edit: For those of you interested in buy binds, I have a writeup here.

  12.  

     
  13. #7

    whistler's Avatar

    Join Date
    Apr 2005
    Location
    Mankato, MN
    Posts
    2,234
    Blog Entries
    1

    Re: Toggle Binds: Walking and Crouching

    Quote Originally Posted by poe
    Here's where it gets more complicated, thouugh. "acomm_menu" is a script/menu I devised that saves me a lot of trouble... those admin messages you guys see, I can access via this menu. Instead of having tons of binds, I hit one key and it brings this up (similar to your radio commands. It shows 7 @say messages, a "back" feature, and a "next", since the messages span over like four sets...).
    Hmm... I should learn how to do this for myself, it gets tedious having 8 different buttons binded to something different.

  14.  
  15. #8

    Trooper's Avatar

    Join Date
    Jun 2005
    Location
    Ohio
    Age
    29
    Posts
    9,329

    Re: Toggle Binds: Walking and Crouching

    yeah those are all well and good but i was really looking for the Auto-aim/ubber-killer bot, or is that rince?
    that sounds like a good idea trooper.
    -Vulcan

  16.  
  17. #9
    poe
    poe is offline

    poe's Avatar

    Join Date
    Jul 2005
    Location
    Olympia, Washington (USA)
    Age
    24
    Posts
    1,105

    Re: Toggle Binds: Walking and Crouching

    Quote Originally Posted by whistler's mother
    Hmm... I should learn how to do this for myself, it gets tedious having 8 different buttons binded to something different.
    I can write up a guide for that if you want. Once you have the format down, it's just a matter of copy/paste. The only problem with the menu is, every time I pull it up it clears the console (this is so the menu displays properly, and not with a bunch of junk. Can't find a way around it ).

  18.  

     
  19. #10

    whistler's Avatar

    Join Date
    Apr 2005
    Location
    Mankato, MN
    Posts
    2,234
    Blog Entries
    1

    Re: Toggle Binds: Walking and Crouching

    Quote Originally Posted by poe
    I can write up a guide for that if you want. Once you have the format down, it's just a matter of copy/paste. The only problem with the menu is, every time I pull it up it clears the console (this is so the menu displays properly, and not with a bunch of junk. Can't find a way around it ).
    If you want, that'd be fine. Although I'm a little skeptical on losing the info in console because its a great history if ever a situation arises. I'm sure Root has all that info tucked away somewhere in England anyways

  20.  
  21. #11
    SG
    SG is offline

    SG's Avatar

    Join Date
    Jan 2006
    Location
    Minnesota
    Age
    22
    Posts
    348

    Re: Toggle Binds: Walking and Crouching

    ok ok, call me a noob, but do the binds go into a wordpad file once in the new autoexec.cfg file? Don't quite understand. Im talking buy equipment binds and such

  22.  
  23. #12
    poe
    poe is offline

    poe's Avatar

    Join Date
    Jul 2005
    Location
    Olympia, Washington (USA)
    Age
    24
    Posts
    1,105

    Re: Toggle Binds: Walking and Crouching

    Quote Originally Posted by SG_SuicideTS
    ok ok, call me a noob, but do the binds go into a wordpad file once in the new autoexec.cfg file? Don't quite understand. Im talking buy equipment binds and such
    Yes. You create the autoexec.cfg file and put your binds into there, save it, and you should be good to go. If you ever need to re-run it (ie you changed the file while in game), just type "exec autoexec" in console.

  24.  

     
  25. #13



    Vulcan's Avatar

    Join Date
    Jan 2005
    Location
    Manhattan, New York, United States
    Age
    33
    Posts
    10,036

    Re: Toggle Binds: Walking and Crouching

    I tried this out today and the only problem I have is knowing whether or not my walk key is toggled on or off while i'm still. I think i will remove that part only. The crouch i definately like though.

  26.  

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


  
 

Back to top