Advertisement
Guest User

TF2 spy.cfg

a guest
Nov 11th, 2012
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.27 KB | None | 0 0
  1. exec clear
  2.  
  3. exec disable-crosshairswitcher
  4.  
  5. // 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: //
  6. // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
  7.  
  8. //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.
  9. //=========================================================
  10. alias dotxhairtype "dotxhairtypeb"
  11. alias dotxhairtypeb "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtyper" // tweak crosshair_scale values to your liking
  12. alias dotxhairtyper "cl_crosshair_file crosshair2;cl_crosshair_scale 22;alias dotxhairtype dotxhairtypeb"
  13.  
  14. bind mouse1 +crosshairfire
  15. alias +crosshairfire "+attack;dotxhairtype;spec_next"
  16. alias -crosshairfire "-attack;dotxhairtype"
  17. //=========================================================
  18.  
  19. // xhair COLOR toggle
  20. //=========================================================
  21. alias dotxhaircolor "dotxhaircolorb"
  22. alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc"
  23. alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord"
  24. alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorb"
  25. //=========================================================
  26.  
  27. // // // // // // // // // // // // // // // // //
  28. // movement color toggle/flashing xhair example //
  29. // // // // // // // // // // // // // // // // //
  30.  
  31. bind "w" +fw
  32. alias +fw "+forward;dotxhaircolor"
  33. alias -fw "-forward;dotxhaircolor"
  34.  
  35. bind "s" +bw
  36. alias +bw "+back;dotxhaircolor"
  37. alias -bw "-back;dotxhaircolor"
  38.  
  39. bind "d" +mr
  40. alias +mr "+moveright;dotxhaircolor"
  41. alias -mr "-moveright;dotxhaircolor"
  42.  
  43. bind "a" +ml
  44. alias +ml "+moveleft;dotxhaircolor"
  45. alias -ml "-moveleft;dotxhaircolor"
  46. //=========================================================
  47.  
  48.  
  49.  
  50. // Stabby's Viewmodel Script for Spy //
  51.  
  52. // // // // // // // // // // // // // // // // // // // // // // // //
  53. //Viewmodels<< on when shooting amby, off when knife or watch out//
  54. // // // // // // // // // // // // // // // // // // // // // // // //
  55.  
  56.  
  57. // spawn with knife out and viewmodel mode set to "on"
  58.  
  59. slot3
  60. r_drawviewmodel 1
  61. knife_vm_mode
  62.  
  63.  
  64. // replace [KEY] with the your Keybinds for the sapper/knife/ambassador/watch
  65.  
  66. bind "2" +equip_sap // Key/button for sapper
  67. bind "3" +equip_knife // Key/button for knife
  68. bind "1" +equip_amby // Key/button for ambassador
  69. bind "mouse2" "+watch;spec_prev" // Key for watch (mouse2 default)
  70.  
  71.  
  72. //re-bind mouse1
  73.  
  74. alias knife_vm_mode "bind mouse1 +viewmodel_knife" // binds mouse1 to turn viewmodel on when attacking (for knife knife)
  75. alias amby_vm_mode "bind mouse1 +viewmodel_amby" // binds mouse1 to turn viewmodel off when attacking (for amby)
  76. alias sap_vm_mode "bind mouse1 +viewmodel_sap" // binds mouse 1 to turn viewmodel on when attacking and off when not (for sapper)
  77.  
  78.  
  79. // causes viewmodel to go off or on when you shoot
  80.  
  81. alias +viewmodel_knife "+attack;r_drawviewmodel 1;spec_next" // attacks, turns viewmodel on
  82. alias -viewmodel_knife "-attack;r_drawviewmodel 1" // finishes atack, turns viewmodel on again as safeguard
  83.  
  84. alias +viewmodel_amby "+attack;r_drawviewmodel 0;spec_next" // attacks, turns viewmodel off
  85. alias -viewmodel_amby "-attack;r_drawviewmodel 0" // finishes attack, turns viewmodel off again as a safeguard
  86.  
  87. alias +viewmodel_sap "+attack;r_drawviewmodel 1;spec_next" // shows sapper when sapping
  88. alias -viewmodel_sap "-attack;r_drawviewmodel 0" // hides sapper when mouse1 released
  89.  
  90.  
  91. // Equip item, turn vm on/off, set vm toggle for attack
  92.  
  93. alias +equip_knife "slot3;r_drawviewmodel 1" // Equips knife, turns viewmodels on
  94. alias -equip_knife "knife_vm_mode;r_drawviewmodel 1" // Sets viewmodels to turn ON when stabbing (makes sure it stays on)
  95.  
  96. alias +equip_amby "slot1" // Equips amby
  97. alias -equip_amby "amby_vm_mode" // Sets viewmodels to turn OFF when shooting
  98.  
  99. alias +equip_sap "slot2;r_drawviewmodel 1" // Equips sapper, turns viewmodels on
  100. alias -equip_sap "sap_vm_mode" // Sets viewmodels to turn on while firing, and off when not
  101.  
  102. alias +watch "+attack2;r_drawviewmodel 1" // watch up/cloak on/secondary attack + viewmodels on
  103. alias -watch "-attack2;r_drawviewmodel 1" // viewmodels on again as safeguard
  104.  
  105.  
  106. // // // // // // // // // // // //
  107.  
  108.  
  109. echo "Viewmodel script loaded" // confirms script loaded in the console
  110.  
  111. alias e_scout "disguise 1 -1; play vo\scout_yes01"
  112. alias e_sniper "disguise 2 -1; play vo\sniper_yes03"
  113. alias e_soldier "disguise 3 -1; play vo\soldier_yes04"
  114. alias e_demoman "disguise 4 -1; play vo\demoman_yes01"
  115. alias e_medic "disguise 5 -1; play vo\medic_yes03"
  116. alias e_hwguy "disguise 6 -1; play vo\heavy_yes03"
  117. alias e_pyro "disguise 7 -1; play vo\pyro_moveup01"
  118. alias e_spy "disguise 8 -1; play vo\spy_yes02"
  119. alias e_engineer "disguise 9 -1; play vo\engineer_yes03"
  120.  
  121. alias a_scout "disguise 1 -2; play vo\scout_no02"
  122. alias a_sniper "disguise 2 -2; play vo\sniper_no01"
  123. alias a_soldier "disguise 3 -2; play vo\soldier_no02"
  124. alias a_demoman "disguise 4 -2; play vo\demoman_no03"
  125. alias a_medic "disguise 5 -2; play vo\medic_no01"
  126. alias a_hwguy "disguise 6 -2; play vo\heavy_no03"
  127. alias a_pyro "disguise 7 -2; play vo\pyro_no01"
  128. alias a_spy "disguise 8 -2; play vo\spy_no03"
  129. alias a_engineer "disguise 9 -2; play vo\engineer_no01"
  130.  
  131. bind f1 e_scout
  132. bind f2 e_soldier
  133. bind f3 e_pyro
  134. bind f4 e_demoman
  135. bind f5 e_hwguy
  136. bind f6 e_engineer
  137. bind f7 e_medic
  138. bind f8 e_sniper
  139. bind f9 e_spy
  140. bind f10 drop_disg
  141. alias drop_disg "disguise 8 -2" // instantly removes disguise
  142.  
  143. //Ambassador Zoom Script
  144. alias "+ambyzoom" "fov_desired 75; viewmodel_fov 54; viewmodel_fov_demo 54; sensitivity 2.0"
  145. alias "-ambyzoom" "fov_desired 90; viewmodel_fov 70; viewmodel_fov_demo 70; sensitivity 2.8"
  146. bind "mouse2" "+ambyzoom"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement