A Simple-ish Script - Plz Help!
sean6
Join Date: 2004-05-19 Member: 28754Members
ok im trying to get a script that im gonna use while a Fade. what i want is to bind my middle mouse button (mouse3) so it switches to the fade's blink weapon (the one that makes you move fast) and uses it until i let go then switch back to the prev weapon.
so far i got:
<!--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-->alias blinkOn "slot2;+attack;wait;-attack;alias +blinky +attack"
alias +blinky "blinkOn"
alias -blinky "invprev;+attack;wait-attack;alias +blinky blinkOn"
bind MOUSE3 "+blinky"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
the whole slot2;+attack;wait;-attack; changes to the slot2 quickly. its got some problems - any help???
so far i got:
<!--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-->alias blinkOn "slot2;+attack;wait;-attack;alias +blinky +attack"
alias +blinky "blinkOn"
alias -blinky "invprev;+attack;wait-attack;alias +blinky blinkOn"
bind MOUSE3 "+blinky"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
the whole slot2;+attack;wait;-attack; changes to the slot2 quickly. its got some problems - any help???
Comments
even one press would work, and it seems like a good idea to me.
i just find it annoying when i wanna run down a hallway i have to change weapon, then use it, then change back. as i use blink in such short bursts it gets annoying.
if any one wants the script then here it is (LET ME KNOW IF THERE ARE ANY PROBLEMS WITH IT):-
<!--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-->alias changeToBlink "slot2; +attack; wait; -attack"
alias changeBack "lastinv"
alias +blinky "changeToBlink; +attack"
alias -blinky "-attack; changeBack"
bind MOUSE3 "+blinky"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
skulks - allows you to parisite a marine and switch back to biting all in a second
jup
long lives the default .cfg <!--emo&::marine::--><img src='http://www.unknownworlds.com/forums/html//emoticons/marine.gif' border='0' style='vertical-align:middle' alt='marine.gif' /><!--endemo-->
I guess I'm lazy, then. I have a script that Fastswiches marine slot 4 weapons. <!--emo&???--><img src='http://www.unknownworlds.com/forums/html//emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif' /><!--endemo-->
<!--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-->
//Fast Blink
alias +fast_blink "weapon_blink; w4; +attack"
alias -fast_blink "-attack; lastinv"
alias w4 "w;w;w;w"
alias w "wait"
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
The addition of a few extra waits will prevent the common problem with these type of scripts of the previous weapon firing. (caused by lag) Also, using the actuall weapon switch name weapon_blink prevents it from being used accidentally on other weapons, such as the marines pistol.
alias +blinky "weapon_blink;wait;+attack"
alias -blinky "-attack;wait;invprev"
bind MOUSE3 +blinky
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
you main problem was the quotes around your bind.. making it run one command and not + is and - it on button push and release...
that should work... it will blink when u hold mouse3 and go back to swipe or whatever when you let go...
im not sure on the name of the quickswitch command but you have to set it to 1
this is a realy simple script... stop making it so complicated, the cleaner the better... 4 waits means 1/15 to 1/5 of a second will be used depending on fps..
i've never had any probs with waits so i only ever use one wait.
the scripts dont really need to be clean, HL can cope with some really compicated and messy stuff. even the source code ain't exaclty clean as a bean. lol.
alias +blinky "weapon_blink;wait;+attack"
alias -blinky "-attack;wait;invprev"
bind MOUSE3 +blinky
<!--c2--></td></tr></table><div class='postcolor'><!--ec2--> <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
If you use the weapon_blink command, there is no need for hud_fastswitch to be on, and im pretty sure its fastswitch not quickswitch.
Also, using invprev will switch you back to swipe, even if you were using acid or meta before, thats why I prefer lastinv.
I understand what this is supposed to do. But what i dont understand is how to make it work.
Do i just.. make a file for everything?
Blinky
Changeto
Etc etc