Advertisement
Guest User

SuperScript V0.1

a guest
Sep 5th, 2013
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.11 KB | None | 0 0
  1. //*Super Script V0.01 by LegendaryB3ast*//
  2.  
  3. //To load the script in game, open up console with ` and type "exec superscript" in the console entry.
  4.  
  5. //*Note: To use keycodes (in parentheses), simply press Ctrl + F and enter the keyword. Press 'Find Next' until you find the area.*
  6. //[Table of Contents: ]
  7. //I. Key Binding (Keyword: KEYBIND)
  8. //I-1. Standard Keys
  9. //I-2. Shift Keys
  10. //I-3. Alt Keys
  11. //I-4. Special Binds
  12. //II. Auto-Tasking (Keyword: DOTASK)
  13. //II-1. Loops
  14. //II-2. Automatic Loops for Idling
  15. //III. Functions (Keyword: COOLSTUFF)
  16.  
  17.  
  18.  
  19.  
  20. //*NOTE: TO SKIP TO THE CODING, PRESS CTRL + F and type START and press ENTER*
  21.  
  22. echo "*Super Script successfully installed!*"
  23. echo "===================================="
  24. echo "Main Interface: "
  25. echo "-These commands are typed in the console bar right below you."
  26. echo "1. 'Standard' - How to use the regular binds."
  27. echo "2. 'Shift' - How to use the Shift + Key binds."
  28. echo "3. 'Alt' - Lets you check your Alt + Key binds."
  29. echo "4. 'Tutorial' - In-game tutorial via the console."
  30.  
  31. alias Tutorial "echo *Welcome to the In-game tutorial! Page 1*; wait 500; tut12"
  32. alias tut12 "echo -To use this script, it is broken down into 3 parts. The first part is the binds, which allow you to do tasks with the press of a button.; wait 1000; tut13"
  33. alias tut13 "echo -The next part is tasks, which allow commands or actions to be repeated over and over again.; wait 1000; tut14"
  34. alias tut14 "echo -The third and final part is the functions, which is the core of the script. Every function can be bound to a key or keys, and performs something interesting (usually) when activated.; wait 1000; tut15"
  35. alias tut15 "echo -Funtions and tasks do not activate once the script is executed using 'exec superscript' or pressing F1 after it has opened, but binds do.; wait 1000; tut16"
  36. alias tut16 "echo -For more information about this script, please review the config file. It includes more detail about each funtion and task, and more detailed tutorials.; wait 1000; tut00"
  37. alias tut00 "echo Thank you for downloading SuperScript: by LegendaryB3ast.; wait 1000; clear; wait 500; info"
  38.  
  39. alias info "echo You can start using this script whenever you are ready. If you made it this far, all of your binds are preloaded, which means if you wanted to start something like the disco/rainbow script, feel free to press your bind now.; info2"
  40. alias info "I hope you really enjoy this script, took me a long time to make it. Feel free to leave suggestions @LegendaryB3ast on Steam. Thanks again!
  41.  
  42.  
  43. //Feel free to send suggestions to LegendaryB3ast on Steam.
  44.  
  45. //To use this script, in front of each bind there is two forward slahses (//) and a letter/number.
  46. //To activate a modified bind, remove the slashes and the letter, and add a command to the bind.
  47. //For example, lets say we wanted to bind the 'K' key to kill yourself.
  48. //First, remove the slashes and the K. Next, where there are 2 quotation marks (""),
  49. //in the space between you would put your desired command.
  50. //So, in the end your line should look like this:
  51. //alias standard "kill"
  52. //And that is how you use this script! Use these links for helpful tutorials and commands:
  53.  
  54. //http://wiki.teamfortress.com/wiki/Scripting
  55. //http://forums.steampowered.com/forums/showthread.php?t=709568
  56.  
  57. //Developer Notes: I only included letters and numbers for the sake
  58. //of retaining the binds to attack and jump and such. There is much
  59. //potential for this huge script, thanks for installing!
  60.  
  61.  
  62.  
  63. //START-KEYBIND
  64.  
  65. //Standard binds start here. After the quotations shows the default key action, if you are changing the key remove that as well as the slashes and letter/number.
  66.  
  67. bind a "+moveleft" //Walk Left
  68. bind b "lastdisguise" //Spy: Last Diguise
  69. bind c "voicemenu 3" //Voice Menu 3
  70. bind d "+moveright" //Walk Right
  71. bind e "voicemenu 0 0" //Call for Medic
  72. bind f "say /t" //Inspect Target
  73. bind g "say /regen on; say /superman" //Taunt
  74. bind h "+use_action_slot_item" //Action Slot Item
  75. bind i "showmapinfo" //Map Info
  76. bind j "cl_trigger_first_notification" //Accept Top Alert
  77. bind k "cl_decline_first_notification" //Decline or Close Top Alert
  78. bind l "dropitem" //Drop Intelligence
  79. bind m "open_charinfo_direct" //Character Loadout
  80. bind n "open_charinfo_backpack" //Backpack
  81. //Obind o ""
  82. //Pbind p ""
  83. bind q "+taunt" //Previous Weapon
  84. bind r "+reload" //Reload
  85. bind s "+back" //Walk Backward
  86. bind t "say" //Spray Logo
  87. bind u "say_team" //Team Chat
  88. bind v "inspect" //Voice Chat
  89. bind w "+forward" //Walk Forward
  90. bind x "voicemenu 2" //Voice Menu 2
  91. bind y "impulse 201" //Public Chat
  92. bind z "voicemenu 1" //Voice Menu 1
  93. bind 0 "disco" //Weapon 0
  94. bind 1 "slot1" //Weapon 1
  95. bind 2 "slot2" //Weapon 2
  96. bind 3 "slot3" //Weapon 3
  97. bind 4 "slot4" //Weapon 4
  98. bind 5 "slot5" //Weapon 5
  99. bind 6 "slot6" //Weapon 6
  100. bind 7 "slot7" //Weapon 7
  101. bind 8 "slot8" //Weapon 8
  102. bind 9 "stoptheparty" //Weapon 9
  103. bind mouse1 "+attack"
  104. bind mouse2 "+attack2"
  105. bind mouse3 "+attack3"
  106. bind mwheelup "invprev"
  107. bind mwheeldown "invnext"
  108. bind tab "+showscores"
  109. bind F3 "askconnect_accept"
  110. bind F5 "screenshot"
  111. bind F6 "save_replay"
  112. bind F12 "replay_togglereplaytips"
  113. bind ` "toggleconsole"
  114. bind , "spec"
  115. bind . "red"
  116. bind / "blue"
  117. bind F1 "exec superscript.cfg"
  118.  
  119. alias Standard "echo *Press your key that has a bind to use it.*"
  120.  
  121.  
  122. //Shift + Key binds start here. Pressing Shift and a designated key will activate the bind.
  123.  
  124. alias shift1 "shiftkeys; wait 200; exec superscript.cfg"
  125.  
  126. alias sa "b1"
  127. //Balias sb ""
  128. alias sc "d3"
  129. alias sd "b3"
  130. //Ealias se ""
  131. alias sf "b4"
  132. //Galias sg ""
  133. //Halias sh ""
  134. //Ialias si ""
  135. //Jalias sj ""
  136. //Kalias sk ""
  137. //Lalias sl ""
  138. //Malias sm ""
  139. //Nalias sn ""
  140. //Oalias so ""
  141. //Palias sp ""
  142. //Qalias sq ""
  143. //Ralias sr ""
  144. alias ss "b2"
  145. //Talias st ""
  146. //Ualias su ""
  147. alias sv "d4"
  148. //Walias sw ""
  149. alias sx "d2"
  150. //Yalias sy ""
  151. alias sz "d1"
  152. //0alias s0 ""
  153. //1alias s1 ""
  154. //2alias s2 ""
  155. //3alias s3 ""
  156. //4alias s4 ""
  157. //5alias s5 ""
  158. //6alias s6 ""
  159. //7alias s7 ""
  160. //8alias s8 ""
  161. //9alias s9 ""
  162.  
  163. alias shiftkeys "bind mwheelup smw1; bind mwheeldown smw2; bind mouse1 sm1; bind mouse2 sm2; bind mouse3 sm3; bind mouse4 sm4; bind mouse5 sm5; bind a sa;bind b sb; bind c sc; bind d sd; bind e se; bind f sf; bind g sg; bind h sh; bind i si; bind j sj; shiftkeys2"
  164. alias shiftkeys2 "bind k sk; bind l sl; bind m sm; bind n sn; bind o so; bind p sp; bind q sq; bind r sr; bind s ss; bind t st; bind u su; bind v sv; bind w sw; bind x sx; bind y sy; bind z sz; bind 0 s0; bind 1 s1; bind 2 s2; bind 3 s3; bind 4 s4; bind 5 s5; bind 6 s6; bind 7 s7; bind 8 s8; bind 9 s9"
  165.  
  166. alias Shift "echo *To use Shift + Key binds, press and hold Shift and press your secondary key within 2 seconds.*"
  167.  
  168. //Alt + Key binds start here. Pressing Shift and a designated key will activate the bind.
  169.  
  170. alias alt1 "altkeys; wait 200; exec superscript.cfg"
  171.  
  172. //Aalias aa ""
  173. //Balias ab ""
  174. //Calias ac ""
  175. //Dalias ad ""
  176. //Ealias ae ""
  177. alias af "say /reset"
  178. //Galias ag ""
  179. //Halias ah ""
  180. //Ialias ai ""
  181. //Jalias aj ""
  182. //Kalias ak ""
  183. //Lalias al ""
  184. //Malias am ""
  185. //Nalias an ""
  186. //Oalias ao ""
  187. //Palias ap ""
  188. //Qalias aq ""
  189. //Ralias ar ""
  190. //Salias as ""
  191. //Talias at ""
  192. //Ualias au ""
  193. //Valias av ""
  194. //Walias aw ""
  195. //Xalias ax ""
  196. //Yalias ay ""
  197. //Zalias az ""
  198. //0alias a0 ""
  199. alias a1 "scoutjump"
  200. alias a2 "spyjump"
  201. alias a3 "nojump"
  202. //4alias a4 ""
  203. //5alias a5 ""
  204. //6alias a6 ""
  205. //7alias a7 ""
  206. //8alias a8 ""
  207. //9alias a9 ""
  208.  
  209. alias altkeys "bind mwheelup amw1; bind mwheeldown amw2; bind mouse1 am1; bind mouse2 am2; bind mouse3 am3; bind mouse4 am4; bind mouse5 am5; bind a aa;bind b ab; bind c ac; bind d ad; bind e ae; bind f af; bind g ag; bind h ah; bind i ai; bind j aj; altkeys2"
  210. alias altkeys2 "bind k ak; bind l al; bind m am; bind n an; bind o ao; bind p ap; bind q aq; bind r ar; bind s as; bind t at; bind u au; bind v av; bind w aw; bind x ax; bind y ay; bind z az; bind 0 a0; bind 1 a1; bind 2 a2; bind 3 a3; bind 4 a4; bind 5 a5; bind 6 a6; bind 7 a7; bind 8 a8; bind 9 a9"
  211.  
  212. alias Alt "echo *To use Alt + Key binds, press and hold Alt and press your secondary key within 2 seconds*."
  213.  
  214. //Special Binds: Involving using the 5 mouse buttons, Shift, and Alt.
  215.  
  216. //SM stands for Shift + Mouse (Number), and AM stands for Alt + Mouse (Number). Regular M4 & M5 are standard.
  217.  
  218. //SM1alias sm1 ""
  219. //SM2alias sm2 ""
  220. //SM3alias sm3 ""
  221. alias sm4 "server1"
  222. alias sm5 "server2"
  223.  
  224. //AM1alias am1 ""
  225. //AM2alias am2 ""
  226. //AM3alias am3 ""
  227. //AM4alias am4 ""
  228. //AM5alias am5 ""
  229.  
  230. //bind mouse4 ""
  231. //bind mouse5 ""
  232.  
  233.  
  234.  
  235.  
  236. //End of Bindings
  237. //Start of Tasks
  238.  
  239. //DOTASK
  240.  
  241.  
  242. //The 'Tasks' section of this script is devoted to things that are designed to loop, run at set intervals, or use when not actually playing.
  243. //Consider these tasks as "Labors made Simple."
  244. //To program these tasks, you will see places where there are empty brackets > [].
  245. //In these brackets, you will put the intervals for what is stated. Once again, in the quotes (""), you put the desired task.
  246. //To bind keys to these tasks, you will need to review the statement in front of the command. You should also bind a key to stop the loop.
  247. //So you want to bind a key to loop(number) to start the loop, and also a key to bloop(number) to stop the loop.
  248. //While breaking a loop, remember that if you are using the loop for something other than chat messages, in front of the loop(number) in quotes, put the default action.
  249. //For example, you are using a gun-changing loop. If you do not set a default to go to while breaking the loop, it will keep your current gun equipped.
  250. //This is the text that follows the two-slashes, lets show an example.
  251. //I want to say in chat that I am selling weapons for 1 scrap each every 2 minutes. Note that 100 "frames" is equivalent to 1 second real time.
  252. //The line at first will look like this:
  253.  
  254. //loop1 alias loop1 "___; wait []; rloop1"
  255. //rloop1 alias rloop1 "loop1"
  256.  
  257. //First, we erase "//loop1 and //rloop1. Next, in the '____' space, we put a command. For this example, I am using say Selling weapons for 1 scrap each!
  258. //Next, we want to fill in the interval. 100 frames to a second, that means 6000 frames per minute, which means I am putting in the brackets 12000.
  259. //Your final line, which will loop the message every 2 minutes, will look like this:
  260. //loop1 alias loop1 "say Selling weapons for 1 scrap each!; wait 12000; rloop1"
  261.  
  262. //You may also want to have a single loop perform multiple tasks.
  263. //Lets say we want to also say trade me, 1 second after the first message. All you need to do is add an additional 'wait' command and semicolons.
  264. //Your line should look like this:
  265. //loop1 alias loop1 "say Selling weapons for 1 scrap each!; wait 100; say Trade me!; wait 12000; rloop1"
  266. //What that does: Starts the loop when you press your bound key (see 5th/6th lines in Tasks), and says the first part, waits 1 second, says the second part,
  267. //then waits 2 minutes and goes to a second alias. The second alias (or abbreviation, shortcut, etc.) redirects you back to the first loop, therefore continuing the loop.
  268. //End of tutorial, loop tasks start now:
  269.  
  270. //loop1 alias loop1 "_; wait []; rloop1"
  271. //rloop1 alias rloop1 "loop1"
  272. //bloop1 alias bloop1 "alias rloop1 break; alias rloop1 loop1"
  273.  
  274. //loop2 alias loop2 "_; wait []; rloop2"
  275. //rloop2 alias rloop2 "loop2"
  276. //bloop2 alias bloop2 "alias rloop2 break; alias rloop2 loop2"
  277.  
  278. //loop3 alias loop3 "_; wait []; rloop3"
  279. //rloop3 alias rloop3 "loop3"
  280. //bloop3 alias bloop3 "alias rloop3 break; alias rloop3 loop3"
  281.  
  282. //loop4 alias loop4 "_; wait []; rloop4"
  283. //rloop4 alias rloop4 "loop4"
  284. //bloop4 alias bloop4 "alias rloop4 break; alias rloop4 loop4"
  285.  
  286. //loop5 alias loop5 "_; wait []; rloop5"
  287. //rloop5 alias rloop5 "loop5"
  288. //bloop5 alias bloop5 "alias rloop5 break; alias rloop5 loop5"
  289.  
  290. //loop6 alias loop6 "_; wait []; rloop6"
  291. //rloop6 alias rloop6 "loop6"
  292. //bloop6 alias bloop6 "alias rloop6 break; alias rloop6 loop6"
  293.  
  294. //Simple auto-attacking/walking scripts.
  295. //Bind keys to autowalk, autofire, or autowalkfire. To stop doing the action, make sure you have a key bound to autostop.
  296.  
  297. alias autowalk "+forward"
  298. alias autofire "+attack"
  299. alias autowalkfire "+forward; +attack"
  300. alias autostop "-forward; -attack"
  301.  
  302. //End of Tasks
  303. //Start of Functions
  304.  
  305.  
  306. //COOLSTUFF
  307.  
  308. //In this section, 'Functions', I will collaborate a bunch of cool things that change the way gameplay works and sometimes looks.
  309. //I will constantly be adding to this, so keep up with the updates as I release them.
  310.  
  311. //Set a bind for "net_graph 1" to view your FPS.
  312.  
  313. //To start us off, my very own, rainbow/disco script!
  314. //This script features a loop between 18 different colors every .05 seconds. This makes you look like a rainbow, and a lot of people will ask how you did it.
  315. //Please note that this only works on servers that allow the sm_colorme plugin to be used by you.
  316.  
  317. //Rainbow or Disco Mode Script (Original concept by: moonbears, I revised the script and added 12 more colors.)
  318. //Set a bind to "disco" (I use '0')
  319.  
  320. alias disco "sm_colorme red; wait 5; colors2"
  321. alias colors2 "sm_colorme orange; wait 5; colors3"
  322. alias colors3 "sm_colorme yellow; wait 5; colors4"
  323. alias colors4 "sm_colorme lime; wait 5; colors5"
  324. alias colors5 "sm_colorme green; wait 5; colors6"
  325. alias colors6 "sm_colorme blue; wait 5; colors7"
  326. alias colors7 "sm_colorme cyan; wait 5; colors8"
  327. alias colors8 "sm_colorme lightblue; wait 5; colors9"
  328. alias colors9 "sm_colorme violet; wait 5; colors10"
  329. alias colors10 "sm_colorme purple; wait 5; colors11"
  330. alias colors11 "sm_colorme silver; wait 5; colors12"
  331. alias colors12 "sm_colorme chocolate; wait 5; colors13"
  332. alias colors13 "sm_colorme saddlebrown; wait 5; colors14"
  333. alias colors14 "sm_colorme tan; wait 5; colors15"
  334. alias colors15 "sm_colorme olive; wait 5; colors16"
  335. alias colors16 "sm_colorme ghostwhite; wait 5; colors17"
  336. alias colors17 "sm_colorme pink; wait 5; colors18"
  337. alias colors18 "sm_colorme tomato; wait 5; redirect"
  338. alias redirect disco
  339.  
  340. //Loop-Break
  341. //Set a bind to "stoptheparty" (I use '9')
  342. alias stoptheparty "alias redirect break"
  343. alias break "sm_colorme normal; alias redirect disco"
  344.  
  345.  
  346.  
  347. //Next, we have the Sniper Enhancement script. This script will not rezoom if you are moving, but will if you are not moving.
  348. //There is also a second option which will make your sniper more precise by lowering sensitivity while holding down a button.
  349.  
  350. //Sniper Enhancer
  351. //Bind a key to "supersniper1".
  352. //No-rescoping:
  353.  
  354. bind "w" "+frw"
  355. bind "s" "+bck"
  356. bind "a" "+lft"
  357. bind "d" "+rgt"
  358. bind "MOUSE2" "+rezoom"
  359.  
  360. alias "+frw" "cl_autorezoom 0; +forward"
  361. alias "-frw" "-forward"
  362.  
  363. alias "+bck" "cl_autorezoom 0; +back"
  364. alias "-bck" "-back"
  365.  
  366. alias "+lft" "cl_autorezoom 0; +moveleft"
  367. alias "-lft" "-moveleft"
  368.  
  369. alias "+rgt" "cl_autorezoom 0; +moveright"
  370. alias "-rgt" "-moveright"
  371.  
  372. alias "+rezoom" "+attack2; cl_autorezoom 1;"
  373. alias "-rezoom" "-attack2"
  374.  
  375. //Bind a key to "supersniper2".
  376. //Note that precision will be toggled by your key press.
  377. //Precision by Sensitivity:
  378.  
  379. alias supersniper2 "zoom_sensitivity_ratio 0.5; alias supersniper2 noobsniper"
  380. alias noobsniper "zoom_sensitivity_ratio 1"
  381.  
  382. //Press F1 to reload this script, and turn off all functions.
  383.  
  384. //Next, we have the weapon zoom script. This script changes the field of view to "zoom in" most weapons.
  385. //Note: May not make easier to aim.
  386.  
  387. //Bind a key to "scope".
  388. //Note: Zoom is toggled, and may not work on all weapons.
  389.  
  390. alias zoomout "fov_desired 90; r_drawviewmodel 1; alias scope zoomin"
  391. alias zoomin "fov_desired 25; r_drawviewmodel 0; alias scope zoomout"
  392. alias scope "nozoom"
  393.  
  394. //Here we have, what I consider, a very useful engineer script.
  395. //Using 8 binds, you can build and destroy all 4 buildings with a button.
  396. //Note that b1, b2 etc. means building, and d1 means destroying.
  397.  
  398. //Bind 8 keys to respective buildings. B1 builds dispenser, D3 destroys teleporter entrance.
  399. //I use Shift + A,S,D,F to build, and Shift + Z,X,C,V to destroy.
  400.  
  401. alias b1 "build 0" //Dispenser
  402. alias b2 "build 1" //Sentry
  403. alias b3 "build 2" //Tele-In
  404. alias b4 "build 3" //Tele-Out
  405.  
  406. alias d1 "destroy 0" //Dispenser
  407. alias d2 "destroy 1" //Sentry
  408. alias d3 "destroy 2" //Tele-In
  409. alias d4 "destroy 3" //Tele-Out
  410.  
  411. //This next script allows to change field of view while holding Shift and scrolling the mouse wheel.
  412.  
  413. alias +smw1 "fovexpand"
  414. alias +smw2 "fovcontract"
  415. alias -smw1 "defaultmw1"
  416. alias -smw2 "defaultmw2"
  417.  
  418. alias fovexpand "incrementvar viewmodel_fov -120 120 1"
  419. alias fovcontract "incrementvar viewmodel_fov -120 120 -1"
  420. alias defaultmw1 "bind mwheelup invprev"
  421. alias defaultmw2 "bind mwheeldown invnext"
  422.  
  423. //This next script allows you to join spectator, blue, or red team in the press of a button.
  424.  
  425. //Bind keys to spec, blue, and red. Default keys are set to ',' '.' and '/'.
  426.  
  427. alias spec "jointeam 2"
  428. alias blue "jointeam 3"
  429. alias red "jointeam 4"
  430.  
  431. //This simple script allows you to change your class with a simple press of a button.
  432.  
  433. //Bind 9 keys for each class.
  434. //I use Home, End, Insert, PgUp, Delete, PgDn, Forward Slash, Asterick, and Pause.
  435. //For your convenience, I have put those 9 binds right here, you can feel free to change them if you wish.
  436.  
  437. bind Home "join_class Scout" //Joins Scout
  438. bind End "join_class Soldier" //Joins Soldier
  439. bind Ins "join_class Pyro" //Joins Pyro
  440. bind PgUp "join_class Demoman" //Joins Demoman
  441. bind Del "join_class Heavyweapons" //Joins Heavy
  442. bind PgDn "join_class Engineer" //Joins Engineer
  443. bind KP_Slash "join_class Medic" //Joins Medic
  444. bind KP_Multiply "join_class Sniper" //Joins Sniper
  445. bind Numlock "join_class Spy" //Joins Spy
  446.  
  447. //This next, and final for now, script allows you to change servers with the click of a button or 2.
  448.  
  449. //All you have to do is bind keys to server1, server2, server3, and server4. You don't have to use all of them.
  450. //Place the IP in the brackets of the line.
  451. //Example: alias server1 "connect 00.00.000.00:00000"
  452.  
  453. alias server1 "connect 74.91.113.66:2701"
  454. alias server2 "connect 64.74.97.15:27015"
  455. alias server3 "connect []"
  456. alias server4 "connect []"
  457.  
  458.  
  459. //This is a beta version of the script. More will be added later. Thank you!
  460.  
  461. //Legend's Personal Scripts
  462.  
  463. alias scoutjump "bind mouse2 +conc"
  464. alias spyjump "bind mouse1 +bungee; bind mouse2 +conc"
  465. alias nojump "bind mouse1 +attack; bind mouse2 +attack"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement