Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Stabby's Viewmodel Script for Spy //
- //=========================================================
- // spawn with knife out and viewmodel mode set to "on"
- slot3
- r_drawviewmodel 1
- knife_vm_mode
- // replace [KEY] with the your Keybinds for the sapper/knife/ambassador/watch. You can also add a second bind for any of them.
- bind "2" +equip_sap // Key/button for sapper
- bind "3" +equip_knife // Key/button for knife
- bind "1" +equip_amby // Key/button for ambassador
- bind "mouse2" "+watch;spec_prev" // Key for watch (mouse2 default)
- //re-bind mouse1 //DONT TOUCH THIS
- alias knife_vm_mode "bind mouse1 +viewmodel_knife" // binds mouse1 to turn viewmodel on when attacking (for knife )
- alias amby_vm_mode "bind mouse1 +viewmodel_amby" // binds mouse1 to turn viewmodel off when attacking (for amby)
- alias sap_vm_mode "bind mouse1 +viewmodel_sap" // binds mouse 1 to turn viewmodel on when attacking and off when not (for sapper)
- // causes viewmodel to go off or on when you shoot
- alias +viewmodel_knife "+attack;r_drawviewmodel 1;+crosshairfire;dotxhaircolor;spec_next" // attacks, turns viewmodel on
- alias -viewmodel_knife "-attack;r_drawviewmodel 1;-crosshairfire" // finishes atack, turns viewmodel on again as safeguard
- alias +viewmodel_amby "+attack;r_drawviewmodel 0;+crosshairfire;dotxhaircolor;spec_next" // attacks, turns viewmodel off
- alias -viewmodel_amby "-attack;r_drawviewmodel 0;-crosshairfire" // finishes attack, turns viewmodel off again as safeguard
- alias +viewmodel_sap "+attack;r_drawviewmodel 1;+crosshairfire;dotxhaircolor;spec_next" // shows sapper when sapping
- alias -viewmodel_sap "-attack;r_drawviewmodel 1;-crosshairfire" // Finishes attack, turns viewmodel on again as safeguard
- // Equip item, turn vm on/off, set vm toggle for attack // dont touch this
- alias +equip_knife "slot3;r_drawviewmodel 1" // Equips knife, turns viewmodels on
- alias -equip_knife "knife_vm_mode;r_drawviewmodel 1" // Sets viewmodels to turn ON when stabbing (makes sure it stays on)
- alias +equip_amby "slot1" // Equips amby
- alias -equip_amby "amby_vm_mode" // Sets viewmodels to turn OFF when shooting
- alias +equip_sap "slot2;r_drawviewmodel 1" // Equips sapper, turns viewmodels on
- alias -equip_sap "sap_vm_mode" // Sets viewmodels to turn on while firing, and off when not
- 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"
- alias -watch "-attack2;r_drawviewmodel 1" // viewmodels on again as safeguard
- //=========================================================
- // 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.
- //=========================================================
- alias dotxhairtype "dotxhairtypeb"
- alias dotxhairtypeb "cl_crosshair_file crosshair2;cl_crosshair_scale 14;alias dotxhairtype dotxhairtyper"
- alias dotxhairtyper "cl_crosshair_file crosshair5;cl_crosshair_scale 22;alias dotxhairtype dotxhairtypeb"
- bind mouse1 +crosshairfire
- alias +crosshairfire "+attack;dotxhairtype;spec_next"
- alias -crosshairfire "-attack;dotxhairtype"
- //=========================================================
- // xhair COLOR toggle //Colorb, c, and d can be changed to your liking. Just editing the RGB values.
- //=========================================================
- alias dotxhaircolor "dotxhaircolorb"
- alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc"
- alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord"
- alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorb"
- //=========================================================
- // 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
- //=========================================================
- bind w +mfwd
- bind s +mback
- bind a +mleft
- bind d +mright
- alias +mfwd "-back;+forward;alias checkfwd +forward;dotxhaircolor"
- alias +mback "-forward;+back;alias checkback +back;dotxhaircolor"
- alias +mleft "-moveright;+moveleft;alias checkleft +moveleft;dotxhaircolor"
- alias +mright "-moveleft;+moveright;alias checkright +moveright;dotxhaircolor"
- alias -mfwd "-forward;checkback;alias checkfwd none;dotxhaircolor"
- alias -mback "-back;checkfwd;alias checkback none;dotxhaircolor"
- alias -mleft "-moveleft;checkright;alias checkleft none;dotxhaircolor"
- alias -mright "-moveright;checkleft;alias checkright none;dotxhaircolor"
- alias checkfwd none
- alias checkback none
- alias checkleft none
- alias checkright none
- alias none ""
- //=========================================================
- //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
- //=========================================================
- alias drop_disg "disguise 8 -2"
- bind "x" "drop_disg"
- //=========================================================
- //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.
- //=========================================================
- alias "+sens" "fov_desired 75; viewmodel_fov 100; viewmodel_fov_demo 100; sensitvity 1"
- alias "-sens" "fov_desired 90; viewmodel_fov 100; viewmodel_fov_demo 100; sensitivity 3.58"
- bind "mouse4" "+sens"
- //=========================================================
- alias +rj "spec_mode;-duck;+cr;alias checkrj +cr"
- alias -rj "-cr;checkduck;alias checkrj none"
- alias +crouch "-cr;+duck;alias checkduck +duck"
- alias -crouch "-duck;checkrj;alias checkduck none"
- alias checkduck none
- alias checkrj none
- alias +cr "+jump;+duck"
- alias -cr "-duck;-jump"
- alias none ""
- bind space +rj
- bind shift +crouch
- //=========================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement