Difference between revisions of "Script Reference"

From Fortress Forever Wiki
Jump to navigationJump to search
(New page: =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.<br> hud_fastswitch 0/1/2 -...)
 
Line 85: Line 85:
  
 
=Available Binds=
 
=Available Binds=
Ingame Key Name (Binding) Out of Game Key Name Notes <br>
+
{| border="1" cellspacing="0" align="center"
 
+
|+&nbsp;
SPACE Space Bar   <br>
+
|-
CAPSLOCK Caps Lock   <br>
+
! | Ingame Key Name (Binding)
ESCAPE - Escape  <br>
+
! | Out of Game Key Name Notes
F1 - F1  <br>
+
|-
F2 - F2  <br>
+
| | SPACE
F3 - F3  <br>
+
| | Space Bar
F4 - F4  <br>
+
|-
F5 - F5  <br>
+
| | CAPSLOCK
F6 - F6  <br>
+
| | Caps Lock
F7 - F7  <br>
+
|-
F8 - F8  <br>
+
| | ESCAPE
F9 - F9  <br>
+
| | Escape
F10 - F10  <br>
+
|-
F11 - F11  <br>
+
| | F1
F12 - F12  <br>
+
| | F1 (Function 1)
PAUSE Pause / System Break Key   <br>
+
|-
` Left Quote Also known as tilde (~) <br>
+
| | F2
- - Hyphen (-)   <br>
+
| | F2 (Function 2)
= Equals Sign   <br>
+
|-
BACKSPACE - Backspace  <br>
+
| | F3
TAB Tab Key   <br>
+
| | F3 (Function 3)
] Right Bracket   <br>
+
|-
\ Forward Slash   <br>
+
| | F4
SEMICOLON Semicolon (;)   <br>
+
| | F4 (Function 4)
' Right Quote   <br>
+
|-
/ Back Slash   <br>
+
| | F5
SHIFT - Shift Key   <br>
+
| | F5 (Function 5)
ENTER Enter or Carriage Return Not Keypad <br>
+
|-
, Comma (,)   <br>
+
| | F6
CTRL Control Left and Right Control are considered the same keys ingame. <br>
+
| | F6 (Function 6)
ALT Alt Left and Right ALT are considered the same keys ingame. <br>
+
|-
1 - One  <br>
+
| | F7
2 - Two  <br>
+
| | F7 (Function 7)
3 - Three  <br>
+
|-
4 - Four  <br>
+
| | F8
5 - Five  <br>
+
| | F8 (Function 8)
6 - Six  <br>
+
|-
7 - Seven  <br>
+
| | F9
8 - Eight  <br>
+
| | F9 (Function 9)
9 - Nine  <br>
+
|-
0 - Zero  <br>
+
| | F10
A - A  <br>
+
| | F10 (Function 10)
B - B  <br>
+
|-
C - C  <br>
+
| | F11
D - D  <br>
+
| | F11 (Function 11)
E - E  <br>
+
|-
F - F  <br>
+
| | F12
G - G  <br>
+
| | F12 (Function 12)
H - H  <br>
+
|-
I - I  <br>
+
| | PAUSE
J - J  <br>
+
| | Pause / System Break Key
K - K  <br>
+
|-
L - L  <br>
+
| | '''`'''
M - M  <br>
+
| | Left Quote Also known as tilde ('''~''')
N - N  <br>
+
|-
O - O  <br>
+
| | '''-'''
P - P  <br>
+
| | Hyphen ('''-''')
Q - Q  <br>
+
|-
R - R  <br>
+
| | '''='''
S - S  <br>
+
| | Equals Sign
T - T  <br>
+
|-
U - U  <br>
+
| | BACKSPACE
V - V  <br>
+
| | Backspace
W - W  <br>
+
|-
X - X  <br>
+
| | TAB
Y - Y  <br>
+
| | Tab Key
Z - Z  <br>
+
|-
UPARROW Up Arrow (Not Keypad) <br>
+
| | ''']'''
DOWNARROW Down Arrow (Not Keypad) <br>
+
| | Right Bracket
RIGHTARROW Right Arrow (Not Keypad) <br>
+
|-
LEFTARROW Left Arrow (Not Keypad) <br>
+
| | '''\'''
INS Insert (Not Keypad) <br>
+
| | Forward Slash
HOME Home (Not Keypad) <br>
+
|-
PGUP Page Up (Not Keypad) <br>
+
| | SEMICOLON
PGDN Page Down (Not Keypad) <br>
+
| | Semicolon (''';''')
DEL Delete (Not Keypad) <br>
+
|-
END End (Not Keypad) <br>
+
| | '''''''
KP_HOME Keypad Home, 7 Keypad <br>
+
| | Right Quote
KP_UPARROW Keypad Up Arrow, 8 Keypad <br>
+
|-
KP_PGUP Keypad Page Up, 9 Keypad <br>
+
| | '''/'''
KP_LEFTARROW Keypad Left Arrow, 4 Keypad <br>
+
| | Back Slash
KP_5 Keypad 5 Keypad <br>
+
|-
KP_RIGHTARROW Keypad Right Arrow, 6 Keypad <br>
+
| | SHIFT
KP_END Keypad End, 1 Keypad <br>
+
| | Shift Key
KP_DOWNARROW Keypad Down Arrow, 2 Keypad <br>
+
|-
KP_PGDN Keypad Page Down, 3 Keypad <br>
+
| | ENTER
KP_ENTER Keypad Enter Keypad <br>
+
| | Enter or Carriage Return Not Keypad
KP_INS Keypad Insert, 0 Keypad <br>
+
|-
KP_DEL Keypad Del, '.' Keypad <br>
+
| | ''','''
KP_SLASH Keypad Back Keypad <br>
+
| | Comma (''',''')
KP_MINUS Keypad Hyphen, - Keypad <br>
+
|-
KP_PLUS Keypad Plus, + Keypad <br>
+
| | CTRL
<nowiki>*</nowiki> Keypad Star, * Keypad <br>
+
| | Control Left and Right Control are considered the same keys ingame.
MOUSE1 Mouse Button 1  <br>
+
|-
MOUSE2 Mouse Button 2  <br>
+
| | ALT
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'). <br>
+
| | Alt Left and Right ALT are considered the same keys ingame.
MOUSE4 Mouse Button 4 (You may need to either install or uninstall mouse drivers for this button to work). <br>
+
|-
MOUSE5 Mouse Button 5 (You may need to either install or uninstall mouse drivers for this button to work). <br>
+
| | 1
MWHEELUP Mouse Wheel Up  <br>
+
| | One
MWHEELDOWN - Mouse Wheel Down<br>
+
|-
 +
| | 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) <br>
 +
|-
 +
| | DOWNARROW
 +
| | Down Arrow (Not Keypad) <br>
 +
|-
 +
| | RIGHTARROW
 +
| | Right Arrow (Not Keypad) <br>
 +
|-
 +
| | LEFTARROW
 +
| | Left Arrow (Not Keypad) <br>
 +
|-
 +
| | INS
 +
| | Insert (Not Keypad) <br>
 +
|-
 +
| | HOME
 +
| | Home (Not Keypad) <br>
 +
|-
 +
| | PGUP
 +
| | Page Up (Not Keypad) <br>
 +
|-
 +
| | PGDN
 +
| | Page Down (Not Keypad) <br>
 +
|-
 +
| | DEL
 +
| | Delete (Not Keypad) <br>
 +
|-
 +
| | END
 +
| | End (Not Keypad) <br>
 +
|-
 +
| | KP_HOME
 +
| | Keypad Home, 7 Keypad <br>
 +
|-
 +
| | KP_UPARROW
 +
| | Keypad Up Arrow, 8 Keypad <br>
 +
|-
 +
| | KP_PGUP
 +
| | Keypad Page Up, 9 Keypad <br>
 +
|-
 +
| | KP_LEFTARROW
 +
| | Keypad Left Arrow, 4 Keypad <br>
 +
|-
 +
| | KP_5
 +
| | Keypad 5 Keypad <br>
 +
|-
 +
| | KP_RIGHTARROW
 +
| | Keypad Right Arrow, 6 Keypad <br>
 +
|-
 +
| | KP_END
 +
| | Keypad End, 1 Keypad <br>
 +
|-
 +
| | KP_DOWNARROW
 +
| | Keypad Down Arrow, 2 Keypad <br>
 +
|-
 +
| | KP_PGDN
 +
| | Keypad Page Down, 3 Keypad <br>
 +
|-
 +
| | KP_ENTER
 +
| | Keypad Enter Keypad <br>
 +
|-
 +
| | KP_INS
 +
| | Keypad Insert, 0 Keypad <br>
 +
|-
 +
| | KP_DEL
 +
| | Keypad Del, '.' Keypad <br>
 +
|-
 +
| | KP_SLASH
 +
| | Keypad Back Keypad <br>
 +
|-
 +
| | KP_MINUS
 +
| | Keypad Hyphen, - Keypad <br>
 +
|-
 +
| | KP_PLUS
 +
| | Keypad Plus, + Keypad <br>
 +
|-
 +
| | '''<nowiki>*</nowiki>'''
 +
| | Keypad Star, '''*''' Keypad <br>
 +
|-
 +
| | MOUSE1
 +
| | Mouse Button 1  <br>
 +
|-
 +
| | MOUSE2
 +
| | Mouse Button 2  <br>
 +
|-
 +
| | 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'). <br>
 +
|-
 +
| | MOUSE4
 +
| | Mouse Button 4 (You may need to either install or uninstall mouse drivers for this button to work). <br>
 +
|-
 +
| | MOUSE5
 +
| | Mouse Button 5 (You may need to either install or uninstall mouse drivers for this button to work). <br>
 +
|-
 +
| | MWHEELUP
 +
| | Mouse Wheel Up  <br>
 +
|-
 +
| | MWHEELDOWN
 +
| | Mouse Wheel Down<br>
 +
|-
 +
|}
  
 
[[Category:Scripts]]
 
[[Category:Scripts]]

Revision as of 20:07, 13 January 2008

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 (Function 1)
F2 F2 (Function 2)
F3 F3 (Function 3)
F4 F4 (Function 4)
F5 F5 (Function 5)
F6 F6 (Function 6)
F7 F7 (Function 7)
F8 F8 (Function 8)
F9 F9 (Function 9)
F10 F10 (Function 10)
F11 F11 (Function 11)
F12 F12 (Function 12)
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