Weapon Changing - Auto-switch
ElectroKiwiMonkey
Join Date: 2002-11-06 Member: 7384Members
<div class="IPBDescription">Help?</div> I've got my mousewheel bound to switch weapons, but for the life of me I can't get it to automatically switch to the new weapon when I scroll - at present, the weapon menu comes up and IT switches, but I have to click the mouse button to have my actual weapon change. Needless to say this tends to cost me in quick firefights when my LMG clip runs empty.
Any help will be appreciated, to quote my g/f, "muchly".
Any help will be appreciated, to quote my g/f, "muchly".
Comments
Any Suggestions?
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind "MWHEELDOWN" "invnext; +attack; wait; -attack"
bind "MWHEELUP" "invprev; +attack; wait; -attack"<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
will switch weapons without the need of clicking the mouse button. ALWAYS use it in ns, because U will need it many times.
All new players (and even not new) should d/l a program called "Half-Life ModMaster" from <a href='http://members.v3space.com/eranh/' target='_blank'>here</a>. This program will help you set up your controls and find servers and a lot more. read about it in the site.
will switch weapons without the need of clicking the mouse button. ALWAYS use it in ns, because U will need it many times.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
hud_fastswitch 1 does not affect invprev or invnext, it only affects slotx.
alias "weapon2" "slot2; bind mwheeldown weapon3; bind mwheelup weapon1"
alias "weapon3" "slot3; bind mwheeldown weapon4; bind mwheelup weapon2"
alias "weapon4" "slot4; bind mwheeldown weapon1; bind mwheelup weapon3"
bind "mwheeldown" "weapon2"
bind "mwheelup" "weapon4"
Don't know if those work, as I'm not a scripting genius or anything... if anyone with proper skills could correct those I'd be happy.
Any Suggestions? <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
Replace in your config file, the current 2 weapon selecting parts to these
bind "MWHEELDOWN" "invnext"
bind "MWHEELUP" "invprev"
I was getting the same problem and in the control menu it seems to set mwheel down to some impulse, which would pull out the next weapon and not bring up menu,
With these as your commands you will always get the menu =)
alias "weapon2" "slot2; bind mwheeldown weapon3; bind mwheelup weapon1"
alias "weapon3" "slot3; bind mwheeldown weapon4; bind mwheelup weapon2"
alias "weapon4" "slot4; bind mwheeldown weapon1; bind mwheelup weapon3"
bind "mwheeldown" "weapon2"
bind "mwheelup" "weapon4"
Don't know if those work, as I'm not a scripting genius or anything... if anyone with proper skills could correct those I'd be happy.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
That should work, but it has some problems (such as trying to switch to slot4 as marine).
It's much simpler to just use this:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind "MWHEELDOWN" "invnext; +attack; wait; -attack"
bind "MWHEELUP" "invprev; +attack; wait; -attack"<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
This will switch to next/previous weapon, then perform the mouse click for you.