½-Lifers Downloads Ratings Forums Other


Tips and Tweaks

Ginger Explains How to Alias and Bind Your Favorite Buys

This may be old news for some the the CS vets in our group but I thought I would share this with the rest. Do you ever tire of buying and closing menus at the beginning of a round delaying that inevitable bullet in the head? Boy I sure do, buying slows me down and in lagland where I live.... that's a lifetime! The following are instruction on how to alias your favorite buys and bind them to a key. It's mostly just copy and paste scripts so enjoy.

How to alias your buys and bind them to a key.

1. First create an autoexec.cfg file in your main cstrike directory.

2. Copy and paste the following into your autoexec.cfg file.


********************************************************************************
//Menu Clear//
alias mcl "slot10;wait;wait;slot10;wait;slot10;wait;slot10"

//Menu Selects//
alias ms1 "menuselect 1"
alias ms2 "menuselect 2"
alias ms3 "menuselect 3"
alias ms4 "menuselect 4"
alias ms5 "menuselect 5"
alias ms6 "menuselect 6"
alias ms7 "menuselect 7"
alias ms8 "menuselect 8"

*********************************************************************************

3. The following are alias scripts for most of the weapons, ammo, and equipment you can buy. If you look at the scripts I do not have an alias for the Terrorist's AK47 or Sig and the Counter-terrorists M4 or aug Assualt rifles. They are there, I have just aliased the T and CT's light assualt
rifles together and did the same for the heavy assualt rifles. This way you can access both through one alias/bind irregardless of the team you are on.

Copy and paste all of them or just your favorites into the newly created autoexec.cfg file.


*******************************************************************************
//Weapons and ammo - weapon aliases buy ammo at same time
alias ammo1 "buy; ms6; mcl" // Primary Ammo
alias ammo2 "buy; ms7; mcl" // Secondary Ammo
alias p228 "buy; ms1; ms4; ammo2; mcl" // Pistol
alias eagle "buy; ms1; ms3; ammo2; mcl" // Desert Eagle
alias dual "buy; ms1; ms5; ammo2; mcl" // Dual Berrettas
alias m3 "buy; ms2; ms1; ammo1; mcl" // Small Shotgun
alias shotg "buy; ms2; ms2; ammo1; mcl" // xm1014 Super Shotgun
alias tmp "buy; ms3; ms2; ammo1; mcl" // Sub-machine Gun
alias mp5 "buy; ms3; ms1; ammo1; mcl" // Sub-machine Gun
alias p90 "buy; ms3; ms3; ammo1; mcl" // Sub-machine Gun
alias uzi "buy; ms3; ms4; ammo1; mcl" // Sub-machine Gun
// T and CT's light assualt rifle
alias team-light-rifle "buy; ms4; ms3; buy; ms4; ms1; ammo1; mcl"
// T and CT's heavy assualt rifle
alias team-heavy-rifle "buy; ms4; ms4; buy; ms4; ms2; ammo1; mcl"
alias scout "buy; ms4; ms5; ammo1; mcl" // Sniper Rifle
alias awm "buy; ms4; ms6; ammo1; mcl" // Sniper Rifle
alias sig550 "buy; menuselect 4; menuselect 8; ammo1; mcl" // Auto sniper
Rifle
alias m249 "buy; menuselect 5; menuselect 1; ammo1; mcl" // Machine Gun

//Equipment//
alias arm "buy; ms8; ms1; mcl" // Armour
alias helm "buy; ms8; ms2; mcl" // Helmut
alias helarm "buy; helm; arm; mcl" // Both Helmut and Armour
alias flash "buy; ms8; ms3; mcl" // flashbang grenade
alias he "buy; ms8; ms4; mcl" // he grenade
alias smoke "buy; ms8; ms5; mcl" //smoke grenade
alias def "buy; ms8; ms6; mcl" // defusal kit
alias nvgs "buy; ms8; ms7; mcl" // night vision

**********************************************************************************

NOTE: As you have seen above, you can alias your aliases as well to make cobinations of your favorite buys. When I buy a weapon I automatically buy full ammo for it.

A multiple equipment buy could look like this:

alias CTequip "helm; arm; he; flash; defus; mcl"

Then you can bind CTequip to a key.

4. Once you have your aliases looking the way you want save your autoexe.cfg and open your config.cfg file which is in the same cstrike directory.

5. All that is left to do is bind your aliases to a key. You can see the syntax to do this by looking at other bind statements in your config.cfg file. Here is an example:

bind "ammo1" "END"

This binds buying primary ammo to the END key.

6 . Once you bind the aliases you want, save and exit your config.cfg file. Run CS and test them.

WARNING: You may notice that the menu remains open after your buys. It did on mine. It only seems to do this online during a game and I'm not sure why. It works fine when I setup a lan game on my pc. The last MCL alias attached to your buy aliases should be clearing the menu. If it does not clear for you, use this work-around. Just add 'slot10' to the end of any of your
movement binds in your config.cfg file. Example:

bind "UPARROW" "+forward; slot10"

Do this to all your move keys and the menu will close as soon as you move.

Well that's pretty much it. Again if you have trouble give me a shout. There are also CS scripting resources online to learn more, just search for them.

Hope this helps,
Ginger