Can Someone Help Me With A Custom Config?
Nimbus
Join Date: 2002-11-06 Member: 7239Members
<div class="IPBDescription">Not entirely sure how to do this.</div> Can someone help me here? I want to bind each of the 4 alien attacks to each of my mouse buttons. I'm not sure how do this but I think it's like:
bind mouse1 slot1, +attack
bind mouse2 slot2, +attack
bind mouse4 slot3, +attack
bind mouse5 slot4, +attack
(mouse 3 is the mousewheel)
Now could someone tell me how to do this? I think there's supposed to be an alias in there somewhere, but I'm not sure where.
bind mouse1 slot1, +attack
bind mouse2 slot2, +attack
bind mouse4 slot3, +attack
bind mouse5 slot4, +attack
(mouse 3 is the mousewheel)
Now could someone tell me how to do this? I think there's supposed to be an alias in there somewhere, but I'm not sure where.
Comments
try stuff like that.. should work
bind mouse2 "slot2;wait;+attack;wait;-attack"
etc.
now when you hit one of your mouse buttons, it'll do that attack once.
Bah, I give up.
<!--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-->hud_fastswitch 1
alias +slot1att "slot1;wait;wait;+attack"
alias -slot1att "-attack"
alias +slot2att "slot2;wait;wait;+attack"
alias -slot2att "-attack"
alias +slot3att "slot3;wait;wait;+attack"
alias -slot3att "-attack"
alias +slot4att "slot4;wait;wait;+attack"
alias -slot4att "-attack"
bind mouse1 +slot1att
bind mouse2 +slot2att
bind mouse4 +slot3att
bind mouse5 +slot4att
bind home "exec autoexec.cfg"<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
bind mouse1 slot1, +attack
bind mouse2 slot2, +attack
bind mouse4 slot3, +attack
bind mouse5 slot4, +attack
(mouse 3 is the mousewheel)
Now could someone tell me how to do this? I think there's supposed to be an alias in there somewhere, but I'm not sure where.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Go to:
<a href='http://nstactics.lanvancouver.com/weapon_binds.html' target='_blank'>http://nstactics.lanvancouver.com/weapon_binds.html</a>
Look at the bottom of the page.
here's exactly what I did:
I put these lines in a custom cfg:
bind "MOUSE1" "+wep1"
bind "MOUSE2" "+wep2"
bind "MOUSE3" "+popupmenu"
bind "MOUSE4" "+wep3"
bind "MOUSE5" "+wep4"
alias +wep1 "slot1;+attack"
alias -wep1 "-attack"
alias +wep2 "slot2;+attack"
alias -wep2 "-attack"
alias +wep3 "slot3;+attack"
alias -wep3 "-attack"
alias +wep4 "slot4;+attack"
alias -wep4 "-attack"
bind "F8" "exec config.cfg"
and I put this line in the config.cfg for ns
bind "F8" "exec custom.cfg"
I just use f8 to toggle it on or off, and I have to be sure to have it off when I exit halflife, otherwise it overwrites some stuff.
I've had them bug me before, but then they never fail after I make sure they run
<ul>
<li>It doesn't attempt to change the weapon unless it needs to
<li>It will have delay only during weapon switch
</ul>
<!--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-->
alias setslots "bind mouse1 +slot1go;bind mouse2 +slot2go;bind mouse4 +slot3go;bind mouse5 +slot4go"
alias slot1instant "bind mouse1 +attack"
alias slot2instant "bind mouse2 +attack"
alias slot3instant "bind mouse4 +attack"
alias slot4instant "bind mouse5 +attack"
alias +slot1go "slot1;wait;+attack;setslots;slot1instant"
alias +slot2go "slot2;wait;+attack;setslots;slot2instant"
alias +slot3go "slot3;wait;+attack;setslots;slot3instant"
alias +slot4go "slot4;wait;+attack;setslots;slot4instant"
alias -slot1go "-attack"
alias -slot2go "-attack"
alias -slot3go "-attack"
alias -slot4go "-attack"
slot1
setslots
slot1instant
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
It's also handy for when jerk off admins exec unbindall with adminmod. Not that this has happened to me in NS, but someone played a prank on me in another mod and I had to rebind all my keys.
<ul>
<li>Make config.cfg read-only.
<li>If an admin <i>does</i> unbind all your commands, just exec config.cfg before you quit. It will rebind your controls to normal, since nothing is written to config.cfg until exiting.
</ul>