A Simple-ish Script - Plz Help!

sean6sean6 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???

Comments

  • -Drake--Drake- -dn ʎɐʍ sıɥʇ- Join Date: 2003-04-02 Member: 15125Members
    it annoys me when fades do that :[
  • JimJim Join Date: 2002-11-26 Member: 9989Members
    it'd be poor to use anyway, I mean I very rarely hold down on blink at all <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html//emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif' /><!--endemo-->
  • BAshhBAshh Join Date: 2003-08-26 Member: 20222Members, NS1 Playtester, Contributor
    <!--QuoteBegin-Jim+May 19 2004, 04:44 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Jim @ May 19 2004, 04:44 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> it'd be poor to use anyway, I mean I very rarely hold down on blink at all <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html//emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif' /><!--endemo--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    even one press would work, and it seems like a good idea to me.
  • sean6sean6 Join Date: 2004-05-19 Member: 28754Members
    oh well i got it to work (i think).

    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-->
  • sean6sean6 Join Date: 2004-05-19 Member: 28754Members
    ok i just realised that this script works well with all other alien classes like
    skulks - allows you to parisite a marine and switch back to biting all in a second
  • ChronoChrono Local flyboy Join Date: 2003-08-05 Member: 18989Members
    i think thats pretty good for lerk gas and keep biting!
  • -Drake--Drake- -dn ʎɐʍ sıɥʇ- Join Date: 2003-04-02 Member: 15125Members
    edited May 2004
    scripts are for lazy ppl :B
  • sean6sean6 Join Date: 2004-05-19 Member: 28754Members
    i've just been playing with it and its great when your a fade and you wanna make a quick getaway or hit'n'run. also now when i'm a skulk i parasite the marine a second before i bite his head off, just incase i die - then i can respawn and finish him off. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
  • FunkyFungusFunkyFungus Join Date: 2003-09-09 Member: 20691Members
    <!--QuoteBegin--=[Drake]=-+May 19 2004, 12:53 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (-=[Drake]=- @ May 19 2004, 12:53 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> scripts are for lazy ppl :B <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    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-->
  • Ashaman_JoeAshaman_Joe Join Date: 2003-11-11 Member: 22559Members, Constellation
    <!--QuoteBegin--=[Drake]=-+May 19 2004, 02:53 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (-=[Drake]=- @ May 19 2004, 02:53 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> scripts are for lazy ppl :B <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    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-->
  • UrdUrd Join Date: 2003-05-25 Member: 16696Members, Constellation
    edited May 2004
    That's a bit of a hard way of doing it. Here's a simplified version.
    <!--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.
  • sean6sean6 Join Date: 2004-05-19 Member: 28754Members
    it works great with other alien classes (even gorge) thats why it's "slot2" not "weapon blink".
  • niftyguyniftyguy Join Date: 2003-11-13 Member: 22812Members
    edited May 2004
    <!--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-->hud_quickswitch "1"
    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..
  • sean6sean6 Join Date: 2004-05-19 Member: 28754Members
    yeah as i said i got it sorted now.

    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.
  • UrdUrd Join Date: 2003-05-25 Member: 16696Members, Constellation
    edited May 2004
    <!--QuoteBegin-niftyguy+May 19 2004, 07:09 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (niftyguy @ May 19 2004, 07:09 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--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-->hud_quickswitch "1"
    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.
  • MistaMojoMistaMojo Join Date: 2004-03-22 Member: 27484Members
    Can someone please give me a tutorial on how this works lol.
    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
  • Jean_Luc_PicardJean_Luc_Picard Join Date: 2003-02-03 Member: 13051Members
    hmm... so wait, just push the mousewheel down and you blink + swipe <!--emo&???--><img src='http://www.unknownworlds.com/forums/html//emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif' /><!--endemo-->
Sign In or Register to comment.