Advertisement
Guest User

TF2 spy script

a guest
Feb 24th, 2012
1,727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. //disguise slot1
  2. bind f1 +slot1_disguiser
  3. alias +slot1_disguiser "slot1;lastdisguise"
  4. alias -slot1_disguiser "lastinv"
  5.  
  6. //disguise slot2
  7. bind f2 +slot2_disguiser
  8. alias +slot2_disguiser "slot2;lastdisguise"
  9. alias -slot2_disguiser "lastinv"
  10.  
  11. //disguise slot3
  12. bind f3 +slot3_disguiser
  13. alias +slot3_disguiser "slot3;lastdisguise"
  14. alias -slot3_disguiser "lastinv"
  15.  
  16. cl_autoreload 1
  17.  
  18. // Stabby's Viewmodel Script for Spy //
  19. // // // // // // // // // // // // // // // // // // // // // // // //
  20. //Viewmodels<< on when shooting amby, off when knife or watch out//
  21. // // // // // // // // // // // // // // // // // // // // // // // //
  22.  
  23.  
  24. // spawn with knife out and viewmodel mode set to "on"
  25.  
  26. slot3
  27. r_drawviewmodel 1
  28. knife_vm_mode
  29.  
  30.  
  31. // replace [KEY] with the your Keybinds for the sapper/knife/ambassador/watch
  32.  
  33. bind "2" +equip_sap // Key/button for sapper
  34. bind "3" +equip_knife // Key/button for knife
  35. bind "1" +equip_amby // Key/button for ambassador
  36. bind "mouse2" "+watch;spec_prev" // Key for watch (mouse2 default)
  37.  
  38.  
  39. //re-bind mouse1
  40.  
  41. alias knife_vm_mode "bind mouse1 +viewmodel_knife" // binds mouse1 to turn viewmodel on when attacking (for knife knife)
  42. alias amby_vm_mode "bind mouse1 +viewmodel_amby" // binds mouse1 to turn viewmodel off when attacking (for amby)
  43. alias sap_vm_mode "bind mouse1 +viewmodel_sap" // binds mouse 1 to turn viewmodel on when attacking and off when not (for sapper)
  44.  
  45.  
  46. // causes viewmodel to go off or on when you shoot
  47.  
  48. alias +viewmodel_knife "+attack;r_drawviewmodel 1;spec_next" // attacks, turns viewmodel on
  49. alias -viewmodel_knife "-attack;r_drawviewmodel 1" // finishes atack, turns viewmodel on again as safeguard
  50.  
  51. alias +viewmodel_amby "+attack;r_drawviewmodel 0;spec_next" // attacks, turns viewmodel off
  52. alias -viewmodel_amby "-attack;r_drawviewmodel 0" // finishes attack, turns viewmodel off again as a safeguard
  53.  
  54. alias +viewmodel_sap "+attack;r_drawviewmodel 1;spec_next" // shows sapper when sapping
  55. alias -viewmodel_sap "-attack;r_drawviewmodel 0" // hides sapper when mouse1 released
  56.  
  57.  
  58. // Equip item, turn vm on/off, set vm toggle for attack
  59.  
  60. alias +equip_knife "slot3;r_drawviewmodel 1" // Equips knife, turns viewmodels on
  61. alias -equip_knife "knife_vm_mode;r_drawviewmodel 1" // Sets viewmodels to turn ON when stabbing (makes sure it stays on)
  62.  
  63. alias +equip_amby "slot1" // Equips amby
  64. alias -equip_amby "amby_vm_mode" // Sets viewmodels to turn OFF when shooting
  65.  
  66. alias +equip_sap "slot2;r_drawviewmodel 1" // Equips sapper, turns viewmodels on
  67. alias -equip_sap "sap_vm_mode" // Sets viewmodels to turn on while firing, and off when not
  68.  
  69. alias +watch "+attack2;r_drawviewmodel 1" // watch up/cloak on/secondary attack + viewmodels on
  70. alias -watch "-attack2;r_drawviewmodel 1" // viewmodels on again as safeguard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement