Script Reference
General commands
cl_ragdoll_deathview 0/1 - When you die, your view follows your body. For instance, if your head gets blown across the map, your view is too.
hud_fastswitch 0/1/2 - Quick weapon changing [can also be set via "Options - Keyboard - Advanced - Fast weapon switch] (1 = keyboard & mouse, 2 = keyboard only)
dropitems - Throws the flag/item being carried
discard - Drops unneeded ammo packs
saveme - Call for Medic (to heal your health)
engyme - Call for Engineer (to repair your armor)
+medengymenu - Medic/Engy radial menu
primeone - Primes one of your primary grenades.
primetwo - Prime one of your secondary grenades.
throwgren - Throw a primed grenade.
toggleone - Primes and throws primary grenade on subsequent touches
toggletwo - Primes and throws secondary grenade on subsequent touches
+gren1 - Primes primary grenade
-gren1 - Throws primary grenade
+gren2 - Primes secondary grenade
-gren2 - Throws secondary grenade
cl_spawnslot slot number - Weapon slot to spawn with
cl_classautokill - Die as soon as you change classes
cl_grenadetimer - Timer file to use [can also be set via "Crosshairs / Timers - Timers"]
cl_autoreload 0 or 1 - Automatic weapon reload
changeteam - Brings up the screen to select teams
changeclass - Brings up the class change screen
class X - Change class : Takes effect upon next death
team X - Change team : Takes effect upon next death
%a - Shows your Armour
%h - Shows your Health
%l - Shows your Location
%c - Shows your Class
hud_centerid 0 or 1 - Sets player info in centre of screen
net_graphpos X - Change position of net_graph info (1 is bottom right, 2 is bottom centre, 3 is bottom left)
cl_hints 0 or 1 - Toggles Hints
Class-Specific Commands
Scout
"radar" or "+attack2" - Scout radar: Provides a snapshot of the position of enemy and friendly players.
Sniper
"+attack2" - Zoom the sniper rifle
Demoman
The Detpack weapon is in "slot6"
"detpipe" is now gone. You must use "+attack2" to det pipes.
detpack time - Sets detpack timer for specified amount of time.
Medic
Medkit is in "slot1", and "+attack2" can also be used
Spy
disguise team class - Spy disguise : [team can be color, enemy or friendly]
eg: bind "x" "disguise enemy soldier"
cloak - Cloak - (replaces feign)
scloak - Silent Cloak - (replaces sfeign)
[You cannot run and jump/bunnyhop whilst cloaked]
sentrysabotage - Places sabotage unit on Sentry Gun
dispensersabotage - Places sabotage unit on Dispenser
The above commands can be accessed via the Spy's Radial Menu using "+attack2"
Engineer
Dispenser is now "slot4"
Sentry Gun is now "slot5"
dispenser - To build Dispenser
sentrygun - To build Sentry Gun
dismantlesentry - To dismantle Sentry Gun
aimsentry - Aims Sentry Gun in direction crosshairs are pointing.
detdismantlesentry - Dismantles or detonate Sentry Gun depending on distance
detsentry - To detonate Sentry Gun
dismantledispenser - To dismantle Dispenser
detdispenser - Detonates the Dispenser
The above commands can all be accessed via the Engineer's "Radial Menu": +attack2
Available Binds
Ingame Key Name (Binding) - Out of Game Key Name Notes
SPACE - Space Bar
CAPSLOCK - Caps Lock
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 / System Break Key
` - Left Quote Also known as tilde (~)
- - Hyphen (-)
= - Equals Sign
BACKSPACE - Backspace
TAB - Tab Key
] - Right Bracket
\ - Forward Slash
SEMICOLON - Semicolon (;)
' - Right Quote
/ - Back Slash
SHIFT - Shift Key
ENTER - Enter or Carriage Return Not Keypad
, Comma (,)
CTRL - Control Left and Right Control are considered the same keys ingame.
ALT - Alt Left and Right ALT are considered the same keys ingame.
1 - One
2 - Two
3 - Three
4 - Four
5 - Five
6 - Six
7 - Seven
8 - Eight
9 - Nine
0 - Zero
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
UPARROW - Up Arrow (Not Keypad)
DOWNARROW - Down Arrow (Not Keypad)
RIGHTARROW - Right Arrow (Not Keypad)
LEFTARROW - Left Arrow (Not Keypad)
INS - Insert (Not Keypad)
HOME - Home (Not Keypad)
PGUP - Page Up (Not Keypad)
PGDN - Page Down (Not Keypad)
DEL - Delete (Not Keypad)
END - End (Not Keypad)
KP_HOME - Keypad Home, 7 Keypad
KP_UPARROW - Keypad Up Arrow, 8 Keypad
KP_PGUP - Keypad Page Up, 9 Keypad
KP_LEFTARROW - Keypad Left Arrow, 4 Keypad
KP_5 - Keypad 5 Keypad
KP_RIGHTARROW - Keypad Right Arrow, 6 Keypad
KP_END - Keypad End, 1 Keypad
KP_DOWNARROW - Keypad Down Arrow, 2 Keypad
KP_PGDN - Keypad Page Down, 3 Keypad
KP_ENTER - Keypad Enter Keypad
KP_INS - Keypad Insert, 0 Keypad
KP_DEL - Keypad Del, '.' Keypad
KP_SLASH - Keypad Back Keypad
KP_MINUS - Keypad Hyphen, - Keypad
KP_PLUS - Keypad Plus, + Keypad
* - Keypad Star, * Keypad
MOUSE1 - Mouse Button 1
MOUSE2 - Mouse Button 2
MOUSE3 - Mouse Button 3 (Middle button, if you have a 3 button mouse and it isnt working, try installing the latest drivers for your mouse and if your mouse software allows it, assign middle button to 'default' or 'middle button').
MOUSE4 - Mouse Button 4 (You may need to either install or uninstall mouse drivers for this button to work).
MOUSE5 - Mouse Button 5 (You may need to either install or uninstall mouse drivers for this button to work).
MWHEELUP - Mouse Wheel Up
MWHEELDOWN - Mouse Wheel Down