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 -...) |
|||
| (10 intermediate revisions by 7 users not shown) | |||
| Line 30: | Line 30: | ||
team X - Change team : Takes effect upon next death<br> | team X - Change team : Takes effect upon next death<br> | ||
| − | + | invprev - Selects previous weapon slot<br> | |
| − | + | invnext - Selects next weapon slot<br> | |
| − | + | lastinv - Selects previously selected weapon slot<br> | |
| − | |||
| − | |||
| − | |||
hud_centerid 0 or 1 - Sets player info in centre of screen<br> | hud_centerid 0 or 1 - Sets player info in centre of screen<br> | ||
| Line 45: | Line 42: | ||
===Scout=== | ===Scout=== | ||
| − | " | + | "jumppad" or "+attack2" - Builds a jumppad.<br> |
===Sniper=== | ===Sniper=== | ||
| Line 85: | Line 82: | ||
=Available Binds= | =Available Binds= | ||
| − | Ingame Key Name (Binding) | + | {| width="100%" style="background:#f5faff; border:1px solid #dce7ed" |
| + | | | ||
| + | {| border="0" style="background:#ffffff; style="text-align:center;" width="100%" align="center" cellpadding="3" cellspacing="3" | ||
| + | |- style="background:#dce7ed; color:#000000" | | ||
| + | | colspan="1" |'''Ingame Key Name (Binding)''' | ||
| + | | colspan="1" |'''Out of Game Key Name Notes''' | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | SPACE | ||
| + | | | Space Bar | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | CAPSLOCK | ||
| + | | | Caps Lock | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | ESCAPE | ||
| + | | | Escape | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F1 | ||
| + | | | F1 (Function 1) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F2 | ||
| + | | | F2 (Function 2) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F3 | ||
| + | | | F3 (Function 3) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F4 | ||
| + | | | F4 (Function 4) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F5 | ||
| + | | | F5 (Function 5) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F6 | ||
| + | | | F6 (Function 6) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F7 | ||
| + | | | F7 (Function 7) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F8 | ||
| + | | | F8 (Function 8) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F9 | ||
| + | | | F9 (Function 9) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F10 | ||
| + | | | F10 (Function 10) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F11 | ||
| + | | | F11 (Function 11) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F12 | ||
| + | | | F12 (Function 12) | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | PAUSE | ||
| + | | | Pause / System Break Key | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | '''`''' | ||
| + | | | Left Quote Also known as tilde ('''~''') | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | '''-''' | ||
| + | | | Hyphen ('''-''') | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | '''=''' | ||
| + | | | Equals Sign | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | BACKSPACE | ||
| + | | | Backspace | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | TAB | ||
| + | | | Tab Key | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | ''']''' | ||
| + | | | Right Bracket | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | '''\''' | ||
| + | | | Forward Slash | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | SEMICOLON | ||
| + | | | Semicolon (''';''') | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | ''''''' | ||
| + | | | Right Quote | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | '''/''' | ||
| + | | | Back Slash | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | SHIFT | ||
| + | | | Shift Key | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | ENTER | ||
| + | | | Enter or Carriage Return Not Keypad | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | ''',''' | ||
| + | | | Comma (''',''') | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | CTRL | ||
| + | | | Control Left and Right Control are considered the same keys ingame. | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | ALT | ||
| + | | | Alt Left and Right ALT are considered the same keys ingame. | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | 1 | ||
| + | | | One | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | 2 | ||
| + | | | Two | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | 3 | ||
| + | | | Three | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | 4 | ||
| + | | | Four | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | 5 | ||
| + | | | Five | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | 6 | ||
| + | | | Six | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | 7 | ||
| + | | | Seven | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | 8 | ||
| + | | | Eight | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | 9 | ||
| + | | | Nine | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | 0 | ||
| + | | | Zero | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | A | ||
| + | | | A | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | B | ||
| + | | | B | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | C | ||
| + | | | C | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | D | ||
| + | | | D | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | E | ||
| + | | | E | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | F | ||
| + | | | F | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | G | ||
| + | | | G | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | H | ||
| + | | | H | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | I | ||
| + | | | I | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | J | ||
| + | | | J | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | K | ||
| + | | | K | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | L | ||
| + | | | L | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | M | ||
| + | | | M | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | N | ||
| + | | | N | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | O | ||
| + | | | O | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | P | ||
| + | | | P | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | Q | ||
| + | | | Q | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | R | ||
| + | | | R | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | S | ||
| + | | | S | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | T | ||
| + | | | T | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | U | ||
| + | | | U | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | V | ||
| + | | | V | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | W | ||
| + | | | W | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | X | ||
| + | | | X | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | Y | ||
| + | | | Y | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | Z | ||
| + | | | Z | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | UPARROW | ||
| + | | | Up Arrow (Not Keypad) <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | DOWNARROW | ||
| + | | | Down Arrow (Not Keypad) <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | RIGHTARROW | ||
| + | | | Right Arrow (Not Keypad) <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | LEFTARROW | ||
| + | | | Left Arrow (Not Keypad) <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | INS | ||
| + | | | Insert (Not Keypad) <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | HOME | ||
| + | | | Home (Not Keypad) <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | PGUP | ||
| + | | | Page Up (Not Keypad) <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | PGDN | ||
| + | | | Page Down (Not Keypad) <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | DEL | ||
| + | | | Delete (Not Keypad) <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | END | ||
| + | | | End (Not Keypad) <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_HOME | ||
| + | | | Keypad Home, 7 Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_UPARROW | ||
| + | | | Keypad Up Arrow, 8 Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_PGUP | ||
| + | | | Keypad Page Up, 9 Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_LEFTARROW | ||
| + | | | Keypad Left Arrow, 4 Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_5 | ||
| + | | | Keypad 5 Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_RIGHTARROW | ||
| + | | | Keypad Right Arrow, 6 Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_END | ||
| + | | | Keypad End, 1 Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_DOWNARROW | ||
| + | | | Keypad Down Arrow, 2 Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_PGDN | ||
| + | | | Keypad Page Down, 3 Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_ENTER | ||
| + | | | Keypad Enter Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_INS | ||
| + | | | Keypad Insert, 0 Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_DEL | ||
| + | | | Keypad Del, '.' Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_SLASH | ||
| + | | | Keypad Back Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_MINUS | ||
| + | | | Keypad Hyphen, - Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | KP_PLUS | ||
| + | | | Keypad Plus, + Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | '''<nowiki>*</nowiki>''' | ||
| + | | | Keypad Star, '''*''' Keypad <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | MOUSE1 | ||
| + | | | Mouse Button 1 <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | MOUSE2 | ||
| + | | | Mouse Button 2 <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | 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> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | MOUSE4 | ||
| + | | | Mouse Button 4 (You may need to either install or uninstall mouse drivers for this button to work). <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | MOUSE5 | ||
| + | | | Mouse Button 5 (You may need to either install or uninstall mouse drivers for this button to work). <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | MWHEELUP | ||
| + | | | Mouse Wheel Up <br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | | | MWHEELDOWN | ||
| + | | | Mouse Wheel Down<br> | ||
| + | |- style="background-color: #f3f3f3;" | | ||
| + | |} | ||
| + | |} | ||
| + | |||
| + | =Chat Macros= | ||
| + | |||
| + | These are items that can be placed into chat to print the specified information. | ||
| + | |||
| + | For example, typing "[%h:%a]" into chat will show your health and your armor separated with a colon. | ||
| + | |||
| + | *%h - Your current health. | ||
| + | *%a - Your current armor. | ||
| + | *%c - Your current class. | ||
| + | |||
| + | *%d - Your team and class. If you are a disguised spy, this will show what you are disguised as instead. | ||
| + | *%i - The last person you saw in your crosshairs. | ||
| + | *%l - Your current position on the map ( if the map contains locations ). | ||
| + | |||
| + | *%sh - Your sentry gun's current health percentage. | ||
| + | *%sa - Your sentry gun's current ammo percentage. | ||
| + | *%sv - Your sentry gun's current level. | ||
| + | *%sl - The location you were in when you built the sentry ( 9 times out of 10, this is where the sentry is too ). | ||
| + | |||
| + | *%dh - Your dispenser's current health percentage. | ||
| + | *%da - Your dispenser's current ammo percentage. | ||
| + | *%dl - The location you were in when you built the dispenser ( 9 times out of 10, this is where the dispenser is too ). | ||
| − | + | *%pf - The time left till your detpack explodes. | |
| − | + | *%ps - The time you set your detpack to - not what's left on the timer . | |
| − | + | *%pl - The location you were in when you placed the detpack ( 9 times out of 10, this is where the detpack is too ). | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | ' | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
[[Category:Scripts]] | [[Category:Scripts]] | ||
| + | {{Rating|4}} | ||
Latest revision as of 10:07, 1 May 2015
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
invprev - Selects previous weapon slot
invnext - Selects next weapon slot
lastinv - Selects previously selected weapon slot
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
"jumppad" or "+attack2" - Builds a jumppad.
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
|
Chat Macros
These are items that can be placed into chat to print the specified information.
For example, typing "[%h:%a]" into chat will show your health and your armor separated with a colon.
- %h - Your current health.
- %a - Your current armor.
- %c - Your current class.
- %d - Your team and class. If you are a disguised spy, this will show what you are disguised as instead.
- %i - The last person you saw in your crosshairs.
- %l - Your current position on the map ( if the map contains locations ).
- %sh - Your sentry gun's current health percentage.
- %sa - Your sentry gun's current ammo percentage.
- %sv - Your sentry gun's current level.
- %sl - The location you were in when you built the sentry ( 9 times out of 10, this is where the sentry is too ).
- %dh - Your dispenser's current health percentage.
- %da - Your dispenser's current ammo percentage.
- %dl - The location you were in when you built the dispenser ( 9 times out of 10, this is where the dispenser is too ).
- %pf - The time left till your detpack explodes.
- %ps - The time you set your detpack to - not what's left on the timer .
- %pl - The location you were in when you placed the detpack ( 9 times out of 10, this is where the detpack is too ).