Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // xhair type toggle
- //=========================================================
- 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 16;alias dotxhairtype dotxhairtypeb"
- //=========================================================
- // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
- // Stabby's Viewmodel Script for Spy //
- // // // // // // // // // // // // // // // // // // // // // // // //
- //Viewmodels<< on when shooting amby, off when knife or watch out//
- // // // // // // // // // // // // // // // // // // // // // // // //
- // 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
- bind "c" +equip_sap // Key/button for sapper
- bind "mouse4" +equip_knife // Key/button for knife
- bind "mouse5" +equip_amby // Key/button for ambassador
- bind "mouse2" "+watch;spec_prev" // Key for watch (mouse2 default)
- //re-bind mouse1
- alias knife_vm_mode "bind mouse1 +viewmodel_knife" // binds mouse1 to turn viewmodel on when attacking (for knife 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;spec_next" // attacks, turns viewmodel on
- alias -viewmodel_knife "-attack;r_drawviewmodel 1" // finishes atack, turns viewmodel on again as safeguard
- alias +viewmodel_amby "+attack;dotxhairtype;r_drawviewmodel 0;spec_next" // attacks, turns viewmodel off
- alias -viewmodel_amby "-attack;dotxhairtype;r_drawviewmodel 0" // finishes attack, turns viewmodel off again as a safeguard
- alias +viewmodel_sap "+attack;r_drawviewmodel 1;spec_next" // shows sapper when sapping
- alias -viewmodel_sap "-attack;r_drawviewmodel 0" // hides sapper when mouse1 released
- // Equip item, turn vm on/off, set vm toggle for attack
- 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" // watch up/cloak on/secondary attack + viewmodels on
- alias -watch "-attack2;r_drawviewmodel 1" // viewmodels on again as safeguard
- // // // // // // // // // // // //
- echo "Viewmodel script loaded" // confirms script loaded in the console
- // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
- // color toggler
- 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
- // (prevents you from pressing two opposing directions, which causes you to stop moving)
- 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 ""
- // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
- alias e_scout "disguise 1 -1; play vo\scout_yes01"
- alias e_sniper "disguise 2 -1; play vo\sniper_yes03"
- alias e_soldier "disguise 3 -1; play vo\soldier_yes04"
- alias e_demoman "disguise 4 -1; play vo\demoman_yes01"
- alias e_medic "disguise 5 -1; play vo\medic_yes03"
- alias e_hwguy "disguise 6 -1; play vo\heavy_yes03"
- alias e_pyro "disguise 7 -1; play vo\pyro_moveup01"
- alias e_spy "disguise 8 -1; play vo\spy_yes02"
- alias e_engineer "disguise 9 -1; play vo\engineer_yes03"
- alias a_scout "disguise 1 -2; play vo\scout_no02"
- alias a_sniper "disguise 2 -2; play vo\sniper_no01"
- alias a_soldier "disguise 3 -2; play vo\soldier_no02"
- alias a_demoman "disguise 4 -2; play vo\demoman_no03"
- alias a_medic "disguise 5 -2; play vo\medic_no01"
- alias a_hwguy "disguise 6 -2; play vo\heavy_no03"
- alias a_pyro "disguise 7 -2; play vo\pyro_no01"
- alias a_spy "disguise 8 -2; play vo\spy_no03"
- alias a_engineer "disguise 9 -2; play vo\engineer_no01"
- bind 1 e_scout
- bind 7 e_soldier
- bind 5 e_pyro
- bind 8 e_demoman
- bind 9 e_hwguy
- bind 6 e_engineer
- bind 4 e_medic
- bind 2 e_sniper
- bind 3 e_spy
- bind x drop_disg
- alias drop_disg "disguise 8 -2" // instantly removes disguise
- alias +f_disg "bind 1 a_scout; bind 7 a_soldier; bind 5 a_pyro; bind 8 a_demoman; bind 9 a_hwguy; bind 6 a_engineer; bind 4 a_medic; bind 2 a_sniper; bind 3 a_spy"
- alias -f_disg "bind 1 e_scout; bind 7 e_soldier; bind 5 e_pyro; bind 8 e_demoman; bind 9 e_hwguy; bind 6 e_engineer; bind 4 e_medic; bind 2 e_sniper; bind 3 e_spy"
- bind mouse3 +f_disg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement