Help - Search - Members - Calendar
Full Version: A Simple-ish Script - Plz Help!
Unknown Worlds Forums > Natural Selection > Natural Selection Creation > NS Customization
sean6
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:

CODE
alias blinkOn "slot2;+attack;wait;-attack;alias +blinky +attack"
alias +blinky "blinkOn"
alias -blinky "invprev;+attack;wait-attack;alias +blinky blinkOn"

bind MOUSE3 "+blinky"


the whole slot2;+attack;wait;-attack; changes to the slot2 quickly. its got some problems - any help???
Drake1
it annoys me when fades do that :[
Jim
it'd be poor to use anyway, I mean I very rarely hold down on blink at all wow.gif
BAshh
QUOTE (Jim @ May 19 2004, 04:44 AM)
it'd be poor to use anyway, I mean I very rarely hold down on blink at all wow.gif

even one press would work, and it seems like a good idea to me.
sean6
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):-

CODE
alias changeToBlink "slot2; +attack; wait; -attack"
alias changeBack "lastinv"

alias +blinky "changeToBlink; +attack"
alias -blinky "-attack; changeBack"

bind MOUSE3 "+blinky"
sean6
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
Chrono
i think thats pretty good for lerk gas and keep biting!
Drake1
scripts are for lazy ppl :B
sean6
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. smile.gif
FunkyFungus
QUOTE (-=[Drake]=- @ May 19 2004, 12:53 PM)
scripts are for lazy ppl :B

jup

long lives the default .cfg marine.gif
Ashaman_Joe
QUOTE (-=[Drake]=- @ May 19 2004, 02:53 AM)
scripts are for lazy ppl :B

I guess I'm lazy, then. I have a script that Fastswiches marine slot 4 weapons. confused.gif
Urd
That's a bit of a hard way of doing it. Here's a simplified version.
CODE

//Fast Blink
alias +fast_blink "weapon_blink; w4; +attack"
alias -fast_blink "-attack; lastinv"
alias w4 "w;w;w;w"
alias w "wait"

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.
sean6
it works great with other alien classes (even gorge) thats why it's "slot2" not "weapon blink".
niftyguy
CODE
hud_quickswitch "1"
alias +blinky "weapon_blink;wait;+attack"
alias -blinky "-attack;wait;invprev"
bind MOUSE3 +blinky


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..
sean6
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.
Urd
QUOTE (niftyguy @ May 19 2004, 07:09 AM)
CODE
hud_quickswitch "1"
alias +blinky "weapon_blink;wait;+attack"
alias -blinky "-attack;wait;invprev"
bind MOUSE3 +blinky

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.
MistaMojo
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_Picard
hmm... so wait, just push the mousewheel down and you blink + swipe confused.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.