I'm trying to set up a bind that allows me to switch sensitivity on the fly. Originally I tried writing a script that would lower my sens when I hold down my side button, and then reset it once I let go. I couldn't get it to work so I settled for writing a sort of toggle script instead, which is the commented block of text in the screenshot. It works fine, but if there's a better way to script it please let me know.
http://puu.sh/2HIl1.png
I decided to go back and tinker with the hold script again to see why it wouldn't work. It seems that the first command, for when I push the button, doesn't register, but the second one, for release, does. Any ideas why it would act that way? And what can I do to fix it? Thanks in advance.
I'm trying to set up a bind that allows me to switch sensitivity on the fly. Originally I tried writing a script that would lower my sens when I hold down my side button, and then reset it once I let go. I couldn't get it to work so I settled for writing a sort of toggle script instead, which is the commented block of text in the screenshot. It works fine, but if there's a better way to script it please let me know.
http://puu.sh/2HIl1.png
I decided to go back and tinker with the hold script again to see why it wouldn't work. It seems that the first command, for when I push the button, doesn't register, but the second one, for release, does. Any ideas why it would act that way? And what can I do to fix it? Thanks in advance.
After further dickings-around, it seems that "sens 4" is automatically applied when I hold down mouse5, not when it is released. So I'm sure I'm doing something blatantly wrong, I just have no idea what. :S
After further dickings-around, it seems that "sens 4" is automatically applied when I hold down mouse5, not when it is released. So I'm sure I'm doing something blatantly wrong, I just have no idea what. :S
alias +scope "sensitivity 1"
alias -scope "sensitivity 4"
bind mouse5 +scope
works 4 me
alias +scope "sensitivity 1"
alias -scope "sensitivity 4"
bind mouse5 +scope
works 4 me
alias "sens1" "sensitivity 1; bind mouse5 sens2"
alias "sens2" "sensitivity 2; bind mouse5 sens3"
alias "sens3" "sensitivity 3; bind mouse5 sens4"
alias "sens4" "sensitivity 4; bind mouse5 sens5"
alias "sens5" "sensitivity 5; bind mouse5 sens6"
alias "sens6" "sensitivity 6; bind mouse5 sens1"
bind mouse5 "sens1"
Add as many as you want, change the intervals, etc. This will cycle through them.
[code]
alias "sens1" "sensitivity 1; bind mouse5 sens2"
alias "sens2" "sensitivity 2; bind mouse5 sens3"
alias "sens3" "sensitivity 3; bind mouse5 sens4"
alias "sens4" "sensitivity 4; bind mouse5 sens5"
alias "sens5" "sensitivity 5; bind mouse5 sens6"
alias "sens6" "sensitivity 6; bind mouse5 sens1"
bind mouse5 "sens1"
[/code]
Add as many as you want, change the intervals, etc. This will cycle through them.
I almost wrote one like that but I felt it would be difficult to get used to.
I'm like really hellbent on making one that just works when you hold it down, but I'm wondering now if it's even possible the way I want to make it. Gah.
I almost wrote one like that but I felt it would be difficult to get used to.
I'm like really hellbent on making one that just works when you hold it down, but I'm wondering now if it's even possible the way I want to make it. Gah.
Describe how exactly you want it to work
Describe how exactly you want it to work
VetosI almost wrote one like that but I felt it would be difficult to get used to.
I'm like really hellbent on making one that just works when you hold it down, but I'm wondering now if it's even possible the way I want to make it. Gah.
ffaalias +scope "sensitivity 1"
alias -scope "sensitivity 4"
bind mouse5 +scope
works 4 me
[quote=Vetos]I almost wrote one like that but I felt it would be difficult to get used to.
I'm like really hellbent on making one that just works when you hold it down, but I'm wondering now if it's even possible the way I want to make it. Gah.[/quote]
[quote=ffa]alias +scope "sensitivity 1"
alias -scope "sensitivity 4"
bind mouse5 +scope
works 4 me[/quote]
WaldoDescribe how exactly you want it to work
Fogquotey bits
What I want to happen: I push down the side button. My sens is lower. I release the side button. My sens is higher (back to what it was).
What actually happens: (I made the two sens commands have absurd values just to test it, so I start by setting my sens to what I usually have.) I push down on the side button. My sens is ridiculously high. I release the side button. My sens is still ridiculously high.
I'm not sure if the guys reposting the script understand what I'm trying to do or if the problem is purely on my end, but I feel like this would be the most relevant bit to actually figuring out why it doesn't work for me.
Vetosit seems that "sens 4" is automatically applied when I hold down mouse5, not when it is released.
[quote=Waldo]Describe how exactly you want it to work[/quote]
[quote=Fog]quotey bits[/quote]
What I want to happen: I push down the side button. My sens is lower. I release the side button. My sens is higher (back to what it was).
What actually happens: (I made the two sens commands have absurd values just to test it, so I start by setting my sens to what I usually have.) I push down on the side button. My sens is ridiculously high. I release the side button. My sens is still ridiculously high.
I'm not sure if the guys reposting the script understand what I'm trying to do or if the problem is purely on my end, but I feel like this would be the most relevant bit to actually figuring out why it doesn't work for me.
[quote=Vetos]it seems that "sens 4" is automatically applied when I hold down mouse5, not when it is released.[/quote]
alias "+heal" "weapon2;+attack;autocall_initial"
alias "-heal" "-attack"
My medic config for healing works like this. When I click down, it switches to the medic gun, starts healing, and does an autocall. Once I stop holding down the button, it stops healing the person.
[code]alias "+heal" "weapon2;+attack;autocall_initial"
alias "-heal" "-attack"[/code]
My medic config for healing works like this. When I click down, it switches to the medic gun, starts healing, and does an autocall. Once I stop holding down the button, it stops healing the person.
are you putting the script i posted in your autoexec or whatever and execing it in game??
if you are, then try binding it to a keyboard button and making sure it's not your mouse.
also make sure u dont have mouse5 rebounded anywhere in ur cfgs
are you putting the script i posted in your autoexec or whatever and execing it in game??
if you are, then try binding it to a keyboard button and making sure it's not your mouse.
also make sure u dont have mouse5 rebounded anywhere in ur cfgs
or you can just use the zoom sensitivity command.....
or you can just use the zoom sensitivity command.....
bind mouse5 "+attack"
Press it in game and hold the button down. Are you repeatedly firing while holding the button down? If not, your mouse is treating a button press as two actions rather than treating the press and release separately.
bind mouse5 "+attack"
Press it in game and hold the button down. Are you repeatedly firing while holding the button down? If not, your mouse is treating a button press as two actions rather than treating the press and release separately.