View difference between Paste ID: UxCGAF58 and tQpwu4ej
SHOW: | | - or go back to the newest paste.
1
// SCRIPT COMPILATION
2
//----------------------------------------------------------------   
3
//Viewmodel Script
4
//----------------------------------------------------------------   
5
    // spawn with knife out and viewmodel mode set to "on"
6
     
7
    slot3
8
    r_drawviewmodel 1
9
    knife_vm_mode
10
     
11
     
12
    // replace [KEY] with the your Keybinds for the sapper/knife/ambassador/watch. You can also add a second bind for any of them.
13
     
14
    bind "2" +equip_sap 	// Key/button for sapper
15
    bind "3" +equip_knife      // Key/button for knife
16
    bind "1" +equip_amby      // Key/button for ambassador
17
    bind "mouse2" "+watch;spec_prev"          // Key for watch (mouse2 default)
18
     
19
     
20
    //re-bind mouse1 //DONT TOUCH THIS
21
     
22
    alias knife_vm_mode "bind mouse1 +viewmodel_knife" // binds mouse1 to turn viewmodel on when attacking (for knife )
23
    alias amby_vm_mode "bind mouse1 +viewmodel_amby"  // binds mouse1 to turn viewmodel off when attacking (for amby)
24
    alias sap_vm_mode "bind mouse1 +viewmodel_sap"   // binds mouse 1 to turn viewmodel on when attacking and off when not (for sapper)
25
     
26
     
27
    // causes viewmodel to go off or on when you shoot
28
     
29
    alias +viewmodel_knife "+attack;r_drawviewmodel 1;+crosshairfire;dotxhaircolor;spec_next"          // attacks, turns viewmodel on
30
    alias -viewmodel_knife "-attack;r_drawviewmodel 1;-crosshairfire"         			       // finishes atack, turns viewmodel on again as safeguard
31
     
32
    alias +viewmodel_amby "+attack;r_drawviewmodel 0;+crosshairfire;dotxhaircolor;spec_next"          // attacks, turns viewmodel off
33
    alias -viewmodel_amby "-attack;r_drawviewmodel 0;-crosshairfire"        			      // finishes attack, turns viewmodel off again as safeguard
34
     
35
    alias +viewmodel_sap "+attack;r_drawviewmodel 1;+crosshairfire;dotxhaircolor;spec_next"          // shows sapper when sapping
36
    alias -viewmodel_sap "-attack;r_drawviewmodel 1;-crosshairfire"         			     // Finishes attack, turns viewmodel on again as safeguard
37
     
38
     
39
    // Equip item, turn vm on/off, set vm toggle for attack // dont touch this
40
     
41
    alias +equip_knife "slot3;r_drawviewmodel 1"             // Equips knife, turns viewmodels on
42
    alias -equip_knife "knife_vm_mode;r_drawviewmodel 1"    // Sets viewmodels to turn ON when stabbing (makes sure it stays on)
43
     
44
    alias +equip_amby "slot1"                               // Equips amby
45
    alias -equip_amby "amby_vm_mode"                        // Sets viewmodels to turn OFF when shooting
46
     
47
    alias +equip_sap "slot2;r_drawviewmodel 1"             // Equips sapper, turns viewmodels on
48
    alias -equip_sap "sap_vm_mode"                        // Sets viewmodels to turn on while firing, and off when not
49
     
50
    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"
51
    alias -watch "-attack2;r_drawviewmodel 1"             		// viewmodels on again as safeguard
52
     
53
//----------------------------------------------------------------   
54
// 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.
55
//----------------------------------------------------------------   
56
alias dotxhairtype "dotxhairtypeb"
57
alias dotxhairtypeb "cl_crosshair_file crosshair2;cl_crosshair_scale 20;alias dotxhairtype dotxhairtyper"  
58
alias dotxhairtyper "cl_crosshair_file crosshair5;cl_crosshair_scale 21;alias dotxhairtype dotxhairtypeb"
59
60
bind mouse1 +crosshairfire
61
alias +crosshairfire "+attack;dotxhairtype;spec_next"
62
alias -crosshairfire "-attack;dotxhairtype"
63
64
//----------------------------------------------------------------   
65
// xhair COLOR toggle //Colorb, c, and d can be changed to your liking. Just editing the RGB values.
66
//----------------------------------------------------------------   
67
alias dotxhaircolor "dotxhaircolorb"
68
alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc"
69
alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord"
70
alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorb"
71
72
 
73
74
//----------------------------------------------------------------   
75
// 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
76
//----------------------------------------------------------------   
77
bind w +mfwd
78
bind s +mback
79
bind a +mleft
80
bind d +mright
81
82
alias +mfwd "-back;+forward;alias checkfwd +forward;dotxhaircolor"
83
alias +mback "-forward;+back;alias checkback +back;dotxhaircolor"
84
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft;dotxhaircolor"
85
alias +mright "-moveleft;+moveright;alias checkright +moveright;dotxhaircolor"
86
alias -mfwd "-forward;checkback;alias checkfwd none;dotxhaircolor"
87
alias -mback "-back;checkfwd;alias checkback none;dotxhaircolor"
88
alias -mleft "-moveleft;checkright;alias checkleft none;dotxhaircolor"
89
alias -mright "-moveright;checkleft;alias checkright none;dotxhaircolor"
90
alias checkfwd none
91
alias checkback none
92
alias checkleft none
93
alias checkright none
94
alias none ""
95
96
//-----------------------------------------------------------
97
// disguise Script // This binds f4 to drop your disguise. It also binds f1-f3 to scout, pyro, engi disguises. 
98
Mouse3 rebinds f1-f3 as solly, demo, heavy. Mousewheel down rebinds f1-f3 to sniper, spy, med. mousewheel up rebinds f1-f3 to scout, pyro, engi.
99
pressing "t" will toggle what team you are disguising as (if holding t while you press an fkey, you will disguise as a FRIENDLY class)
100
//-----------------------------------------------------------
101
bind f4 drop_disg
102
alias drop_disg "disguise 8 -2" // instantly removes disguise
103
104
bind "b" "lastdisguise"
105
106
alias e_scout "disguise 1 -1; play vo\scout_yes01"
107
alias e_sniper "disguise 2 -1; play vo\sniper_yes03"
108
alias e_soldier "disguise 3 -1; play vo\soldier_yes04"
109
alias e_demoman "disguise 4 -1; play vo\demoman_yes01"
110
alias e_medic "disguise 5 -1; play vo\medic_yes03"
111
alias e_hwguy "disguise 6 -1; play vo\heavy_yes03"
112
alias e_pyro "disguise 7 -1; play vo\pyro_moveup01"
113
alias e_spy "disguise 8 -1; play vo\spy_yes02"
114
alias e_engineer "disguise 9 -1; play vo\engineer_yes03"
115
116
alias a_scout "disguise 1 -2; play vo\scout_no02"
117
alias a_sniper "disguise 2 -2; play vo\sniper_no01"
118
alias a_soldier "disguise 3 -2; play vo\soldier_no02"
119
alias a_demoman "disguise 4 -2; play vo\demoman_no03"
120
alias a_medic "disguise 5 -2; play vo\medic_no01"
121
alias a_hwguy "disguise 6 -2; play vo\heavy_no03"
122
alias a_pyro "disguise 7 -2; play vo\pyro_no01"
123
alias a_spy "disguise 8 -2; play vo\spy_no03"
124
alias a_engineer "disguise 9 -2; play vo\engineer_no01"
125
126-
bind f1 e_scout
126+
bind f1 e_engineer
127-
bind f2 e_pyro
127+
bind f2 e_sniper
128-
bind f3 e_engineer
128+
bind f3 e_medic
129
130
bind f4 drop_disg
131
alias drop_disg "disguise 8 -2" // instantly removes disguise
132
133-
bind mwheelup "bind f1 e_scout;bind f2 e_pyro; bind f3 e_engineer; bind t +f_disg1"
133+
bind mouse3 "bind f1 e_engineer;bind f2 e_sniper; bind f3 e_medic; bind t +f_disg1"
134-
alias +f_disg1 "bind f1 a_scout; bind f2 a_pyro; bind f3 a_engineer"
134+
alias +f_disg1 "bind f1 a_engineer; bind f2 a_sniper; bind f3 a_medic"
135-
alias -f_disg1 "bind f1 e_scout; bind f2 e_pyro; bind f3 e_engineer"
135+
alias -f_disg1 "bind f1 e_engineer; bind f2 e_sniper; bind f3 e_medic"
136
137-
bind mouse3 "bind f1 e_soldier; bind f2 e_demoman; bind f3 e_hwguy; bind t +f_disg2"
137+
bind mwheelup "bind f1 e_demoman; bind f2 e_soldier; bind f3 e_hwguy; bind t +f_disg2"
138-
alias +f_disg2 "bind f1 a_soldier; bind f2 a_demoman; bind f3 a_hwguy"
138+
alias +f_disg2 "bind f1 a_demoman; bind f2 a_soldier; bind f3 a_hwguy"
139-
alias -f_disg2 "bind f1 e_soldier; bind f2 e_demoman; bind f3 e_hwguy"
139+
alias -f_disg2 "bind f1 e_demoman; bind f2 e_soldier; bind f3 e_hwguy"
140
141-
bind mwheeldown "bind f1 e_sniper; bind f2 e_spy; bind f3 e_medic; bind t +f_disg3"
141+
bind mwheeldown "bind f1 e_scout; bind f2 e_pyro; bind f3 e_spy; bind t +f_disg3"
142-
alias +f_disg3 "bind f1 a_sniper; bind f2 a_spy; bind f3 a_medic"
142+
alias +f_disg3 "bind f1 a_scout; bind f2 a_pyro; bind f3 a_spy"
143-
alias -f_disg3 "bind f1 e_sniper; bind f2 e_spy; bind f3 e_medic"
143+
alias -f_disg3 "bind f1 e_scout; bind f2 e_pyro; bind f3 e_spy"
144
//----------------------------------------------------------------   
145
//Ambassador Zoom Script // This will lower your FOV when holding shift. 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.
146
//----------------------------------------------------------------   
147
alias "+sens" "fov_desired 75; viewmodel_fov 100; viewmodel_fov_demo 100"
148
alias "-sens" "fov_desired 90; viewmodel_fov 100; viewmodel_fov_demo 100"
149
bind "shift" "+sens"