<!--QuoteBegin--KPDrag0n+Apr 15 2003, 05:38 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (KPDrag0n @ Apr 15 2003, 05:38 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> thank you does impulse 100 work with all mods? <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd--> I believe so
edit: <!--QuoteBegin--Gwahir+Apr 15 2003, 10:20 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Gwahir @ Apr 15 2003, 10:20 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->note that +attack starts an attack and -attack stops it<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Yes that is very important. If you want to use them in an alias, you'll need to put it as "+attack, wait, -attack"
Putting only +attack will "jam" your pistol (you'd be only able to shoot 1 bullet) or will just empty your clip uncontrollably for an automatic. This goes for all "+" commands.
hmmm i only used +attack in my bindings and it works fine unless you guys are probably talking about something else (most likely) but the admin changed my mouse1 key to killl so everytime i tried to kill myself i would die lol <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo--> so thats how i had to figure out +attack
lol it really sux when the admins take control of their power and abuse the other users <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo--> sometimes they totally erase ur config if they are bein stupid
Last post was sarcasm if you diden't notice <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> And yes Admin abusers suck major
I had a freakin bindall kill and didn't have the cfg to restore it easily <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo--> <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->
Here's a brief guide to how +something works in HL scripting.
All of the +something commands have an equivalent -something. The +something is activated when you press the key which it is bound to, and the -something is activated when you release the key.
If you are BINDING a key to a +something command (such as "bind mouse1 +attack") then HL is nice enough to handle this for you. In other words, when you press mouse1 it will run the +attack command, and when you release the mouse button it will run the -attack command.
If you are writing an ALIAS with a +command, it will continue to run until you tell it to stop. For example:
when you press mouse1, +attack will be activated but will not stop, since there is no command to -attack anywhere in there.
You can create your own +something commands as well. For example:
<!--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 +button say I'm holding down the mouse button. alias -button say I've released the mouse button. bind mouse1 +button<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
This time, when you press the mouse button, you will say "I'm holding down the mouse button." (you'll only say it once). When you release the mouse button, you will say "I've released the mouse button.".
If you're going to fiddle with this stuff, it's a good idea to create a file called "stop.cfg" in your NS folder (or the folder of whatever mod you're working with) which has in it something like: <!--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-->-attack -jump -duck -attack2 -use //(etc) <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
This way, whenever you've stuffed up an alias so that you don't stop firing (or jumping, or crouching, or whatever), you just have to open the console and enter "exec stop.cfg" to fix the problem. Well, it won't fix your alias (of course), but it will.... ah, you know what I mean <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
Fix your game so you can screw it up again ? <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
Comments
And when there is more than one type of attack, +attack1 and +attack2
I believe so
edit:
<!--QuoteBegin--Gwahir+Apr 15 2003, 10:20 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Gwahir @ Apr 15 2003, 10:20 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->note that +attack starts an attack and -attack stops it<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Yes that is very important. If you want to use them in an alias, you'll need to put it as "+attack, wait, -attack"
Putting only +attack will "jam" your pistol (you'd be only able to shoot 1 bullet) or will just empty your clip uncontrollably for an automatic. This goes for all "+" commands.
When I try to kill myself I die to....
And yes
Admin abusers suck major
It was a CS server if you wanted to know
All of the +something commands have an equivalent -something. The +something is activated when you press the key which it is bound to, and the -something is activated when you release the key.
If you are BINDING a key to a +something command (such as "bind mouse1 +attack") then HL is nice enough to handle this for you. In other words, when you press mouse1 it will run the +attack command, and when you release the mouse button it will run the -attack command.
If you are writing an ALIAS with a +command, it will continue to run until you tell it to stop. For example:
<!--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 startattack "+attack"
bind mouse1 startattack<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
when you press mouse1, +attack will be activated but will not stop, since there is no command to -attack anywhere in there.
You can create your own +something commands as well. For example:
<!--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 +button say I'm holding down the mouse button.
alias -button say I've released the mouse button.
bind mouse1 +button<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
This time, when you press the mouse button, you will say "I'm holding down the mouse button." (you'll only say it once). When you release the mouse button, you will say "I've released the mouse button.".
If you're going to fiddle with this stuff, it's a good idea to create a file called "stop.cfg" in your NS folder (or the folder of whatever mod you're working with) which has in it something like:
<!--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-->-attack
-jump
-duck
-attack2
-use
//(etc)
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
This way, whenever you've stuffed up an alias so that you don't stop firing (or jumping, or crouching, or whatever), you just have to open the console and enter "exec stop.cfg" to fix the problem. Well, it won't fix your alias (of course), but it will.... ah, you know what I mean <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->