Weapon Changing - Auto-switch

ElectroKiwiMonkeyElectroKiwiMonkey 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".

Comments

  • TsungfaiTsungfai Join Date: 2002-12-23 Member: 11454Members
    The fast switch that is found in the config menu is only for the numbers that are used on the top of the keyboard.
  • NarfNarf Join Date: 2002-11-01 Member: 2609Members
    i know next to nothing about half-life scripting but I know this little trick is fairly easy to do, just make an alias for both your mwheelup and mwheeldown buttons and set those aliases to change the inventory and then attack. Again, i don't know how to actually DO this in scripting code, so hopefully someone will come around and make more sense out of it for you. Basically the script makes the weapon change as soon as you turn the wheel by both switching the weapon and using +attack to select it.
  • SoulSoul Join Date: 2002-11-01 Member: 1926Members
    I get the same problem, except when I scroll up which is bound to 'next weapon' the menu switches to the next weapon, and when I scroll down which is bound to 'previous weapon' it autoswitches to the previous weapon.

    Any Suggestions?
  • a_civiliana_civilian Likes seeing numbers Join Date: 2003-01-08 Member: 12041Members, NS1 Playtester, Playtest Lead
    edited March 2003
    I use these binds:

    <!--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-->
  • LowClimaxLowClimax Join Date: 2002-12-04 Member: 10461Members
    hud_fastswitch 1
    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.
  • a_civiliana_civilian Likes seeing numbers Join Date: 2003-01-08 Member: 12041Members, NS1 Playtester, Playtest Lead
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->hud_fastswitch 1
    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.
  • ZiGGYZiGGY Join Date: 2003-01-19 Member: 12479Members
    Yeah but jeeze 4 weapon binds aint exactly demanding for a kb lol
  • BeRzErKeRBeRzErKeR Join Date: 2003-02-18 Member: 13691Members
    edited March 2003
    alias "weapon1" "slot1; bind mwheeldown weapon2; bind mwheelup weapon4"
    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.
  • RMB0RMB0 Join Date: 2003-02-08 Member: 13294Members
    <!--QuoteBegin--Soul+Mar 21 2003, 01:28 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Soul @ Mar 21 2003, 01:28 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I get the same problem, except when I scroll up which is bound to 'next weapon' the menu switches to the next weapon, and when I scroll down which is bound to 'previous weapon' it autoswitches to the previous weapon.

    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 =)
  • a_civiliana_civilian Likes seeing numbers Join Date: 2003-01-08 Member: 12041Members, NS1 Playtester, Playtest Lead
    <!--QuoteBegin--BeRzErKeR+--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (BeRzErKeR)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->alias "weapon1" "slot1; bind mwheeldown weapon2; bind mwheelup weapon4"
    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.
Sign In or Register to comment.