script help for ET.


(iamjackscolon89) #1

so i created a script that changes my sensitivity and makes my gun disappear when i hold down mouse one, and then switch back when mouse one is released. now i am trying to bind that same script to different weapon banks (or keys on the keyboard).

here is my attempt that seems to not work:

bind 2 “weaponbank 2; set vstr shootoffpistol;”
set shootonpistol “+sprint;+attack;set vstr shootoffpistol;cg_drawgun 0; sensitivity 3.27;”
set shootoffpistol “-sprint;-attack;set vstr shootonpistol;cg_drawgun 1;sensitivity 5.5;”
bind MOUSE1 “+vstr shootonpistol shootoffpistol”

bind 3 “weaponbank 3; set vstr shootoffmain;”
set shootonmain “+sprint;+attack;set vstr shootoffmain;cg_drawgun 0; sensitivity 2.5;”
set shootoffmain “-sprint;-attack;set vstr shootonmain;cg_drawgun 1;sensitivity 8;”
bind MOUSE1 “+vstr shootonmain shootoffmain”

bind 4 “weaponbank 4; sensitivity 8;”

it was suppose to change the entire script so that when i press 2 for my pistols, the script changed, then when i pressed 3 for my main weapon, the script changed, and when i pressed 4 for my grenades, the script just went away and it was only one sensitivity.

can someone help me or tell me what to do? any help would be greatly appreciated.

thank you in advance.


(Depth_Charge) #2

You just forgot to bind mouse1 back to just +attack when switching to the grenades

bind 4 “weaponbank 4;bind mouse1 +attack; sensitivity 8”


(ouroboro) #3

oh and let us know if that script gets you picked up by an alpha/invite team :roll:


(iamjackscolon89) #4

that didnt seem to work. i switch over to my nades, and it works fine. but then when i switch back to my weaponbank 3 or 2, it still stays the same as my nades (weapon sensitivity of 8 and no changes when i press down mouse1). any help?

by the way, what do you mean by getting picked up by an alpha/invite team? lol


(DarkangelUK) #5

bind 2 "weaponbank 2;bind MOUSE1 “+vstr shootonpistol shootoffpistol”
set shootonpistol “+sprint;+attack;set vstr shootoffpistol;cg_drawgun 0; sensitivity 3.27”
set shootoffpistol “-sprint;-attack;set vstr shootonpistol;cg_drawgun 1;sensitivity 5.5”

bind 3 "weaponbank 3;bind MOUSE1 “+vstr shootonmain shootoffmain”
set shootonmain “+sprint;+attack;set vstr shootoffmain;cg_drawgun 0; sensitivity 2.5”
set shootoffmain “-sprint;-attack;set vstr shootonmain;cg_drawgun 1;sensitivity 8”

bind 4 “weaponbank 4;bind mouse1 +attack; sensitivity 8”


(iamjackscolon89) #6

=) thank you