Advertisement
Guest User

TF2 scripting guidelines and templates V2

a guest
Jan 1st, 2014
29,037
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. List of script templates for tf2
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3.  
  4. ~~~~For a list of some commands that you can use visit:
  5. ~~(basic commands you will use the most) http://wiki.teamfortress.com/wiki/List_of_useful_console_commands
  6. ~~(cheat commands) http://wiki.teamfortress.com/wiki/Cheats
  7. ~~(spawning and minipulating bots) http://wiki.teamfortress.com/wiki/Bots#AI_bot_commands
  8. ~~(all commands, indepth/advanced) https://developer.valvesoftware.com/wiki/List_of_TF2_console_commands_and_variables
  9.  
  10. ________]
  11. Legend:
  12. <_____> = explains what you should put there
  13. ** = REQUIRES wait command
  14. // = not code
  15. ________]
  16.  
  17. -Simple binds:
  18.  
  19. bind <key> "<command>"
  20.  
  21. -Aliasing (binding a list of commands to 1 command. All <command>s can be replaced with these):
  22.  
  23. alias <Name of alias> "<commands>"
  24.  
  25. -multiple commands at once
  26.  
  27. "<command1>; <command2>; <command3>"
  28.  
  29. -toggle for any kind of command
  30.  
  31. alias <alias for on> "<command>; bind <key> <alias for off>"
  32. alias <alias for off> "<command>; bind <key> <alias for on>"
  33. bind <key> <alias for on>
  34.  
  35. -toggle for commands with numbers at the end, you cannot make aliases for these kinds of commands iirc
  36.  
  37. bindtoggle <command> <first number> <second number>
  38.  
  39. -aliases only while a button is held
  40.  
  41. alias +<name of alias> "<command>"
  42. alias -<name of alias> "<command>"
  43. bind <key> +<name of alias>
  44.  
  45. -multiple keys to be pressed at the same time for 1 a command, can be expanded for 3+ keys
  46.  
  47. alias <command alias> "<command>"
  48. alias +<alias for key 1 pressed> "bind <key 2> <command alias>"
  49. alias -<alias for key 1 pressed> "unbind <key 2>"
  50. bind <key 1> +<alias for key 1 pressed>
  51.  
  52. -different command every time you press the key loop, can be expanded infinitely
  53.  
  54. alias <alias1> "<command1>; bind <key> <alias 2>"
  55. alias <alias2> "<command2>; bind <key> <alias 3>"
  56. alias <alias3> "<command3>; bind <key> <alias 4>"
  57. alias <alias4> "<command4>; bind <key> <alias 5>"
  58. alias <alias5> "<command5>; bind <key> <alias 1>" //this line loops back to command 1
  59.  
  60. -**Pseudo-random command when key pressed, can be expanded infinitely
  61.  
  62. //the number after wait can be replaced with any number you choose,
  63. //the smaller the number the more variation but higher chance of crashing the game if you go to low
  64. alias <alias1> "bind <key> <command1>; wait 10; <alias 2>"
  65. alias <alias2> "bind <key> <command2>; wait 10; <alias 3>"
  66. alias <alias3> "bind <key> <command3>; wait 10; <alias 4>"
  67. alias <alias4> "bind <key> <command4>; wait 10; <alias 5>"
  68. alias <alias5> "bind <key> <command5>; wait 10; <alias 1>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement