Advertisement
Guest User

Untitled

a guest
Sep 14th, 2013
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.96 KB | None | 0 0
  1. // Stabby's Viewmodel Script for Spy //
  2. //=========================================================
  3. // spawn with knife out and viewmodel mode set to "on"
  4.  
  5. slot3
  6. r_drawviewmodel 1
  7. knife_vm_mode
  8.  
  9.  
  10. // replace [KEY] with the your Keybinds for the sapper/knife/ambassador/watch. You can also add a second bind for any of them.
  11.  
  12. bind "2" +equip_sap // Key/button for sapper
  13. bind "3" +equip_knife // Key/button for knife
  14. bind "1" +equip_amby // Key/button for ambassador
  15. bind "mouse2" "+watch;spec_prev" // Key for watch (mouse2 default)
  16.  
  17.  
  18. //re-bind mouse1 //DONT TOUCH THIS
  19.  
  20. alias knife_vm_mode "bind mouse1 +viewmodel_knife" // binds mouse1 to turn viewmodel on when attacking (for knife )
  21. alias amby_vm_mode "bind mouse1 +viewmodel_amby" // binds mouse1 to turn viewmodel off when attacking (for amby)
  22. alias sap_vm_mode "bind mouse1 +viewmodel_sap" // binds mouse 1 to turn viewmodel on when attacking and off when not (for sapper)
  23.  
  24.  
  25. // causes viewmodel to go off or on when you shoot
  26.  
  27. alias +viewmodel_knife "+attack;r_drawviewmodel 1;+crosshairfire;dotxhaircolor;spec_next" // attacks, turns viewmodel on
  28. alias -viewmodel_knife "-attack;r_drawviewmodel 1;-crosshairfire" // finishes atack, turns viewmodel on again as safeguard
  29.  
  30. alias +viewmodel_amby "+attack;r_drawviewmodel 0;+crosshairfire;dotxhaircolor;spec_next" // attacks, turns viewmodel off
  31. alias -viewmodel_amby "-attack;r_drawviewmodel 0;-crosshairfire" // finishes attack, turns viewmodel off again as safeguard
  32.  
  33. alias +viewmodel_sap "+attack;r_drawviewmodel 1;+crosshairfire;dotxhaircolor;spec_next" // shows sapper when sapping
  34. alias -viewmodel_sap "-attack;r_drawviewmodel 1;-crosshairfire" // Finishes attack, turns viewmodel on again as safeguard
  35.  
  36.  
  37. // Equip item, turn vm on/off, set vm toggle for attack // dont touch this
  38.  
  39. alias +equip_knife "slot3;r_drawviewmodel 1" // Equips knife, turns viewmodels on
  40. alias -equip_knife "knife_vm_mode;r_drawviewmodel 1" // Sets viewmodels to turn ON when stabbing (makes sure it stays on)
  41.  
  42. alias +equip_amby "slot1" // Equips amby
  43. alias -equip_amby "amby_vm_mode" // Sets viewmodels to turn OFF when shooting
  44.  
  45. alias +equip_sap "slot2;r_drawviewmodel 1" // Equips sapper, turns viewmodels on
  46. alias -equip_sap "sap_vm_mode" // Sets viewmodels to turn on while firing, and off when not
  47.  
  48. alias +watch "+attack2;r_drawviewmodel 1;dotxhairtype" // watch up/cloak on/secondary attack + viewmodels on, also changes crosshair when you press it. To remove that feature, remove ";dotxhairtype"
  49. alias -watch "-attack2;r_drawviewmodel 1" // viewmodels on again as safeguard
  50. //=========================================================
  51.  
  52.  
  53. // Crosshair Type toggler // this changes the crosshair when you shoot. It helps prevent the amby cooldown on the crosshair. "Cl_crosshair_file namehere" is the crosshair, "cl_crosshair_scale numberhere" is the size. Change to your liking.
  54. //=========================================================
  55. alias dotxhairtype "dotxhairtypeb"
  56. alias dotxhairtypeb "cl_crosshair_file crosshair2;cl_crosshair_scale 14;alias dotxhairtype dotxhairtyper"
  57. alias dotxhairtyper "cl_crosshair_file crosshair5;cl_crosshair_scale 22;alias dotxhairtype dotxhairtypeb"
  58.  
  59. bind mouse1 +crosshairfire
  60. alias +crosshairfire "+attack;dotxhairtype;spec_next"
  61. alias -crosshairfire "-attack;dotxhairtype"
  62. //=========================================================
  63.  
  64. // xhair COLOR toggle //Colorb, c, and d can be changed to your liking. Just editing the RGB values.
  65. //=========================================================
  66. alias dotxhaircolor "dotxhaircolorb"
  67. alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc"
  68. alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord"
  69. alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorb"
  70. //=========================================================
  71.  
  72.  
  73.  
  74. // Null-cancelling movement script // You can delete this if you wish, but it is extremely helpful. If you dont want the crosshair to change colors when you walk, remove "dotxhaircolor" from +mfwd, +mback, +mleft, +mright, -mfwd, -mback, -mleft, and -mright
  75. //=========================================================
  76. bind w +mfwd
  77. bind s +mback
  78. bind a +mleft
  79. bind d +mright
  80.  
  81. alias +mfwd "-back;+forward;alias checkfwd +forward;dotxhaircolor"
  82. alias +mback "-forward;+back;alias checkback +back;dotxhaircolor"
  83. alias +mleft "-moveright;+moveleft;alias checkleft +moveleft;dotxhaircolor"
  84. alias +mright "-moveleft;+moveright;alias checkright +moveright;dotxhaircolor"
  85. alias -mfwd "-forward;checkback;alias checkfwd none;dotxhaircolor"
  86. alias -mback "-back;checkfwd;alias checkback none;dotxhaircolor"
  87. alias -mleft "-moveleft;checkright;alias checkleft none;dotxhaircolor"
  88. alias -mright "-moveright;checkleft;alias checkright none;dotxhaircolor"
  89. alias checkfwd none
  90. alias checkback none
  91. alias checkleft none
  92. alias checkright none
  93. alias none ""
  94. //=========================================================
  95.  
  96. //break disguise // This binds x to drop your discuise. This is useful as you dont have to waste a bullet from amby or swing your knife. Rebind [key] to your liking
  97. //=========================================================
  98. alias drop_disg "disguise 8 -2"
  99. bind "x" "drop_disg"
  100. //=========================================================
  101.  
  102. //Ambassador Zoom Script // This will lower your FOV when holding mouse4. This is helpful for ambasador sniping. If you want to lower your sensitivity aswell, rewrite the first alias with an added ";sensitivity insertlowersensitivyhere" (no quotes). You must also rewrite the second alias with an added ";sensitivy insertnormalsensitivyhere". You can also change the keybind by changing "shift" to whatever you want.
  103. //=========================================================
  104. alias "+sens" "fov_desired 75; viewmodel_fov 100; viewmodel_fov_demo 100; sensitvity 1"
  105. alias "-sens" "fov_desired 90; viewmodel_fov 100; viewmodel_fov_demo 100; sensitivity 3.58"
  106. bind "mouse4" "+sens"
  107. //=========================================================
  108. alias +rj "spec_mode;-duck;+cr;alias checkrj +cr"
  109. alias -rj "-cr;checkduck;alias checkrj none"
  110. alias +crouch "-cr;+duck;alias checkduck +duck"
  111. alias -crouch "-duck;checkrj;alias checkduck none"
  112. alias checkduck none
  113. alias checkrj none
  114. alias +cr "+jump;+duck"
  115. alias -cr "-duck;-jump"
  116. alias none ""
  117. bind space +rj
  118. bind shift +crouch
  119. //=========================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement