Difference between revisions of "Script Reference"
(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) | + | {| border="1" cellspacing="0" align="center" |
| − | + | |+ | |
| − | SPACE | + | |- |
| − | CAPSLOCK | + | ! | Ingame Key Name (Binding) |
| − | ESCAPE - | + | ! | Out of Game Key Name Notes |
| − | F1 - | + | |- |
| − | F2 - | + | | | SPACE |
| − | F3 - | + | | | Space Bar |
| − | F4 - | + | |- |
| − | F5 - | + | | | CAPSLOCK |
| − | F6 - | + | | | Caps Lock |
| − | F7 - | + | |- |
| − | F8 - | + | | | ESCAPE |
| − | F9 - | + | | | Escape |
| − | F10 - | + | |- |
| − | F11 - | + | | | F1 |
| − | F12 - | + | | | F1 (Function 1) |
| − | PAUSE | + | |- |
| − | ` | + | | | F2 |
| − | - - | + | | | F2 (Function 2) |
| − | = | + | |- |
| − | BACKSPACE - | + | | | F3 |
| − | TAB | + | | | F3 (Function 3) |
| − | ] | + | |- |
| − | \ | + | | | F4 |
| − | SEMICOLON | + | | | F4 (Function 4) |
| − | ' | + | |- |
| − | / | + | | | F5 |
| − | SHIFT | + | | | F5 (Function 5) |
| − | ENTER | + | |- |
| − | , Comma (,) | + | | | F6 |
| − | CTRL | + | | | F6 (Function 6) |
| − | ALT | + | |- |
| − | 1 - | + | | | F7 |
| − | 2 - | + | | | F7 (Function 7) |
| − | 3 - | + | |- |
| − | 4 - | + | | | F8 |
| − | 5 - | + | | | F8 (Function 8) |
| − | 6 - | + | |- |
| − | 7 - | + | | | F9 |
| − | 8 - | + | | | F9 (Function 9) |
| − | 9 - | + | |- |
| − | 0 - | + | | | F10 |
| − | A - | + | | | F10 (Function 10) |
| − | B - | + | |- |
| − | C - | + | | | F11 |
| − | D - | + | | | F11 (Function 11) |
| − | E - | + | |- |
| − | F - | + | | | F12 |
| − | G - | + | | | F12 (Function 12) |
| − | H - | + | |- |
| − | I - | + | | | PAUSE |
| − | J - | + | | | Pause / System Break Key |
| − | K - | + | |- |
| − | L - | + | | | '''`''' |
| − | M - | + | | | Left Quote Also known as tilde ('''~''') |
| − | N - | + | |- |
| − | O - | + | | | '''-''' |
| − | P - | + | | | Hyphen ('''-''') |
| − | Q - | + | |- |
| − | R - | + | | | '''=''' |
| − | S - | + | | | Equals Sign |
| − | T - | + | |- |
| − | U - | + | | | BACKSPACE |
| − | V - | + | | | Backspace |
| − | W - | + | |- |
| − | X - | + | | | TAB |
| − | Y - | + | | | Tab Key |
| − | Z - | + | |- |
| − | UPARROW | + | | | ''']''' |
| − | DOWNARROW | + | | | Right Bracket |
| − | RIGHTARROW | + | |- |
| − | LEFTARROW | + | | | '''\''' |
| − | INS | + | | | Forward Slash |
| − | HOME | + | |- |
| − | PGUP | + | | | SEMICOLON |
| − | PGDN | + | | | Semicolon (''';''') |
| − | DEL | + | |- |
| − | END | + | | | ''''''' |
| − | KP_HOME | + | | | Right Quote |
| − | KP_UPARROW | + | |- |
| − | KP_PGUP | + | | | '''/''' |
| − | KP_LEFTARROW | + | | | Back Slash |
| − | KP_5 | + | |- |
| − | KP_RIGHTARROW | + | | | SHIFT |
| − | KP_END | + | | | Shift Key |
| − | KP_DOWNARROW | + | |- |
| − | KP_PGDN | + | | | ENTER |
| − | KP_ENTER | + | | | Enter or Carriage Return Not Keypad |
| − | KP_INS | + | |- |
| − | KP_DEL | + | | | ''',''' |
| − | KP_SLASH | + | | | Comma (''',''') |
| − | KP_MINUS | + | |- |
| − | KP_PLUS | + | | | CTRL |
| − | <nowiki>*</nowiki> | + | | | Control Left and Right Control are considered the same keys ingame. |
| − | MOUSE1 | + | |- |
| − | MOUSE2 | + | | | ALT |
| − | MOUSE3 | + | | | Alt Left and Right ALT are considered the same keys ingame. |
| − | MOUSE4 | + | |- |
| − | MOUSE5 | + | | | 1 |
| − | MWHEELUP | + | | | One |
| − | MWHEELDOWN | + | |- |
| + | | | 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 |