Advertisement
Guest User

SPY CFG

a guest
Jun 2nd, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.53 KB | None | 0 0
  1. exec crosshairswitcher/disable; spy
  2. exec resetscripts
  3.  
  4.  
  5.  
  6. //Spy quick disguise with key combinations
  7. //By CupOfTea
  8. //v2.0
  9. //
  10. /////////////////////////////////////////////////////////////////////////////////////
  11. //Changelog: //
  12. //*v1.4: -Got the script working properly. //
  13. //*v1.5: -Added key to undisguise. //
  14. //*v2.0: -Replaced colors by Enemy/Ally. You will start disguising as an enemy. //
  15. // -Added changelog //
  16. /////////////////////////////////////////////////////////////////////////////////////
  17. //Enemies
  18. alias "e1" "disguise 1 -1; play vo\scout_yes01"
  19. alias "e2" "disguise 3 -1; play vo\soldier_yes04"
  20. alias "e3" "disguise 7 -1; play vo\pyro_moveup01"
  21. alias "e4" "disguise 4 -1; play vo\demoman_yes01"
  22. alias "e5" "disguise 6 -1; play vo\heavy_yes03"
  23. alias "e6" "disguise 9 -1; play vo\engineer_yes03"
  24. alias "e7" "disguise 5 -1; play vo\medic_yes03"
  25. alias "e8" "disguise 2 -1; play vo\sniper_yes03"
  26. alias "e9" "disguise 8 -1; play vo\spy_yes02"
  27. //Friendlies
  28. alias "a1" "disguise 1 -2; play vo\scout_no02"
  29. alias "a2" "disguise 3 -2; play vo\soldier_no02"
  30. alias "a3" "disguise 7 -2; play vo\pyro_no01"
  31. alias "a4" "disguise 4 -2; play vo\demoman_no03"
  32. alias "a5" "disguise 6 -2; play vo\heavy_no03"
  33. alias "a6" "disguise 9 -2; play vo\engineer_no01"
  34. alias "a7" "disguise 5 -2; play vo\medic_no01"
  35. alias "a8" "disguise 2 -2; play vo\sniper_no01"
  36. alias "a9" "disguise 8 -2; play vo\spy_no03"
  37.  
  38. alias "disscout" "e1"
  39. alias "dissoldier" "e2"
  40. alias "dispyro" "e3"
  41. alias "disdemoman" "e4"
  42. alias "disheavy" "e5"
  43. alias "disengineer" "e6"
  44. alias "dismedic" "e7"
  45. alias "dissniper" "e8"
  46. alias "disspy" "e9"
  47. alias "undisg" "a9"
  48. alias "discolor" "disallied"
  49. alias "disallied" "alias disscout a1; alias dissoldier a2; alias dispyro a3; alias disdemoman a4; alias disheavy a5; alias disengineer a6; alias dismedic a7; alias dissniper a8; alias disspy a9; alias undisg a9; alias discolor disenemy"
  50. alias "disenemy" "alias disscout e1; alias dissoldier e2; alias dispyro e3; alias disdemoman e4; alias disheavy e5; alias disengineer e6; alias dismedic e7; alias dissniper e8; alias disspy e9; alias discolor disallied"
  51. alias "+disguise" "bind 1 disscout; bind 2 dissoldier; bind 3 dispyro; bind 4 disdemoman; bind 5 disheavy; bind 6 disengineer; bind 7 dismedic; bind 8 dissniper; bind 9 disspy; bind 0 discolor; bind - undisg"
  52. alias "-disguise" "bind 1 weapon1; bind 2 weapon2; bind 3 weapon3; bind 4 slot4; bind 5 slot5; bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9; bind 0 slot10; bind - disguiseteam"
  53. bind "KP_END" "+disguise"
  54.  
  55.  
  56.  
  57.  
  58. // Stabby's Viewmodel Script for Spy //
  59.  
  60. // // // // // // // // // // // // // // // // // // // // // // // //
  61. //Viewmodels<< on when shooting amby, off when knife or watch out//
  62. // // // // // // // // // // // // // // // // // // // // // // // //
  63.  
  64.  
  65. // spawn with knife out and viewmodel mode set to "on"
  66.  
  67. weapon3
  68. r_drawviewmodel 1
  69. knife_vm_mode
  70.  
  71.  
  72. // replace [KEY] with the your Keybinds for the sapper/knife/ambassador/watch
  73.  
  74. bind 2 "+equip_sap" // Key/button for sapper
  75. bind 3 "+equip_knife" // Key/button for knife
  76. bind 1 "+equip_amby" // Key/button for ambassador
  77. bind mouse2 "+watch;spec_prev" // Key for watch (mouse2 default)
  78.  
  79.  
  80. //re-bind mouse1
  81.  
  82. alias knife_vm_mode "bind mouse1 +viewmodel_knife" // binds mouse1 to turn viewmodel on when attacking (for knife knife)
  83. alias amby_vm_mode "bind mouse1 +viewmodel_amby" // binds mouse1 to turn viewmodel off when attacking (for amby)
  84. alias sap_vm_mode "bind mouse1 +viewmodel_sap" // binds mouse 1 to turn viewmodel on when attacking and off when not (for sapper)
  85.  
  86.  
  87. // causes viewmodel to go off or on when you shoot
  88.  
  89. alias +viewmodel_knife "+attack;r_drawviewmodel 1;spec_next" // attacks, turns viewmodel on
  90. alias -viewmodel_knife "-attack;r_drawviewmodel 1" // finishes atack, turns viewmodel on again as safeguard
  91.  
  92. alias +viewmodel_amby "+attack;r_drawviewmodel 0;spec_next" // attacks, turns viewmodel off
  93. alias -viewmodel_amby "-attack;r_drawviewmodel 0" // finishes attack, turns viewmodel off again as a safeguard
  94.  
  95. alias +viewmodel_sap "+attack;r_drawviewmodel 1;spec_next" // shows sapper when sapping
  96. alias -viewmodel_sap "-attack;r_drawviewmodel 0" // hides sapper when mouse1 released
  97.  
  98.  
  99. // Equip item, turn vm on/off, set vm toggle for attack
  100.  
  101. alias +equip_knife "weapon3;r_drawviewmodel 1" // Equips knife, turns viewmodels on
  102. alias -equip_knife "knife_vm_mode;r_drawviewmodel 1" // Sets viewmodels to turn ON when stabbing (makes sure it stays on)
  103.  
  104. alias +equip_amby "weapon1" // Equips amby
  105. alias -equip_amby "amby_vm_mode" // Sets viewmodels to turn OFF when shooting
  106.  
  107. alias +equip_sap "weapon2;r_drawviewmodel 1" // Equips sapper, turns viewmodels on
  108. alias -equip_sap "sap_vm_mode" // Sets viewmodels to turn on while firing, and off when not
  109.  
  110. alias +watch "+attack2;r_drawviewmodel 1" // watch up/cloak on/secondary attack + viewmodels on
  111. alias -watch "-attack2;r_drawviewmodel 1" // viewmodels on again as safeguard
  112.  
  113.  
  114. // // // // // // // // // // // //
  115.  
  116.  
  117. echo "Viewmodel script loaded" // confirms script loaded in the console
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement