Advertisement
Chdata

spy.cfg | Chdata's Spy Scripts

Jul 13th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. exec class.cfg
  2.  
  3. //disguise 3 -1 //opposite team, pyro (for TF2)
  4. //disguise 5 -2 //same team, medic (for VSH)
  5.  
  6. // Pistol loses its viewmodel while attacking + Spy's Mousewheel Fastswitch + Knife Crouching Crosshair Color Changer
  7. // By: amelie_poulain_ & Chdata
  8.  
  9. // Spy Revolver viewmodels disappear when attacking - Toggles depending on weapon switch.
  10. alias +vm_attack "+attack; r_drawviewmodel 0; spec_next"; // Remove viewmodel when shooting pistol
  11. alias -vm_attack "-attack"; // We don't remove it here to avoid cloak + letting go of attack = no vm
  12. //alias +no_vm_atk "+attack; r_drawviewmodel 1; spec_next"; // Always redraw viewmodels
  13. //alias -no_vm_atk "-attack; r_drawviewmodel 1"; // Not needed because the only time we lose viewmodels is attacking with pistol and all weapon switches bring it back anyway
  14. //alias +vm_sapper "+attack; r_drawviewmodel 1; spec_next"; // Shows sapper when sapping
  15. //alias -vm_sapper "-attack; r_drawviewmodel 0" // Hides sapper when not
  16.  
  17. // Spy Watch - Always redraws viewmodel
  18. alias +cloak "+attack2; r_drawviewmodel 1; spec_prev";
  19. alias -cloak "-attack2; r_drawviewmodel 1";
  20. bind mouse2 +cloak;
  21.  
  22. // Spy's Mousewheel Fastswitch - Relies on mice with 4 mouse buttons to work for disguises, else use 4 on the 1-0 line
  23. bind mouse4 "slot4; r_drawviewmodel 1"; //use tf_weapon_pda_spy
  24. bind 4 "slot4; r_drawviewmodel 1";
  25.  
  26. // Now featuring a working quick switch
  27. // Note: After death it may need to be re-calibrated by simply switching weapons once again. Spinning your mousewheel is good enough.
  28. bind q lastwep;
  29. alias lastwep pts; // TF2 defaults your Q bind to switch to slot2 (pistol to sapper)
  30.  
  31. bind mwheelup stp;
  32. bind mouse3 pts;
  33. bind mwheeldown ptk;
  34.  
  35. bind 1 stp;
  36. bind 2 pts;
  37. bind 3 ptk;
  38.  
  39. alias pts "to_sapper; bind mwheelup stp; bind mwheeldown stk; alias lastwep stp";
  40. alias ptk "to_knifey; bind mwheelup ktp; bind mouse3 kts; alias lastwep ktp";
  41. alias stp "to_pistol; bind mouse3 pts; bind mwheeldown ptk; alias lastwep pts";
  42. alias stk "to_knifey; bind mwheelup ktp; bind mouse3 kts; alias lastwep kts";
  43. alias ktp "to_pistol; bind mouse3 pts; bind mwheeldown ptk; alias lastwep ptk";
  44. alias kts "to_sapper; bind mwheelup stp; bind mwheeldown stk; alias lastwep stk";
  45.  
  46. alias to_pistol "slot1; bind mouse1 +vm_attack; r_drawviewmodel 1; normal_xhare; ccc_off"; to_pistol;
  47. alias to_sapper "slot2; bind mouse1 +attack; r_drawviewmodel 1; normal_xhare; ccc_off";
  48. alias to_knifey "slot3; bind mouse1 +attack; r_drawviewmodel 1; stabby_xhare; ccc_on";
  49.  
  50. // Crouching changes crosshair color while using knife + Improved Crouch Jump
  51. // By: Chdata
  52.  
  53. alias +rj "-downed;+cr;alias checkrj +cr;spec_mode";
  54. alias -rj "-cr;checkduck;alias checkrj none";
  55. alias +crouch "-cr;+downed;alias checkduck +downed";
  56. alias -crouch "-downed;checkrj;alias checkduck none";
  57. alias checkduck none;
  58. alias checkrj none;
  59. alias +cr "+jump;+downed";
  60. alias -cr "-downed;-jump";
  61. bind space +rj;
  62. bind ctrl +crouch;
  63.  
  64. alias normal_xhare "cl_crosshair_file crosshair5; cl_crosshair_blue 255; cl_crosshair_green 255; cl_crosshair_red 0";
  65. alias stabby_xhare standing;
  66.  
  67. alias cc_on1 "alias on_crouchcolor crouchin";
  68. alias cc_on2 "alias off_crouchcolor standing";
  69. alias ccc_on "cc_on1; cc_on2";
  70.  
  71. alias cc_off1 "alias on_crouchcolor none";
  72. alias cc_off2 "alias off_crouchcolor none";
  73. alias ccc_off "cc_off1; cc_off2"; ccc_off;
  74.  
  75. alias standing "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 0; cl_crosshair_file crosshair3" //Changes to black with a open dot crosshair
  76. alias crouchin "cl_crosshair_blue 255; cl_crosshair_green 255; cl_crosshair_red 255; cl_crosshair_file crosshair5" //Changes to white with a full dot crosshair
  77.  
  78. alias +downed "+duck; alias stabby_xhare crouchin; on_crouchcolor"; // Duck, change our crosshair to full dot
  79. alias -downed "-duck; alias stabby_xhare standing; off_crouchcolor";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement