Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exec clear
- exec disable-crosshairswitcher
- // first you set up the colors and shapes/sizes you want the xhair to toggle through (cl_crosshair_file = type cl_crosshair_scale = size). Keep in mind that the base size of the crosshair varies depending on the weapon: //
- // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
- //xhair TYPE toggle--switches crosshair type when shooting; good for preventing Amby xhair from expanding too large (uses my settings as an example). NOTE: Must be manually integrated with viewmodel scripts to work in conjunction.
- //=========================================================
- alias dotxhairtype "dotxhairtypeb"
- alias dotxhairtypeb "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtyper" // tweak crosshair_scale values to your liking
- alias dotxhairtyper "cl_crosshair_file crosshair2;cl_crosshair_scale 22;alias dotxhairtype dotxhairtypeb"
- bind mouse1 +crosshairfire
- alias +crosshairfire "+attack;dotxhairtype;spec_next"
- alias -crosshairfire "-attack;dotxhairtype"
- //=========================================================
- // xhair COLOR toggle
- //=========================================================
- 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"
- //=========================================================
- // // // // // // // // // // // // // // // // //
- // movement color toggle/flashing xhair example //
- // // // // // // // // // // // // // // // // //
- bind "w" +fw
- alias +fw "+forward;dotxhaircolor"
- alias -fw "-forward;dotxhaircolor"
- bind "s" +bw
- alias +bw "+back;dotxhaircolor"
- alias -bw "-back;dotxhaircolor"
- bind "d" +mr
- alias +mr "+moveright;dotxhaircolor"
- alias -mr "-moveright;dotxhaircolor"
- bind "a" +ml
- alias +ml "+moveleft;dotxhaircolor"
- alias -ml "-moveleft;dotxhaircolor"
- //=========================================================
- // 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 "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
- 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;r_drawviewmodel 0;spec_next" // attacks, turns viewmodel off
- alias -viewmodel_amby "-attack;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
- 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 f1 e_scout
- bind f2 e_soldier
- bind f3 e_pyro
- bind f4 e_demoman
- bind f5 e_hwguy
- bind f6 e_engineer
- bind f7 e_medic
- bind f8 e_sniper
- bind f9 e_spy
- bind f10 drop_disg
- alias drop_disg "disguise 8 -2" // instantly removes disguise
- //Ambassador Zoom Script
- alias "+ambyzoom" "fov_desired 75; viewmodel_fov 54; viewmodel_fov_demo 54; sensitivity 2.0"
- alias "-ambyzoom" "fov_desired 90; viewmodel_fov 70; viewmodel_fov_demo 70; sensitivity 2.8"
- bind "mouse2" "+ambyzoom"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement