Advertisement
Guest User

SPY config

a guest
Feb 2nd, 2014
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.50 KB | None | 0 0
  1. developer 1
  2.  
  3. echo "Spy config succesfully loaded--http://forums.steampowered.com/forums/showthread.php?t=1591457 for updates and assistance"
  4. echo "Enter "default" to load default class config
  5.  
  6. alias "default" "exec default"
  7.  
  8. // CROSSHAIR FLASHER
  9. // Flashes the crosshair's color and/or type with any action you'd like; includes an example script for setting each movement key to flash between two colors upon press and release. Helpful for visibility if you use a small crosshair (which I recommend trying). The "type" toggler is very useful for keeping the Ambassador crosshair from expanding too much upon firing.
  10.  
  11. // Code:
  12.  
  13. // 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: //
  14. // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //  //
  15.  
  16. //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.
  17. //=========================================================
  18. alias dotxhairtype "dotxhairtypeb"
  19. alias dotxhairtypeb "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtyper" // tweak crosshair_scale values to your liking
  20. alias dotxhairtyper "cl_crosshair_file crosshair2;cl_crosshair_scale 22;alias dotxhairtype dotxhairtypeb"
  21.  
  22. bind mouse1 +crosshairfire
  23. alias +crosshairfire "+attack;dotxhairtype;spec_next"
  24. alias -crosshairfire "-attack;dotxhairtype"
  25. //=========================================================
  26.  
  27. // xhair COLOR toggle
  28. //=========================================================
  29. alias dotxhaircolor "dotxhaircolorb"
  30. alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc"
  31. alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord"
  32. alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorb"
  33. //=========================================================
  34.  
  35. // // // // // // // // // // // // // // // // //
  36. // movement color toggle/flashing xhair example //
  37. // // // // // // // // // // // // // // // // //
  38.  
  39. bind "w" +fw
  40. alias +fw "+forward;dotxhaircolor"
  41. alias -fw "-forward;dotxhaircolor"
  42.  
  43. bind "s" +bw
  44. alias +bw "+back;dotxhaircolor"
  45. alias -bw "-back;dotxhaircolor"
  46.  
  47. bind "d" +mr
  48. alias +mr "+moveright;dotxhaircolor"
  49. alias -mr "-moveright;dotxhaircolor"
  50.  
  51. bind "a" +ml
  52. alias +ml "+moveleft;dotxhaircolor"
  53. alias -ml "-moveleft;dotxhaircolor"
  54. //=========================================================
  55.  
  56. // // // // // // // // // // //
  57. // Other color cycle examples //
  58. // // // // // // // // // // //
  59.  
  60.  
  61. // Crosshair Flashers
  62.  
  63. // xhair color toggle
  64. //=========================================================
  65. alias dotxhaircolor "dotxhaircolorb"
  66. alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorr"
  67. alias dotxhaircolorr "cl_crosshair_blue 64; cl_crosshair_green 255; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolorb"
  68. //=========================================================
  69.  
  70.  
  71. // xhair type toggle
  72. //=========================================================
  73. alias dotxhairtype "dotxhairtypeb"
  74. alias dotxhairtypeb "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtyper"
  75. alias dotxhairtyper "cl_crosshair_file crosshair2;cl_crosshair_scale 32;alias dotxhairtype dotxhairtypeb"
  76. //=========================================================
  77.  
  78.  
  79. //Black/White xhair color toggle
  80. //=========================================================
  81. alias dotxhaircolorbw "dotxhaircolorbwb"
  82. alias dotxhaircolorblack "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 0;alias dotxhaircolorbw dotxhaircolorwhite"
  83. alias dotxhaircolorwhite "cl_crosshair_blue 255; cl_crosshair_green 255; cl_crosshair_red 255;alias dotxhaircolorbw dotxhaircolorblack"
  84. //=========================================================
  85.  
  86. //xhair team color toggle
  87. //=========================================================
  88. alias dotxhairteamcolor "dotxhairteamcolorred"
  89. alias dotxhairteamcolorred "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhairteamcolor dotxhairteamcolorblu"
  90. alias dotxhairteamcolorblu "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 0;alias dotxhairteamcolor dotxhairteamcolorred"
  91.  
  92. // Set "dotxhairteamcolor" to appropriate team
  93. bind [key1] dotxhairteamcolor dotxhaircolorblu
  94. bind [key2] dotxhairteamcolor dotxhaircolored
  95.  
  96. // Make "lastdisguise" show your disguise's current team color
  97. bind [last disguise key] "lastdisguise;dotxhaircolor"
  98.  
  99. // ========================================================================================================================================
  100.  
  101.  
  102.  
  103.  
  104.  
  105. //=============================================================================================================================================
  106. //    CROSSHAIR FLASHER + NULL MOVEMENT SCRIPT
  107. //=============================================================================================================================================
  108. // Same as the crosshair flasher script, but adds null movement--when you hit "a" while "d" is still pressed down, you will not stop moving, but immediately switch directions instead. Helpful for dodging and hard-to-hit movement.
  109.  
  110. // Code:
  111.  
  112. // color toggler
  113. alias dotxhaircolor "dotxhaircolorb"
  114. alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc"
  115. alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord"
  116. alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorb"
  117.  
  118. // NULL CANCELLING MOVEMENT SCRIPT
  119. // (prevents you from pressing two opposing directions, which causes you to stop moving)
  120.  
  121. // Remove "//" below to enable null movement:
  122. bind w +mfwd
  123. bind s +mback
  124. bind a +mleft
  125. bind d +mright
  126.  
  127.  
  128. echo "type 'nullmovement' in console to enable nullmovement, type 'standardmovement' to revert to default"
  129. echo "enter 'nullmovementnoxhair' to use null movement without crosshair flashing"
  130. alias "nullmovementnoxhair" "alias dotxhair echo"
  131.  
  132. alias "nullmovement" "bind w +mfwd;bind s +mback;bind a +mleft;bind d +mright"
  133.  
  134. alias standardmovement "bind w +fw;bind s +bw;bind d +mr;bind a +ml"
  135.  
  136.  
  137. alias +mfwd "-back;+forward;alias checkfwd +forward;dotxhaircolor"
  138. alias +mback "-forward;+back;alias checkback +back;dotxhaircolor"
  139. alias +mleft "-moveright;+moveleft;alias checkleft +moveleft;dotxhaircolor"
  140. alias +mright "-moveleft;+moveright;alias checkright +moveright;dotxhaircolor"
  141. alias -mfwd "-forward;checkback;alias checkfwd none;dotxhaircolor"
  142. alias -mback "-back;checkfwd;alias checkback none;dotxhaircolor"
  143. alias -mleft "-moveleft;checkright;alias checkleft none;dotxhaircolor"
  144. alias -mright "-moveright;checkleft;alias checkright none;dotxhaircolor"
  145. alias checkfwd none
  146. alias checkback none
  147. alias checkleft none
  148. alias checkright none
  149. alias none ""
  150.  
  151.  
  152.  
  153. //=============================================================================================================================================
  154. // VIEWMODEL SCRIPT *
  155. //=============================================================================================================================================
  156. // Hides viewmodels when firing the gun. Gets that darn reload animation out of your face--autoreload ftw! Viewmodels reappear when using the watch or knife.
  157. // Remove the "//" in front of which version you'd like to use to load it by default.
  158.  
  159.  
  160. //================
  161. //ORIGINAL VERSION
  162. //================
  163. exec stabbyviewmodelscript.cfg // my original Viewmodel Script.
  164. echo "stabby's viewmodel script loaded by default. Type 'quickswitchon' to switch to quickswitch version or '2C3C' to load 2C3C's adaptation"
  165.  
  166. //================
  167. //QUICKSWITCH VERSION
  168. //================
  169.  
  170. alias quickswitchon "exec stabbyviewmodelscriptQUICKSWITCHSUPPORT"
  171. // exec stabbyviewmodelscriptQUICKSWITCHSUPPORT.cfg // Remove first "//" to load Quickswitch Support Viewmodel Script by default
  172.  
  173. //================
  174. //2C3C ADAPTATION
  175. //================
  176. // exec stabbyviewmodelscript2C3C-VERSION.cfg // Remove first "//" to load 2C3C viewmodel Script Adaptation by default
  177. alias 2C3C "exec stabbyviewmodelscript2C3C-VERSION.cfg"'
  178.  
  179.  
  180.  
  181.  
  182. //=============================================================================================================================================
  183. // WEAPON-SPECIFIC VIEWMODEL, SENSITIVITY, FOV, & CROSSHAIR SCRIPT*
  184. //=============================================================================================================================================
  185. // Pressing "1", will bring out the Revolver(/Amby/Enforcer), hide the gun, turn your FOV to 75, and set the sensitivity to 1. Press "3" for the Knife; sets the FOV back to 90, sensitivity to 3. Press "2" for the sapper; attacking with the sapper will say "Sapping" to your team in the chat. Attacking with any weapon flashes to a smaller crosshair type.
  186. // Tweak to your liking.
  187. //    * THIS SCRIPT REPLACES THE VIEWMODEL SCRIPT ABOVE. DO NOT USE BOTH TOGETHER!
  188.  
  189. alias combination "exec combinationscript.cfg"
  190. exec "combinationscript.cfg" // Remove "//" at start of this line to enable. Make sure to disable the defualt original version above by putting "//" in front of the "exec stabbyviewmodelscript.cfg" line.
  191.  
  192.  
  193.  
  194. //=============================================================================================================================================
  195. // QUICK DISGUISE SCRIPT
  196. //=============================================================================================================================================
  197. //Binds the "F#" keys to corresponding class disguises to allow you to bypass the disguise kit entirely. The "t" key toggles disguise team (friendly/enemy). Plays class voice lines to confirm the selected class and color ("Yes" for enemy, "No" for friendly). Features weapon disguise binds, too, be sure to bind the keys though in "quickdisguise.cfg"
  198.  
  199. exec "quickdisguise.cfg"
  200.  
  201. developer 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement