Advertisement
Guest User

treetapper spy script

a guest
Jan 10th, 2014
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. // Viewmodels off when shooting amby and after sapping, on when knife and/or watch out
  2.  
  3.  
  4. // Keybinds for the sapper/knife/revolver/watch
  5.  
  6. bind 1 equip_amby // Key for revolver
  7. bind 2 equip_sap // Key for sapper
  8. bind 3 equip_knife // Key for knife
  9. bind q equip_3last // Key for switching between knife and lastinv
  10. bind capslock equip_12 // Key for switching between revolver and sapper (goes to revolver when knife active)
  11. bind mouse1 +vm_attack // Key for attacking
  12. bind mouse2 +watch // Key for watch
  13.  
  14.  
  15. // Settings
  16.  
  17. // Equips weapon and applies settings
  18. alias equip_amby "slot1; amby_vm_mode; r_drawviewmodel 1; alias equip_12 equip_sapper; alias equip_3last equip_knife; alias equip_last equip_amby"
  19. alias equip_sap "slot2; sap_vm_mode; r_drawviewmodel 1; alias equip_12 equip_amby; alias equip_3last equip_knife; alias equip_last equip_sap"
  20. alias equip_knife "slot3; knife_vm_mode; r_drawviewmodel 1; alias equip_12 equip_amby; alias equip_3last equip_last"
  21.  
  22. // + controls pressing the attack button, - controls releasing it
  23. alias +vm_amby "+attack; r_drawviewmodel 0; spec_next"
  24. alias -vm_amby "-attack; r_drawviewmodel 0"
  25. alias +vm_sap "+attack; r_drawviewmodel 1; spec_next"
  26. alias -vm_sap "-attack; r_drawviewmodel 0"
  27. alias +vm_knife "+attack; r_drawviewmodel 1; spec_next"
  28. alias -vm_knife "-attack; r_drawviewmodel 1"
  29.  
  30. alias +watch "+attack2; r_drawviewmodel 1; spec_prev" // Toggle watch and turn viewmodels on
  31. alias -watch "-attack2; r_drawviewmodel 1"
  32.  
  33.  
  34. // Script logic
  35.  
  36. alias amby_vm_mode "alias +vm_attack +vm_amby; alias -vm_attack -vm_amby" // Attack settings (for revolver)
  37. alias sap_vm_mode "alias +vm_attack +vm_sap; alias -vm_attack -vm_sap" // Attack settings (for sapper)
  38. alias knife_vm_mode "alias +vm_attack +vm_knife; alias -vm_attack -vm_knife" // Attack settings (for knife)
  39.  
  40. alias equip_last equip_amby
  41.  
  42. equip_knife // Initially spawn with knife out
  43. echo "Viewmodel script loaded" // Confirms script loaded in the console
  44.  
  45.  
  46. // To undo this script, execute the following lines (remove the "//" before each first)
  47. // See the following link for information on keeping the above script limited to spy
  48. // http://www.reddit.com/r/tf2scripthelp/wiki/introduction#wiki_preventing_changes_from_carrying_over_to_other_classes
  49.  
  50. //bind 1 slot1
  51. //bind 2 slot2
  52. //bind 3 slot3
  53. //bind q lastinv
  54. //unbind capslock
  55. //bind mouse1 +attack
  56. //bind mouse2 +attack2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement