Beruflich Dokumente
Kultur Dokumente
- 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 Binds
bind f1 "buy ak47; buy m4a1; buy primammo; buy vest; buy hegrenade"
bind f2 "buy sg552; buy aug; buy primammo; buy vest; buy hegrenade"
//Game Configs
cl_showfps 1
cl_smooth 0
Weapon Bind Names
| Script making | 0 komentari
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.
- Pistols:
"Glock18 Select Fire" - glock
"H&K USP .45 Tactical" - usp
"SIG P228" - p228
"Desert Eagle" - deagle
"FN Five-Seven" - fiveseven
"Dual Beretta 96G Elite" - elite
- Shotguns:
"Benelli M3 Super90" - m3
"Benelli XM1014" - xm1014
- Submachine Guns:
"Steyr Tactical Machine Pistol" - tmp
"Ingram MAC-10" - mac10
"H&K MP5-Navy" - mp5navy
"H&K UMP45" - ump45
"FN P90" - p90
- Assault Rifles:
"Galil" - galil
"Famas" - famas
"AK-47" - ak47
"Colt M4A1 Carbine" - m4a1
"SIG SG-552 Commando" - sg552
"Steyr Aug" - aug
- Sniper Rifles:
"Steyr Scout" - scout
"SIG SG-550 Sniper" - sg550
"AI Arctic Warfare/Magnum" - awp
"H&K G3/SG-1 Sniper Rifle" - g3sg1
- Machine Gun:
[Esc ] [F1] [F2] [F3] [F4] [F5] [F6] [F7] [F8] [F9] [F10] [F11] [F12]
[`] [1] [2] [3] [4] [5] [6] [7] [8] [9] [0] [-] [=] [Backspace]
[ Tab ] [Q] [W] [E] [R] [T] [Y] [U] [I] [O] [P] [{] [}] [ \ ]
[ CAPS ] [A] [S] [D] [F] [G] [H] [J] [K] [L] [;] ['] [ Enter ]
[ Shift ] [Z] [X] [C] [V] [B] [N] [M] [,] [.] [/] [ Shift ]
[Ctrl] [N/A] [Alt] [ Space Bar ] [Alt] [N/A] [N/A] [Ctrl]
Keyboard 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
Keypad Key Key Bind Name
---------- ------------1 - kp_end
2 - kp_downarrow
3 - kp_pgdn
4 - kp_leftarrow
5 - kp_5
6 - kp_rightarrow
7 - kp_home
8 - kp_uparrow
9 - kp_pgup
0 - kp_ins
+ - kp_plus
- - kp_minus
/ - kp_slash
. - kp_del
* - *
Enter - kp_enter
Important Notes
| Script making | 0 komentari
- 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
| Script making | 0 komentari
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"
//Buy Menu Scripts
bind kp_home "buy deagle; buyammo2; buyammo2"
bind kp_uparrow "buy scout; buyammo1"
bind kp_pgup "buy mp5navy; buy primammo"
bind kp_leftarrow "buy galil; buy famas; buy primammo"
bind kp_5 "buy ak47; buy m4a1; buy primammo"
bind kp_rightarrow "buy sg552; buy aug; buy primammo"
bind kp_end "buy hegrenade; buy flashbang; buy smokegrenade"
bind kp_downarrow "buy primammo; buy secammo"
bind kp_pgdn "buy vest; buy vesthelm"
//Game Configs
cl_showfps 1
hud_drawhistory_time 1
hud_deathnotice_time 3
hud_saytext_time 5
cl_smooth 0
cl_ragdoll_collide 1