Advertisement
Guest User

spy script

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