Advertisement
Lt_Kitteh_Kat

TF2: Crosshair color switcher for arrowkeys

Oct 13th, 2012
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
  2. // first you set up the colors and shapes/sizes you want the xhair to toggle through (cl_crosshair_file = type cl_crosshair_scale = size). Keep in mind that the base size of the crosshair varies depending on the weapon: //
  3. // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
  4.  
  5. //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.
  6. //=========================================================
  7. alias dotxhairtype "dotxhairtypeb"
  8. alias dotxhairtypeb "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtyper" // tweak crosshair_scale values to your liking
  9. alias dotxhairtyper "cl_crosshair_file crosshair2;cl_crosshair_scale 22;alias dotxhairtype dotxhairtypeb"
  10.  
  11. bind mouse1 +crosshairfire
  12. alias +crosshairfire "+attack;dotxhairtype;spec_next"
  13. alias -crosshairfire "-attack;dotxhairtype"
  14. //=========================================================
  15.  
  16. // xhair COLOR toggle
  17. //=========================================================
  18. alias dotxhaircolor "dotxhaircolorb"
  19. alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc" //green
  20. alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord"
  21. alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolore"
  22. alias dotxhaircolore "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolorf" //yellow
  23. alias dotxhaircolorf "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 0; alias dotxhaircolor dotxhaircolorg" //black
  24. alias dotxhaircolorg "cl_crosshair_blue 112; cl_crosshair_green 25; cl_crosshair_red 25; alias dotxhaircolor dotxhaircolorh" //midnight blue
  25. alias dotxhaircolorh "cl_crosshair_blue 0; cl_crosshair_green 69; cl_crosshair_red 255; alias dotxhaircolor dotxhaircolori" //orange
  26. alias dotxhaircolori "cl_crosshair_blue 180; cl_crosshair_green 105; cl_crosshair_red 255; alias dotxhaircolor dotxhaircolorj" //hot pink
  27. alias dotxhaircolorj "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 255; alias dotxhaircolor dotxhaircolork" //red
  28. alias dotxhaircolork "cl_crosshair_blue 137; cl_crosshair_green 137; cl_crosshair_red 139; alias dotxhaircolor dotxhaircolorl" //grey
  29. alias dotxhaircolorl "cl_crosshair_blue 173; cl_crosshair_green 222; cl_crosshair_red 255; alias dotxhaircolor dotxhaircolorm" //tan
  30. alias dotxhaircolorm "cl_crosshair_blue 255; cl_crosshair_green 255; cl_crosshair_red 0; alias dotxhaircolor dotxhaircolorn" //cyan
  31. alias dotxhaircolorn "cl_crosshair_blue 19; cl_crosshair_green 69; cl_crosshair_red 139; alias dotxhaircolor dotxhaircoloro" //brown
  32. alias dotxhaircoloro "cl_crosshair_blue 11; cl_crosshair_green 134; cl_crosshair_red 184; alias dotxhaircolor dotxhaircolorb" //gold
  33. //=========================================================
  34.  
  35. // // // // // // // // // // // // // // // // //
  36. // movement color toggle/flashing xhair example //
  37. // // // // // // // // // // // // // // // // //
  38.  
  39. bind "UPARROW" +fw
  40. alias +fw "+forward;dotxhaircolor"
  41. alias -fw "-forward;dotxhaircolor"
  42.  
  43. bind "DOWNARROW" +bw
  44. alias +bw "+back;dotxhaircolor"
  45. alias -bw "-back;dotxhaircolor"
  46.  
  47. bind "LEFTARROW" +mr
  48. alias +mr "+moveright;dotxhaircolor"
  49. alias -mr "-moveright;dotxhaircolor"
  50.  
  51. bind "RIGHTARROW" +ml
  52. alias +ml "+moveleft;dotxhaircolor"
  53. alias -ml "-moveleft;dotxhaircolor"
  54. //=========================================================
  55.  
  56. // // // // // // // // // // //
  57. // Other color cycle examples //
  58. // // // // // // // // // // //
  59.  
  60. //Black/White xhair color toggle
  61. //=========================================================
  62. alias dotxhaircolorbw "dotxhaircolorbwb"
  63. alias dotxhaircolorblack "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 0;alias dotxhaircolorbw dotxhaircolorwhite"
  64. alias dotxhaircolorwhite "cl_crosshair_blue 255; cl_crosshair_green 255; cl_crosshair_red 255;alias dotxhaircolorbw dotxhaircolorblack"
  65. //=========================================================
  66.  
  67. //xhair team color toggle
  68. //=========================================================
  69. alias dotxhairteamcolor "dotxhairteamcolorred"
  70. alias dotxhairteamcolorred "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhairteamcolor dotxhairteamcolorblu"
  71. alias dotxhairteamcolorblu "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 0;alias dotxhairteamcolor dotxhairteamcolorred"
  72.  
  73. // Set "dotxhairteamcolor" to appropriate team
  74. bind [key1] dotxhairteamcolor dotxhaircolorblu
  75. bind [key2] dotxhairteamcolor dotxhaircolored
  76.  
  77. // Make "lastdisguise" show your disguise's current team color
  78. bind [last disguise key] "lastdisguise;dotxhaircolor"
  79. //end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement