Advertisement
StefanCrime

Hide_Pistol_Script

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