Author pic.
bloing xtra
"putting the (extra) oin in blog"
TW@Thrustworld "The place to die for"
213.86.172.24:11425
Quakeworld IRC: #clantw@

TW@s with @titudes
invite you to play at
213.86.172.24:11425

c/o Thrustworld


Counter Strike Config Scripts

Here's the highlights from my Counter Strike config files. Hope they're of use. Leave comments if you have any questions or suggestions. I'm happy to knock up tailered scripts for TW@s and other mates. All of the following are buy scripts. I.e. they purchase supplies quickly so you can get straight off into the action.

There are now two versions of these scripts. If you are new to scripting the basic ones may be simpler. The advanced ones punctuate the buy scripts with say_team messages to inform your buddies of what you're buying as you buy them. This can be handy for ensuring not everyone buys sniper equipment for example. There's also a useful alias called messageToggle (set to Z in my setup). This turns off the messages for public servers. Press again for Terrorist messages and another time for Counter Terrorist messages. It's worth noting that the advanced ones use more aliases which might make them easier to read.

Add the following to the bottom of your cstrike/autoexec.cfg file (e.g. paste from here via notepad). It's all commented so it should be fairly easy to read and change if you like. Adding this shouldn't affect your current set-up unless you've manually written stuff with the same alias. If you don't already have an autoexec.cfg file then just create one (e.g. with Notepad).

The bigwait stuff is a cheeky way of fixing the menu 0 option. It's just a big pause. The guns all have the same basic type of set-up. E.g the fave script will buy: a Sig [1.3] if T or a Bullpup [4.4] if CT; then Full Armour [E.2], if there's enough cash; or Helmet [E.1] if lower on cash; then Secondary Ammo [7] if there's any spare pennies.

I've also put my text files up in case you want to download them in their entirity. I don't recommend putting them in your cstrike directory unless you are sure you want to trash your existing ones. There located at: autoexec.cfg.txt and config.cfg.txt. Strip the ".txt" bit off if you want to use them lock stock.

One final note. These have all been tested and I believe to be working 100%. However you may find problems if you have a very high ping on a server. If I encounter this I will add in more "wait" commands to compensate.

Advanced autoexec.cfg scrpt

unbindall
bind "TAB" "+showscores"
bind "'" "+moveup"
bind "+" "sizeup"
bind "." "buyammo1"
bind "," "buyammo2"
bind "-" "sizedown"
bind "0" "slot10"
bind "2" "slot2"
bind "4" "slot4"
bind "ESCAPE" "cancelselect"

// --- shortcuts --- \\

// bigwait - long pause
alias "bigwait" "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;"

// PrimaryAmmo - buy Primary Ammo (repeats twice to make sure)
alias "PrimaryAmmo" "buy;wait;menuselect 6;wait;menuselect 6;wait;"

// SecondaryAmmo - buy Secondary Ammo (repeats twice to make sure)
alias "SecondaryAmmo" "buy;wait;menuselect 7;wait;menuselect 7;wait;"

// Buy messages - chose to inform your team mates about what you're buying, or not
// Default messages (set to Terrorist to start with)
alias msgDeagle say_team {Buying Deagle}
alias msgMP5 say_team {Buying mp5}
alias msgCheapFave "say_team { Buying AK47/M4a1 }"
alias msgSigBul say_team {Buying Sig Commando}
alias msgAWM "say_team { Buying AWM }"
alias msgShotgun "say_team { Buying Shotgun }"
alias msgNone "developer 1; wait; wait; echo (Messages off); wait; developer 0"
alias msgGrenades "say_team { Buying grenades }"

// Enable toggling of messages on or off
alias "messagesOnT" "alias msgMP5 say_team {Buying mp5}; alias msgDeagle say_team {Buying Deagle};alias msgCheapFave say_team { Buying AK47 }; alias msgSigBul say_team {Buying Sig Commando}; alias msgAWM say_team { Buying AWM }; alias msgShotgun say_team { Buying Shotgun }; alias msgGrenades say_team { Buying grenades }; developer 1; wait; wait; echo Buy messages on (Terrorist); wait; developer 0; alias messageToggle messagesOnCT"
alias "messagesOnCT" "alias msgMP5 say_team {Buying mp5}; alias msgDeagle say_team {Buying Deagle}; alias msgCheapFave say_team { Buying M4A1 }; alias msgSigBul say_team {Buying Bullpup}; alias msgAWM say_team { Buying AWM }; alias msgShotgun say_team { Buying Shotgun }; alias msgGrenades say_team { Buying grenades }; developer 1; wait; wait; echo Buy messages on (Counter Terrorist); wait; developer 0; alias messageToggle messagesOff"
alias "messagesOff" "alias msgmp5 msgNone; alias msgDeagle msgNone; alias msgCheapFave msgNone; alias msgSigBul msgNone; alias msgAWM msgNone; alias msgShotgun msgNone; alias msgGrenades msgNone; developer 1; wait; wait; echo Buy messages off; developer 0; alias messageToggle messagesOnT"
alias "messageToggle" "messagesOff" // [Z]

// Weapon Purchase
alias BuyDeagle "buy;wait;menuselect 1;wait;menuselect 3;wait" // Buys Deagle [1.3]
alias BuyMp5 "buy;wait;menuselect 3;wait;menuselect 1;wait" // Buys Mp5 [3.1]
alias BuyCheapFave "buy;wait;menuselect 4;wait;menuselect 1;wait;buy;wait;menuselect 4;wait;menuselect 3;wait"
  // AK47 or M4A1
alias BuySigBull "buy;wait;menuselect 4;wait;menuselect 2;wait;buy;wait;menuselect 4;wait;menuselect 4;wait"
  // Sig Commando or Bullpup
alias BuyAWM "buy;wait;menuselect 4;wait;menuselect 6;wait;BuyDeagle"  // Buys AWM [4.6] & Deagle
alias BuyShotgun "buy;wait;menuselect 2;wait;menuselect 2;wait" // BuysShotgun [2.2]
// *** more

// Other Purchase
alias BuyArmour "buyequip;wait;menuselect 2;buyequip;wait;menuselect 1;" // FUll Armour [E.2] or Helmet [E.1]
// *** more

//  Other bits used during purchasing
alias QuitMenu "bigwait;slot10;bigwait;slot10;bigwait"  // Quit the buy menu
alias SwitchToKnife "slot3; +attack; wait; wait; -attack" // Pull out the Knife for a quick run

// --- Purchase Options --- \\
// (NB All comments in sequence so if money is low last items will not be bought).  In order of cost.

// deagle [N] - Buys Deagle [1.3], FUll Armour [E.2] or Helmet [E.1] if low on cash, Secondary Ammo [7]
alias "deagle" "msgDeagle;BuyDeagle;BuyArmour;SecondaryAmmo;QuitMenu;SwitchToKnife"

// mp5 [J]
alias "mp5" "msgMp5;BuyMp5;BuyArmour;PrimaryAmmo;QuitMenu;SwitchToKnife"

// cheapfave [H] - Buys AK47 or M4A1
alias "cheapfave" "msgCheapFave;BuyCheapFave;BuyArmour;PrimaryAmmo;SecondaryAmmo;QuitMenu;SwitchToKnife"

// fave [K] - Buys Sig (4.2) or Bullpup (4.4), Full Armour (E.2) if cash else helmet (E.1), Primary Ammo
alias "fave" "msgSigBul;BuySigBull;BuyArmour;PrimaryAmmo;SecondaryAmmo;QuitMenu;SwitchToKnife"

// AWM [O] - Buys AWM or AWL
alias "AWM" "msgAWM; BuyAWM; BuyArmour; PrimaryAmmo; SecondaryAmmo; QuitMenu; SwitchToKnife"

// shotgun [L]
alias "shotgun" "msgShotgun; BuyShotgun; BuyArmour; PrimaryAmmo; SecondaryAmmo; QuitMenu; SwitchToKnife"

// grenades [P]
// Buys
alias "grenades" "msgGrenades;buyequip;wait;menuselect 3;wait;buyequip;wait;menuselect 4;wait;buyequip;wait;menuselect 5;wait;bigwait;slot10;bigwait;slot10;"

    

Basic autoexec script

    
// --- shortcuts

// bigwait - long pause
alias "bigwait" "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;"

// primaryammo - buy Primary Ammo
alias "primaryammo" "buy;wait;menuselect 6;wait;menuselect 6;wait;menuselect 6;wait;menuselect 6;wait;wait;wait;wait;"

// --- Purchase Options
// (NB All comments in sequence so if money is low last items will not be bought)

// mp5 [J]
alias "mp5" "buy;wait;menuselect 3;wait;menuselect 1;wait;buyequip;wait;menuselect 2;wait;buyequip;wait;menuselect 1;wait;wait;buy;wait;menuselect 6;wait;menuselect 6;wait;menuselect 6;wait;menuselect 6;bigwait;slot10;bigwait;slot10;"

// fave [K]
// Buys Sig (4.2) or Bullpup (4.4), Full Armour (E.2) if cash else helmet (E.1), Primary Ammo, Defuse
alias "fave" "buy;wait;menuselect 4;wait;menuselect 2;wait;buy;wait;menuselect 4;wait;menuselect 4;wait;buyequip;wait;menuselect 2;buyequip;wait;menuselect 1;wait;primaryammo;bigwait;slot10;bigwait;slot10;"

// deagle [N]
// Buys Deagle [1.3], FUll Armour [E.2] or Helmet [E.1] if low on cash, Secondary Ammo [7]
alias "deagle" "buy;wait;menuselect 1;wait;menuselect 3;wait;buyequip;wait;menuselect 2;buyequip;wait;menuselect 1;buy;wait;menuselect 7;wait;menuselect 7;wait;menuselect 7;wait;menuselect 7;bigwait;slot10;bigwait;slot10;"

// cheapfave - Buys AK47 or M4A1
alias "cheapfave" "buy;wait;menuselect 4;wait;menuselect 1;wait;buy;wait;menuselect 4;wait;menuselect 3;wait;buyequip;wait;menuselect 2;wait;buyequip;wait;menuselect 1;wait;buy;wait;menuselect 6;wait;menuselect 6;wait;menuselect 6;wait;menuselect 6;bigwait;slot10;bigwait;slot10;"

// whore [O] - Buys AWM, AWL, AWP whatever you call it :o)
alias "whore" "buy;wait;menuselect 4;wait;menuselect 6;wait;buyequip;wait;menuselect 2;wait;buyequip;wait;menuselect 1;wait;buy;wait;menuselect 6;wait;menuselect 6;wait;menuselect 6;wait;menuselect 6;bigwait;slot10;bigwait;slot10;

// shotgun [L]
alias "shotgun" "buy;wait;menuselect 2;wait;menuselect 2;wait;buyequip;wait;menuselect 2;wait;buyequip;wait;menuselect 1;wait;buy;wait;menuselect 6;wait;menuselect 6;wait;menuselect 6;wait;menuselect 6;wait;slot10;bigwait;slot10;"

// grenades [P]
// Buys
alias "grenades" "buyequip;wait;menuselect 3;wait;buyequip;wait;menuselect 4;wait;buyequip;wait;menuselect 5;wait;bigwait;slot10;bigwait;slot10;"


Config.cfg for advanced

Then all you need to do is map these groovy scripts to keys. Add something like the following to the bottom of your cstrike/config.cfg file (e.g. paste from here via notepad). You may need to modify the keys you want to map each script to. Warning: "as is" it may affect your current key bindings if you use the H, J, K, L, N, O, P, or Z keys for anything already.

    
bind "h" "cheapfave"
bind "j" "mp5"
bind "k" "fave"
bind "l" "shotgun"
bind "n" "deagle"
bind "o" "AWM"
bind "p" "grenades"
bind "z" "messageToggle"

The cost table

This table should give you an idea of what will be bought with your available cash. The figures shown are the total at the time of buying that item.

Weapon + Full Armour (Armor) + Primary Ammo + Secondary Ammo
Deagle $650 $1650 ? ?
MP5 $1500 $2500 ? ?
cheapfave (T AK47) $2500 $3500 ? ?
cheapfave (CT M4A1) $3100 $4100 ? ?
fave (T Sig Commando) $3500 $4500 ? ?
fave (CT Bullpup) $3500 $4500 ? ?
shotgun $1700 $2700 ? ?
AWM $4750 $5750 ? ?
grenades $800 for all 3 N/A N/A N/A

If you don't have enough money for full armour the script will attempt to buy the vest at $650. So the total would be $350 less than the armour figure above.

Enjoy!

posted at 12:30 AM  |   ]

bloing blog home