Jump to content

? servers

? players online

Enabling Console and Creating Binds

Recommended Posts


  • Content Count:  1730
  • Joined:  02/15/08
  • Status:  Offline

.: Quick reminder :.



Even though the STEAM client looks different, this guide helps you enable console.

Also creating binds works with same principle!

 

So, this thread is to tell you how to create binds in to your game by two different ways.

The first way we'll go through is the Console commands and second we'll be using text editor to edit our configuration files outside the game.

 

 

You'll first need to enable your CONSOLE so you can use it from ingame.

Most used way is to have steam open and then right-click on Counter-Strike: Source - after that Properties

(See picture below for example)

 

attachment.php?attachmentid=3946&d=1222966384

 

 

After you have gone in to properties, you'll have to click on "Set Launch Options..." button

attachment.php?attachmentid=3947&d=1222966384

 

 

Now, you'll just put in the field the "-console" as in picture below

attachment.php?attachmentid=3948&d=1222966384

 

After this you can start up game normally and you'll have "Console" always available when you hit ESC ingame unless you close it from the X at top right.

 

 

-- End of How-to console --

 

 

Notice :: You can ignore the attachments of this post, they are related to the whole thread and linked individually for each instruction.

Edited by Maxwelldon
Images didn't work because of forum update...
Link to comment

  • Content Count:  1730
  • Joined:  02/15/08
  • Status:  Offline

Now, since you have console enabled, when ever you are wanting to do new binds, just type this in;

bind kp_home "say This is a test bind"

 

Basically, this makes you bind Keypad number 7, which has also word "home" on it to say "This is a test bind" so all can see it in chat box ingame.

- You can change the "kp_home" to any button you want and edit the quoted part as you want.

 

For example, some useful prisonbreak binds to keypad:

bind kp_home "Say Drop the gun!!"
bind kp_leftarrow "Say BACK OFF! Or I will shoot!!"
bind kp_5 "Say DON'T cross the sprayline or you WILL be shot!"
bind kp_pgup "Say EDIT"
bind kp_pgdn "say EDIT"

------

Notice :: replace the EDIT with something you see fit

 

 

-- End of How-to-Bind in console --

  • Like 1
Edited by Maxwelldon
changed the binds so they are in code field
Link to comment

  • Content Count:  1730
  • Joined:  02/15/08
  • Status:  Offline

---- WARNING :: THIS IS FOR MORE ADVANCED USERS ----

 

As you see, this is for more advanced users on how-to create binds. Modifying the files is on your own risk and this may cause you lose binds if you mess up so before you do anything, take back-up from your files by copy+paste them in same folder and rename "file.cfg.bak" for example.

 

---- End of Warning ----

 

 

Now that thing said, welcome to advanced bind editing.

 

First of all, you need to locate your CFG folder. Default place for the folder is as following;

C:\Program Files\Steam\SteamApps\YOURACCOUNT\counter-strike source\cstrike\cfg

-- Replace "YOURACCOUNT" part with your account name.

 

When you find the folder, there should be at least file named "Config.cfg" which is the default file CS:S loads on startup.

I don't want to go mess around with it so we'll just leave it be and instead create a new file called "Autoexec.cfg" if you don't already have one.

 

This you can do by right-clicking somewhere in white area and then New -> Text Document

attachment.php?attachmentid=3940&d=1222964391

 

 

Afterwards, just type the new name in "Autoexec.cfg" and answer "Yes" to the warning.

attachment.php?attachmentid=3941&d=1222964391

 

 

Now, just right-click the "Autoexec.cfg" and then select "Open With..."

attachment.php?attachmentid=3942&d=1222964575

 

Now you need to select the application called "Notepad"

attachment.php?attachmentid=3943&d=1222964787

Optional - tick the check-box so you don't have to use the "Open With.." option later on to open these files.

 

Now you should have notepad open like this;

attachment.php?attachmentid=3944&d=1222965007

 

If so, you can now start add binds in the file like these:

bind kp_home "Say Drop the gun!!"
bind kp_leftarrow "Say BACK OFF! Or I will shoot!!"
bind kp_5 "Say DON'T cross the sprayline or you WILL be shot!"
bind kp_pgup "Say EDIT"
bind kp_pgdn "say EDIT"

Notice :: replace the EDIT with something you see fit

 

 

After that the notepad seems like this;

attachment.php?attachmentid=3945&d=1222965182

 

After this you can hit the hotkey CTRL+S // Or click on File -> Save // Or hit the X and "Yes" when it asks to save changes.

After saving, you can close the open CFG folder window by hitting the top right X

 

--- End of Advanced bind editing ---

Notice :: You can add binds but you can also add all sort miscellaneous things to the "Autoexec.cfg" file but most used it is for binds and rate changes.

Edited by Maxwelldon
Pics didn't work after forum update..
Link to comment

  • Content Count:  546
  • Joined:  04/12/09
  • Status:  Offline

