""8"" 8 8 eeeee eeeee eeeee 8 e e eeeee e e eeee eeeee 8e 8 88 8 8 8 8 8e 8 8 8 8 8 8 8 8 8 88 8 8 8eee8 8e 8 88 8e 8 8eee8e 8eee8e 8eee 8eee8e 88 8 8 88 8 88 8 88 88 8 88 8 88 8 88 88 8 88 8eee8 88 8 88ee8 88eee 88ee8 88 8 88 8 88ee 88 8 Counter-Strike Scripting Guide v1.1 written by: ToadLurker *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* _ _ ____ ____ ____ _ ____ _ _ _ _ _ ____ ___ ____ ____ _ _ | | |___ |__/ [__ | | | |\ | |__| | [__ | | | |__/ \_/ \/ |___ | \ ___] | |__| | \| | | | ___] | |__| | \ | *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* version 1.1: released September 8, 2003 notes: -New ASCII art added... much easier to browse through. -Added the installation guide for CS 1.5 configuration files. ------------------------------------------------ version 1.0: released September 8, 2003 notes: BuyScripts, bind,and alias for both CS 1.5 and CS 1.6 have been covered *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* Table of Contents 1.0: BuyScripts (for CS 1.6) 1.1: "Bind" Command 1.2: "Alias" Command 1.3: Buyscripts (for CS 1.5) *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* 1.0: ___ _ _ _ _ ____ ____ ____ _ ___ ___ ____ |__] | | \_/ [__ | |__/ | |__] | [__ |__] |__| | ___] |___ | \ | | | ___] for CS 1.6 *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* _ _ _ ____ ___ ____ _ _ ____ ___ _ ____ _ _ | |\ | [__ | |__| | | |__| | | | | |\ | | | \| ___] | | | |___ |___ | | | | |__| | \| Fortunately, making a buy script is a lot easier than it was with CS 1.5. First of all, go to: C:\Program Files\Steam\SteamApps\YOUREMAILHERE\counter-strike\cstrike and create a file (using notepad) named: userconfig.cfg Steam will load this file along with config.cfg (the file that contains all your control preferences.) This is where our buyscript will be located. *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* CS 1.6 BUY COMMANDS: glock usp p228 deagle elites fn57 m3 xm1014 mac10 tmp mp5 ump45 p90 galil ak47 scout sg552 awp g3sg1 famas m4a1 aug sg550 m249 primammo secammo vest vesthelm flash hegren sgren nvgs defuser shield *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* 1.1: ___ _ _ _ ___ ____ ____ _ _ _ _ ____ _ _ ___ |__] | |\ | | \ | | | |\/| |\/| |__| |\ | | \ |__] | | \| |__/ |___ |__| | | | | | | | \| |__/ *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* I'm sure most of you know that this command exists, although most of you rarely ever use it. --------------------------------------------------- syntax: bind "key" "command1;command2" examples: bind "f1" "mp5;primammo" bind "f2" "m4a1;primammo;deagle;secammo;vesthelm" --------------------------------------------------- In the first example, the script will purchase an mp5 and primary ammo.(If the player has enough money for them all) In the second example, it will purchase and m4a1, primary ammo, deagle, secondary ammo, and finally, a Kevlar vest with a helmet. (If the player has enough money for them all) *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* 1.2: ____ _ _ ____ ____ ____ ____ _ _ _ _ ____ _ _ ___ |__| | | |__| [__ | | | |\/| |\/| |__| |\ | | \ | | |___ | | | ___] |___ |__| | | | | | | | \| |__/ *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* Tired of long buy scripts? (With CS 1.6 its less of an issue, but I'm still going to cover it) --------------------------------------------------- syntax: alias "codename" "command1;command2" examples: alias "my_mp5_kit" "mp5;primammo" alias "ct_heavy_kit" "m4a1;primammo;deagle;secammo;vesthelm" --------------------------------------------------- After the two example aliases have been set, bind "f1" "ct_heavy_kit" and bind "f1" "m4a1;primammo;deagle;secammo;vesthelm" both do the EXACT SAME THING, because ct_heavy_kit was defined to be : "m4a1;primammo;deagle;secammo;vesthelm". *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* 1.3: ___ _ _ _ _ ____ ____ ____ _ ___ ___ ____ |__] | | \_/ [__ | |__/ | |__] | [__ |__] |__| | ___] |___ | \ | | | ___] for CS 1.5 *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* NOTE: SOME OF MY MENUSELECTS MAY BE SLIGHTLY INACCURATE. _ _ _ ____ ___ ____ _ _ ____ ___ _ ____ _ _ | |\ | [__ | |__| | | |__| | | | | |\ | | | \| ___] | | | |___ |___ | | | | |__| | \| Unlike CS 1.6, CS 1.5 does not automatically load a custom user config file... you must tell it to yourself. Right click on your counter-strike shortcut icon and go to PROPERTIES. There you should see a field titled TARGET. This should be what you see (by default): C:\Sierra\halflife\halflife.exe –game cstrike   to add your custom configuration file, change the target path to this: C:\Sierra\halflife\halflife.exe –game cstrike +exec .cfg Where is the name of your configuration file. *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* With CS 1.5, Instead of being able to write "deagle" to buy a deagle , you will have to use the menu selection commands. --------------------------------------------------- example: bind "f2" "m4a1;primammo;deagle;secammo;vesthelm" has to be written like this to work in CS 1.5: bind "f2" "buy;menuselect 4;menuselect 3;buy;menuselect 6;buy;menuselect 1;menuselect 4;menuselect 7;buy;menuselect 8;menuselect 2;slot10" --------------------------------------------------- the "buy" command opens up a new buy menu. the "menuselect #" command selects a tab in the menu. the "slot10" command closes all open menus. When scripting in CS 1.5, I highly recommend using aliases. *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* ____ ____ ____ ___ _ ___ ____ | |__/ |___ | \ | | [__ |___ | \ |___ |__/ | | ___] *.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.*.^.* Thanks to Wetzer from the Official Steam Forums for solving my CS 1.5 to CS 1.6 conversion problems.