Want more features on Pastebin? Sign Up, it's FREE!

TF2: Crosshair scripts

By: Lt_Kitteh_Kat on Jan 2nd, 2013  |  syntax: None  |  size: 5.00 KB  |  views: 135  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.                 //////////////
  2.                 //crosshairs//
  3.                 //////////////
  4.  
  5.         //////////////////////////////////////////////////////////
  6.         // (cl_crosshair_file = type cl_crosshair_scale = size) //
  7.         //////////////////////////////////////////////////////////
  8.  
  9. //xhair TYPE toggle--switches crosshair type when shooting; good for preventing Amby xhair from expanding too large (uses my settings as an example). NOTE: Must be manually integrated with viewmodel scripts to work in conjunction.
  10. //=========================================================
  11. alias dotxhairtype "dotxhairtypeb"
  12. alias dotxhairtypeb "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtyper" // tweak crosshair_scale values to your liking
  13. alias dotxhairtyper "cl_crosshair_file crosshair2;cl_crosshair_scale 22;alias dotxhairtype dotxhairtypeb"
  14. alias dotxhairtypev "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtypeq"
  15. alias dotxhairtypeq "cl_crosshair_file crosshair1;cl_crosshair_scale 22;alias dotxhairtype dotxhairtypeb"
  16.  
  17. bind mouse1 +crosshairfire
  18. alias +crosshairfire "+attack; dotxhairtype; spec_next; sensitivity 5.0"
  19. alias -crosshairfire "-attack; dotxhairtype"
  20. bind "mouse2" "+m2; fov_desired 90; sensitivity 5.0; r_drawviewmodel 1"
  21. alias "+m2" "+attack2; spec_prev;ba;dotxhairtypev"
  22. alias "-m2" "-attack2;dotxhairtype"
  23. alias "ba" "fov_desired 90; sensitivity 5.0; r_drawviewmodel 1"
  24. //=========================================================
  25.  
  26.         ////////////////////////
  27.         // xhair COLOR toggle //
  28.         ////////////////////////
  29.  
  30. //=========================================================
  31. alias dotxhaircolor "dotxhaircolorb"
  32. alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc" //green
  33. alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord"
  34. alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolore"
  35. alias dotxhaircolore "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolorf" //yellow
  36. alias dotxhaircolorf "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 0; alias dotxhaircolor dotxhaircolorg" //black
  37. alias dotxhaircolorg "cl_crosshair_blue 112; cl_crosshair_green 25; cl_crosshair_red 25; alias dotxhaircolor dotxhaircolorh" //midnight blue
  38. alias dotxhaircolorh "cl_crosshair_blue 0; cl_crosshair_green 69; cl_crosshair_red 255; alias dotxhaircolor dotxhaircolori" //orange
  39. alias dotxhaircolori "cl_crosshair_blue 180; cl_crosshair_green 105; cl_crosshair_red 255; alias dotxhaircolor dotxhaircolorj" //hot pink
  40. alias dotxhaircolorj "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 255; alias dotxhaircolor dotxhaircolork" //red
  41. alias dotxhaircolork "cl_crosshair_blue 137; cl_crosshair_green 137; cl_crosshair_red 139; alias dotxhaircolor dotxhaircolorl" //grey
  42. alias dotxhaircolorl "cl_crosshair_blue 173; cl_crosshair_green 222; cl_crosshair_red 255; alias dotxhaircolor dotxhaircolorm" //tan
  43. alias dotxhaircolorm "cl_crosshair_blue 255; cl_crosshair_green 255; cl_crosshair_red 0; alias dotxhaircolor dotxhaircolorn" //cyan
  44. alias dotxhaircolorn "cl_crosshair_blue 19; cl_crosshair_green 69; cl_crosshair_red 139; alias dotxhaircolor dotxhaircoloro" //brown
  45. alias dotxhaircoloro "cl_crosshair_blue 11; cl_crosshair_green 134; cl_crosshair_red 184; alias dotxhaircolor dotxhaircolorb" //gold
  46. //=========================================================
  47.  
  48.         // // // // // // // // // // // // // // // // //
  49.         // movement color toggle/flashing xhair example //
  50.         // // // // // // // // // // // // // // // // //
  51.  
  52. bind "uparrow" +fw
  53. alias +fw "+forward;dotxhaircolor"
  54. alias -fw "-forward;dotxhaircolor"
  55.  
  56. bind "downarrow" +bw
  57. alias +bw "+back;dotxhaircolor"
  58. alias -bw "-back;dotxhaircolor"
  59.  
  60. bind "rightarrow" +mr
  61. alias +mr "+moveright;dotxhaircolor"
  62. alias -mr "-moveright;dotxhaircolor"
  63.  
  64. bind "leftarrow" +ml
  65. alias +ml "+moveleft;dotxhaircolor"
  66. alias -ml "-moveleft;dotxhaircolor"
  67. //end
  68.  
  69.                 ///////////////
  70.                 // Amby zoom //
  71.                 ///////////////
  72.  
  73. alias "+zoom" "zoomin"
  74. alias "-zoom" "zoomout"
  75. alias zoomin "r_drawviewmodel 0; fov_desired 74"
  76. alias "zoomout" "r_drawviewmodel 1; fov_desired 90"
  77. unbind u
  78. bind "u" "+zoom"
  79. //end
  80.  
  81.                 //////////////
  82.                 // disguise //
  83.                 //////////////
  84.  
  85. bind "6" "disguise 7 -2; voicemenu 2 2"; disguises as friendly Pyro
  86. bind "7" "disguise 9 -1; voicemenu 0 6"; disguises as enemy Engineer
  87. bind "8" "disguise 7 -1; voicemenu 0 6"; disguises as enemy Pyro
  88. bind "9" "disguise 8 -1; voicemenu 0 6"; disguises as enemy Spy
  89. //end
  90.  
  91.                 /////////////////////////////////
  92.                 // "sapping" and reload script //
  93.                 /////////////////////////////////
  94.  
  95.  bind "R" "+spoo; +reload" // reload; sapping
  96. alias "+spoo" "bind mouse1 crawshairfiar"
  97. alias "-spoo" "bind mouse1 +crosshairfire"
  98. alias crawshairfiar "+attack; dotxhairtype; spec_next; fov_desired 75; sensitivity 2.0; r_drawviewmodel 0; say_team I'M SAPPIN' Y'ALL"
  99. //end
clone this paste RAW Paste Data