A Question About Key Binding In Hl2

DragonMechDragonMech Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
I'd like to know if it's possible to bind individual weapons to certain keys in HL2/HL2DM/CS:S. Essentially what I'm trying to do is have my pulse rifle be bound to mousewheel down, my SMG MWheelUp, and so on. I've tried commands like this:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind "MWheelUp" "weapon_smg1"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
and
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind "Mwheelup" "smg1"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->

Etc, etc, etc - but all I get when I scroll my mousewheel is "unknown command weapon_smg1"

So I turn to you, almighty oriface of knowledge (the forumites) - can it be done?

Comments

  • JimmehJimmeh Join Date: 2003-08-24 Member: 20173Members, Constellation
    Try:

    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->bind mwheelup "use weapon_smg1"<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
  • DragonMechDragonMech Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
    *bows* Thank you almightly oriface of knowledge. If I may beseech thee yet again, answer yet another of my nubbish questions:

    How can I tun off the automatic weaponswitch when I pick up a better gun? I've died many times from running over a magnum with 1 bullet left in the cylinder. >.<

    (The fact that I suck with the magnum doesn't help either.... >.>)
  • NegativityNegativity Join Date: 2004-08-08 Member: 30463Members
    <!--QuoteBegin-DragonMech+Feb 18 2005, 07:27 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (DragonMech @ Feb 18 2005, 07:27 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> *bows* Thank you almightly oriface of knowledge. If I may beseech thee yet again, answer yet another of my nubbish questions:

    How can I tun off the automatic weaponswitch when I pick up a better gun? I've died many times from running over a magnum with 1 bullet left in the cylinder. >.<

    (The fact that I suck with the magnum doesn't help either.... >.>) <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Advanced Keyboard settings.
  • Mr_HeadcrabMr_Headcrab Squee&#33;~ Join Date: 2002-11-20 Member: 9392Members, Constellation
    Ok, since this seems to be the respository of all knowelege regarding HL2, here's a question for ya: How can i spawn weapons without habving gordon pick them up first? dropprimary doesnt work and impulse 101ing just give me ammo, i want the w model, for my NPC horde to use.



    /me goes back to playing "Ravenholm Evil"
  • brute_forcebrute_force Join Date: 2003-10-04 Member: 21433Members, Constellation
    <!--QuoteBegin-Mr Headcrab+Feb 19 2005, 08:37 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Mr Headcrab @ Feb 19 2005, 08:37 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Ok, since this seems to be the respository of all knowelege regarding HL2, here's a question for ya: How can i spawn weapons without habving gordon pick them up first? dropprimary doesnt work and impulse 101ing just give me ammo, i want the w model, for my NPC horde to use.



    /me goes back to playing "Ravenholm Evil" <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    If you want an NPC to use a weapon, try doing this:
    npc_create_equipment weapon_ar2 (or whatever you want)
    npc_create npc_citizen (or whatever you want)
  • Mr_HeadcrabMr_Headcrab Squee&#33;~ Join Date: 2002-11-20 Member: 9392Members, Constellation
    ... i could kiss you right now
  • JezpuhJezpuh Join Date: 2003-04-03 Member: 15157Banned
    <!--QuoteBegin-Mr Headcrab+Feb 19 2005, 11:16 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Mr Headcrab @ Feb 19 2005, 11:16 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> ... i could kiss you right now <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    But that would make you ****.
Sign In or Register to comment.