=====================
* Table of Contents *
=====================
0. Version History
1. Legal Note
2. Introduction & Thanks
3. Setup
4. Entering Commands
5. Weapon Bind Names
6. Radio Bind Names
7. Key Bind Names
8. Important Notes
9. Sample Autoexec
===================
* Version History *
===================
- Version Final completed on June 8th, 2005.
* Updated the "Introduction & Thanks" Section
- Version 1.04 completed on March 1st, 2005.
* Added "Radio Bind Names" list
- Version 1.03 completed on January 24th, 2005.
* Corrected wrong key names in the bind key listing
- Version 1.02 completed on November 29th, 2004.
* Added the encoding type when saving in Notepad
- Version 1.01 completed on October 31st, 2004.
* Updated program directory for cfg folder
- Version 1.00 completed on October 21st, 2004.
==============
* Legal Note *
==============
This may be not be reproduced under any circumstances except for personal,
private use. It may not be placed on any web site or otherwise distributed
publicly without advance written permission. Use of this guide on any other web
site or as a part of any public display is strictly prohibited, and a violation
of copyright.
=========================
* Introduction & Thanks *
=========================
This is the final version of this FAQ, I will no longer be making any updates
to it. If the material in the FAQ becomes incorrect or obsolete due to various
game updates, please inform me and I will remove it for obvious reasons.
I wanted to make this FAQ for any one that would like to use Buy
Scripts in CS:S. It's pretty much the same as scripting in CZ and 1.6, but
there are a few key changes that have been made. Anyway, if you want to know
how to buy script in CS:S or learn to do buy scripting in general read on. If
you're still unsure about anything there is a sample script at the end of the
FAQ that shows how its all done and what it looks like.
If anyone has any questions or comments, please feel free to e-mail me:
autokalashnikov47(at)yahoo(dot)com.
=========
* Setup *
=========
First, we'll need to make an autoexec file for your binds to go in...
- Right-Click anywhere in the folder, from the pop-up list go to New >>> Text
Document.
*** Use Notepad for creating / editing your configs to prevent any possible
problems ***
- Once you open up the new text file, go to File >>> Save As...
- For the File name: "autoexec.cfg"
- For the Save as type: "All Files (*.*)"
- For the Encoding: ANSI
- Once it's saved it will create a NEW document called an autoexec.cfg, this is
where you will enter in your commands.
=====================
* Entering Commands *
=====================
- Now, here's how the buy scripting works in Source. First type which key that
you want to bind (for this example we will use f1):
bind f1
- Now, decide which weapon you would like f1 to buy, we'll use the AK-47:
bind f1 "buy ak47"
- And that's it...of course there's more things you can add such as buying
Primary Ammo, Kevlar, Grenades, etc. So we'll do one so that we buy an
AK-47, Primary Ammo, Kevlar, and a HE grenade:
bind f1 "buy ak47; buy primammo; buy vest; buy hegrenade"
- You can also combine 2 different team specific weapons into the same binds.
Like the AK-47 and M4A1:
- You can also add text headers in your autoexec in order to keep different
types of binds separated and labeled. Just add "//" to the beginning to make
sure that the game doesn't try to read it as a command. The following is an
example:
=====================
* Weapon Bind Names *
=====================
Here is the list of the weapons and equipment you can buy and their proper
bind name...also note that these are the real weapon names and not the fake
VGUI weapon names just in case you're wondering why they're listed differently
here.
====================
* Radio Bind Names *
====================
You can also bind radio commands now, here is the list of the radio messages
and their proper bind name...
- Radio A:
"Cover Me" - coverme
"You Take the Point" - takepoint
"Hold This Position" - holdpos
"Regroup Team" - regroup
"Follow Me" - followme
"Taking Fire, Need Assistance" - takingfire
- Radio B:
"Go" - go
"Fall Back" - fallback
"Stick Together Team" - sticktog
"Get in Position" - getinpos
"Storm the Front" - stormfront
"Report In" - report
[Ctrl] [N/A] [Alt] [ Space Bar ] [Alt] [N/A] [N/A] [Ctrl]
Keyboard Key Key Bind Name
------------ -------------
Space Bar - space
Caps Lock - capslock
Escape - escape
F1 - f1
F2 - f2
F3 - f3
F4 - f4
F5 - f5
F6 - f6
F7 - f7
F8 - f8
F9 - f9
F10 - f10
F11 - f11
F12 - f12
Pause - pause
Left Quote - `
Hyphen - -
Equals Sign - =
Backspace - backspace
Tab Key - tab
Left Bracket - ]
Right Bracket - [
Forward Slash - /
Semicolon - semicolon
Right Quote - '
Back Slash - \
Shift Key - shift
Enter - enter
Comma - ,
Control - ctrl
Alt - alt
One - 1
Two - 2
Three - 3
Four - 4
Five - 5
Six - 6
Seven - 7
Eight - 8
Nine - 9
Zero - 0
A - a
B - b
C - c
D - d
E - e
F - f
G - g
H - h
I - i
J - j
K - k
L - l
M - m
N - n
O - o
P - p
Q - q
R - r
S - s
T - t
U - u
V - v
W - w
X - x
Y - y
Z - z
Up Arrow - uparrow
Down Arrow - downarrow
Right Arrow - rightarrow
Left Arrow - leftarrow
Insert - ins
Home - home
Page Up - pgup
Page Down - pgdn
Delete - del
End - end
Mouse Button 1 - mouse1
Mouse Button 2 - mouse2
Mouse Button 3 - mouse3
Mouse Button 4 - mouse4
Mouse Button 5 - mouse5
Mouse Wheel Up - mwheelup
Mouse Wheel Down - mwheeldown
===================
* Important Notes *
===================
- Buy scripting in source is a lot more lenient when it comes to format. You
can use capital letters for the weapon names and keys, also you can remove
the spaces between different items (buy vest;buy primammo) and your script
will still work properly. Although mistakes can still happen...
- If your scripts don't seem to be working, first make sure that you've setup
your autoexec properly, then check spelling, and then format. Most errors
are caused by misspelling.
- If you don't have enough money to buy all the items, the game will buy in the
order that you have the weapons/equipment listed in your script.
- If you just want to buy single clips of ammo use either buyammo1 for primary
ammo, or buyammo2 for secondary ammo, very useful for it you just want to buy
one or two magazines of AWP ammo or pistol ammo.
- You can bind a key to use a certain weapon if you would like, which is very
helpful with grenades, the following is an example:
bind mouse4 "use weapon_hegrenade"
===================
* Sample Autoexec *
===================
The following is an example of an autoexec that has buy scripts, toggle scripts
and game configs in it so you can see an example of how it all looks when used
together.
//Walk Toggle Script
alias walk "+speed; bind q run"
alias run "-speed; bind q walk"
bind q "walk"
//Net_Graph Script
alias +netgraph "net_graph 3"
alias -netgraph "net_graph 0"
bind ctrl "+netgraph"
Queria ter este jogo
Class
Lol