A Question About Key Binding In Hl2
DragonMech
Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
in Off-Topic
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?
<!--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
<!--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-->
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.... >.>)
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.
/me goes back to playing "Ravenholm Evil"
/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)
But that would make you ****.