mousewheel fastswitch that "works"

  • Thread starter Thread starter sixfinman
  • Start date Start date
S

sixfinman

Guest
Hey guys, I posted this over at the steam forum (where it will quickly fade into oblivion thanks to 1000 new threads/day that focus on how much teh V4|v3z0rz 5uX0rZ)

anyway, I wrote a script to implement fastswitch for the mousewheel. It seems to work as well as the hard-coded version, with one caveat: I wrote it assumming the player has all weapons. Still, it's not hard to adjust.

Anyway, here ya go:

///////start of fastsw.cfg

unbind MWHEELDOWN
unbind MWHEELUP

alias weap1au "bind MWHEELDOWN weap1bd; bind MWHEELUP weap6u; slot1"
alias weap1bu "bind MWHEELDOWN weap2ad; bind MWHEELUP weap1au; slot1; wait; wait; wait; wait; wait; slot1"
alias weap2au "bind MWHEELDOWN weap2bd; bind MWHEELUP weap1bu; slot2"
alias weap2bu "bind MWHEELDOWN weap3ad; bind MWHEELUP weap2au; slot2; wait; wait; wait; wait; wait; slot2"
alias weap3au "bind MWHEELDOWN weap3bd; bind MWHEELUP weap2bu; slot3"
alias weap3bu "bind MWHEELDOWN weap4ad; bind MWHEELUP weap3au; slot3; wait; wait; wait; wait; wait; slot3"
alias weap4au "bind MWHEELDOWN weap4bd; bind MWHEELUP weap3bu; slot4"
alias weap4bu "bind MWHEELDOWN weap5ad; bind MWHEELUP weap4au; slot4; wait; wait; wait; wait; wait; slot4"
alias weap5au "bind MWHEELDOWN weap5bd; bind MWHEELUP weap4bu; slot5"
alias weap5bu "bind MWHEELDOWN weap6d; bind MWHEELUP weap5au; slot5; wait; wait; wait; wait; wait; slot5"
alias weap6u "bind MWHEELDOWN weap1ad; bind MWHEELUP weap5bu; slot6"

alias weap1ad "bind MWHEELDOWN weap1bd; bind MWHEELUP weap6u; slot1"
alias weap1bd "bind MWHEELDOWN weap2ad; bind MWHEELUP weap1au; slot1"
alias weap2ad "bind MWHEELDOWN weap2bd; bind MWHEELUP weap1bu; slot2"
alias weap2bd "bind MWHEELDOWN weap3ad; bind MWHEELUP weap2au; slot2"
alias weap3ad "bind MWHEELDOWN weap3bd; bind MWHEELUP weap2bu; slot3"
alias weap3bd "bind MWHEELDOWN weap4ad; bind MWHEELUP weap3au; slot3"
alias weap4ad "bind MWHEELDOWN weap4bd; bind MWHEELUP weap3bu; slot4"
alias weap4bd "bind MWHEELDOWN weap5ad; bind MWHEELUP weap4au; slot4"
alias weap5ad "bind MWHEELDOWN weap5bd; bind MWHEELUP weap4bu; slot5"
alias weap5bd "bind MWHEELDOWN weap6d; bind MWHEELUP weap5au; slot5"
alias weap6d "bind MWHEELDOWN weap1ad; bind MWHEELUP weap5bu; slot6"


slot2
bind MWHEELDOWN weap2bd
bind MWHEELUP weap1bu

///////end of fastsw.cfg
 
So what does this do? Instead of wheeling and clicking, all you have to do is wheel to your desired weapon?
 
yeah, just wheel. fastswitch does need to be enabled in keyboard->advanced.
 
A MUCH better way was provided by Pegas over at steampowered:

bind mwheeldown "invnext; +attack; wait; wait; -attack"
bind mwheelup "invprev; +attack; wait; wait; -attack"
 
Isn't that the same as it was all those years ago for Half Life?
 
if you bind "MWHEELUP" "invnext; +attack; wait; -attack" and "MWHEELDOWN" "invprev; +attack; wait; -attack", you can scroll through your weapons without having to click.

edit: oops, didnt realize someone already posted this
 
corkscru74 said:
Half life was scroll and click just like HL2 is.
And because they used to treat fever with leeches we shouldn't use antibiotics/antivirals?
 
silverstealth89 said:
um i aint into coding and all that but where do you put this

just do

bind mwheeldown "invnext; +attack; wait; wait; -attack"
bind mwheelup "invprev; +attack; wait; wait; -attack"

in the console and you should be set.
 
Back
Top