Could someone on here give a list of what the abbreviations are for the keys on the keyboard and the abbreviations for all the guns and equipement?

Link to comment

  • Content Count:  2668
  • Joined:  03/29/09
  • Status:  Offline

Buy commands:

 

Pistols:

buy glock (9x19mm Sidearm)

buy usp (KM .45 Tactical)

buy p228 (228 Compact)

buy deagle (Night Hawk .50C)

buy elite (.40 Dual Elites) buy fiveseven (ES Five-Seven)

 

Shotguns:

buy m3 (Leone 12 Gauge Super)

buy xm1014 (Leone YG1265 Auto Shotgun)

 

SMG's:

buy mac10 (Ingram MAC-10)

buy tmp (Schmidt Machine Pistol)

buy mp5navy (KM Sub-Machine Gun)

buy ump45 (KM UMP45)

buy p90 (ES C90)

 

Rifles:

buy galil (IDF Defender)

buy ak47 (CV-47)

buy sg550 (Krieg 550 Commando)

buy famas (Clarion 5.56)

buy m4a1 (Maverick M4A1 Carbine)

buy aug (Bullpup)

buy scout (Schmidt Scout)

buy sg552 (Krieg 552)

buy awp (Magnum Sniper Rifle)

buy g3sg1 (D3/AU1)

 

Machine Guns:

buy m249 (M249)

 

Equipment:

buy primammo (Primary Ammo)

buy secammo (Secondary Ammo)

buy vest (Kevlar)

buy vesthelm (Kevlar+Helmet)

buy flashbang (Flashbang)

buy hegrenade (HE Grenade)

buy smokegrenade (Smoke Grenade)

buy nvgs (Nightvision)

buy defuser (Defusal Kit)

 

Those are all the weapons available in the game. In order to bind them, simply use this format:

 

bind "buy weapon"

 

So, for example, to buy an AK47, enter this into the console:

 

bind "buy AK47"

____________________

Binding to the Keypad:

 

These keys are not used in the default key binds, and (assuming you use WSAD for movement) are free to be bound to other commands. They are all located on the numpad, to the right hand side of a standard keyboard.

 

KP_INS (the 0 key)

KP_DEL (the decimal point)

KP_ENTER (the Enter key)

KP_PLUS (the Plus key)

KP_END (the 1 key)

KP_DOWNARROW (the 2 key)

KP_PGDN (the 3 key)

KP_LEFTARROW (the 4 key)

KP_5 (the 5 key)

KP_RIGHTARROW (the 6 key)

KP_HOME (the 7 key)

KP_UPARROW (the 8 key)

KP_PGUP (the 9 key)

KP_SLASH (the / key on the numpad)

* (the * key on the numpad)

KP_MINUS (the - key on the numpad)

 

Examples

 

code:bind "KP_INS" "buy ak47; buy m4a1; buy primammo" (Will buy an AK or an M4 with full ammo, depending on team choice, when you press 0 on the keypad)

 

bind "KP_DEL" "buy deagle; buy secammo" (Will buy a Desert Eagle (regardless of team choice) when the decimal key is pressed on the keypad)

 

bind "KP_LEFTARROW" "buy flashbang" (Will buy a single Flashbang when the 4 key is pressed, on the numpad)

 

bind "KP_5" "buy hegrenade" (Buys a frag nade when the 5 key is pressed on numpad)

 

bind "KP_RIGHTARROW" "buy smokegrenade" (Buys 1 smokegrenade when the 6 key is pressed)

 

bind "F3" "buy M4A1; buy AK47; buy primammo; buy flashbang; buy hegrenade; buy defuser" (Buys a full assault kit (rifle, primary weapon + ammo, 1xflash and 1x frag - and a defuser if CT) when you press F3)

 

These binds can be added to and editted, to fit your needs - but the KP keys are not used by default and as a result, can be used without fear of overwriting existing key binds.

  • Like 3
Link to comment

  • Content Count:  45
  • Joined:  10/02/08
  • Status:  Offline

How would I go about binding my home key to bind both mwheeldown and mwheelup to invnext and invprev?

 

Then bind end key to bind mwheeldown and mwheelup to +jump. So I can switch back and forth between regular CSS and bunny hopping.

Link to comment

  • Content Count:  1730
  • Joined:  02/15/08
  • Status:  Offline

How would I go about binding my home key to bind both mwheeldown and mwheelup to invnext and invprev?

 

Then bind end key to bind mwheeldown and mwheelup to +jump. So I can switch back and forth between regular CSS and bunny hopping.

Usual method with the bhop and reg CSS binding would go as in executing different configuration files.. Just a short code-field example of what the each file would contain;

 

bhop.cfg

bind "mwheelup" "+jump"
bind "mwheeldown" "+jump"

 

regcss.cfg

bind "mwheelup" "invnext"
bind "mwheeldown" "invprev"

 

- You can refer to the first post of how to create configuration files.

Link to comment

Reply to Thread

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...