Advertisement
Chdata

Spy Pistol Viewmodel Script

Jul 3rd, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. // Pistol loses its viewmodel while attacking
  2. // + Mousewheel fastswitch for spy
  3. // By: amelie_poulain_ & Chdata
  4.  
  5. //Spy Revolver - Toggles depending on weapon switch. Defaults to viewmodels off on spawn.
  6. alias +on_pistol "spec_next; +attack; r_drawviewmodel 0"
  7. alias -on_pistol "-attack"
  8. alias +of_pistol "spec_next; +attack; r_drawviewmodel 1"
  9. alias -of_pistol "-attack"
  10. bind MOUSE1 +on_pistol
  11.  
  12. //Spy Watch - Always enables viewmodel
  13. alias +cloak "spec_prev; +attack2; r_drawviewmodel 1"
  14. alias -cloak "-attack2"
  15. bind MOUSE2 +cloak
  16.  
  17. //Switching off pistol makes them not mess with our viewmodels anymore
  18. alias to_pistol "slot1; bind MOUSE1 +on_pistol; cl_crosshair_file crosshair7; cl_crosshair_scale 48"
  19. alias to_sapper "slot2; bind MOUSE1 +of_pistol; r_drawviewmodel 1; cl_crosshair_file crosshair5; cl_crosshair_scale 24.82"
  20. alias to_knife "slot3; bind MOUSE1 +of_pistol; r_drawviewmodel 1; cl_crosshair_file crosshair5; cl_crosshair_scale 24.82"
  21.  
  22. bind MWHEELUP to_pistol
  23. bind MOUSE3 to_sapper
  24. bind MWHEELDOWN to_knife
  25. bind MOUSE4 "slot4; r_drawviewmodel 1"
  26.  
  27. bind 1 to_pistol
  28. bind 2 to_sapper
  29. bind 3 to_knife
  30. bind 4 "slot4; r_drawviewmodel 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement