Setting up a 'buy bind' isn't too terrible hard if you know what you're doing. So, here I am to tell you how to do it!
Step 1) Search through your computer for your "Steam" folder, and find your "cfg" folder in the Counter-Strike stuff. The path will look something like this:
C:\Program Files\Steam\SteamApps\[username]\counter-strike source\cstrike\cfg
Now for a quick tangent. Your "config.cfg" is where all your configurations go...but for your new modifications, you will want to create a new file called "autoexec.cfg". This is a file Counter-Strike will run every time you boot up the game, so the settings will come up every time.
Now that you're in the new autoexec file, we can work on binds.
bind: Assigns a command to a key.
Syntax: bind "key" "command"
Now for the actual bind itself. Personally, I prefer to set up buy binds on my numpad, so it's out of the way and easily organized. But for simplicity's sake, I'll just use "[key]" for the key (change it to whatever you like. At the end of this post, I will have a list of the various keys possible). I will use the variable "[purchase]" for the object you are buying.
bind [key] "buy [purchase]"
You can even set up keys for multiple purchases...
bind [key] "buy [purchase1]; buy [purchase2]"
(note: when actually doing the binds, leave out the brackets. The quotes will need to stay).
And yes, it is that simple. After finishing all the binds, make sure to save the file, and ensure the name is AUTOEXEC.CFG
Purchase Aliases
(this is the name you need to use to refer to the item with. It replaces [purchase]
Bindable Keys
(used to replace [key])
All main-keyboard buttons are simply the number/letter they output (A-Z and 0-9, excluding numpad)
Numpads:
Example:
bind kp_5 "buy m4a1; buyammo1"
Step 1) Search through your computer for your "Steam" folder, and find your "cfg" folder in the Counter-Strike stuff. The path will look something like this:
C:\Program Files\Steam\SteamApps\[username]\counter-strike source\cstrike\cfg
Now for a quick tangent. Your "config.cfg" is where all your configurations go...but for your new modifications, you will want to create a new file called "autoexec.cfg". This is a file Counter-Strike will run every time you boot up the game, so the settings will come up every time.
Now that you're in the new autoexec file, we can work on binds.
bind: Assigns a command to a key.
Syntax: bind "key" "command"
Now for the actual bind itself. Personally, I prefer to set up buy binds on my numpad, so it's out of the way and easily organized. But for simplicity's sake, I'll just use "[key]" for the key (change it to whatever you like. At the end of this post, I will have a list of the various keys possible). I will use the variable "[purchase]" for the object you are buying.
bind [key] "buy [purchase]"
You can even set up keys for multiple purchases...
bind [key] "buy [purchase1]; buy [purchase2]"
(note: when actually doing the binds, leave out the brackets. The quotes will need to stay).
And yes, it is that simple. After finishing all the binds, make sure to save the file, and ensure the name is AUTOEXEC.CFG
Purchase Aliases
(this is the name you need to use to refer to the item with. It replaces [purchase]
- alias ( gun name )
- galil ( Defender )
- ak47 ( AK-47 )
- scout ( Scout )
- sg552 ( Krieg )
- famas ( Clarion/FAMAS )
- m4a1 ( M4A1 )
- aug ( Bullpup )
- sg550 ( Krieg )
- glock ( Glock )
- usp ( USP )
- p228 ( p228 )
- deagle ( Deagle )
- elite ( Dualies )
- fiveseven ( Five-Seven )
- m3 ( Shotgun )
- xm1014 ( Auto Shotgun )
- mac10 ( Ingram MAC-10 )
- tmp ( TMP )
- mp5navy ( MP5 )
- ump45 ( UMP )
- p90 ( P90 )
- m249 ( M249 )
- primammo ( Primary Ammo, Full )
- buyammo1 ( Primary Ammo, 1 Clip)
- secammo ( Secondary Ammo, Full )
- buyammo2 ( Secondary Ammo, 1 Clip)
- vest ( Kevlar )
- vesthelm ( Kevlar+Helmet )
- flashbang ( Flashbang )
- hegrenade ( HE Grenade )
- smokegrenade ( Smoke Grenade )
- nvgs ( Nightvision )
- defuser ( Defusal Kit )
Bindable Keys
(used to replace [key])
All main-keyboard buttons are simply the number/letter they output (A-Z and 0-9, excluding numpad)
Numpads:
- alias ( numpad number )
- kp_end ( 1 )
- kp_downarrow ( 2 )
- kp_pgdn ( 3 )
- kp_leftarrow ( 4 )
- kp_5 ( 5 )
- kp_rightarrow ( 6 )
- kp_home ( 7 )
- kp_uparrow ( 8 )
- kp_pgup ( 9 )
Example:
bind kp_5 "buy m4a1; buyammo1"
Comment