Ew's Ns Scripts
EnemyWithin
Join Date: 2002-11-03 Member: 5572Members
<div class="IPBDescription">Simplify alien and marine weapons</div> I spent a bit of time working on scripting the various weapons. Maybe someone else will find them useful <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo--> Don't forget to change the bind buttons (if necessary).
These scripts require the following aliases (put in autoexec.cfg). These were written by someone else for TFC scripts (I can't remember who):
alias shortwait "wait;wait;wait;wait"
alias medwait "shortwait;shortwait"
alias longwait "medwait;medwait;medwait"
*EDIT* Also, make sure you put this in the autoexec.cfg:
hud_fastswitch 1
Skulk -
//Parasite (push down button to load parasite weapon, aim with mouse, release button to launch parasite and switch back to bite attack)
alias +qparasite "slot2"
alias -qparasite "+attack; wait; -attack; shortwait; slot1"
bind MOUSE3 +qparasite
//Leap (push button to leap and it automatically switches back to bite attack...if you hold the button down it will do multiple leaps)
alias +qleap "slot3; medwait; +attack"
alias -qleap "-attack; slot1"
bind ALT +qleap
//Xenocide (one suicide button does it for you...automatically switches to leap, so you can push the mouse1 button to do a quick leap before you detonate)
bind SPACE "slot4; medwait; +attack; shortwait; -attack; shortwait; slot3"
Gorge -
//Heal (push button to start healing, release button to stop and switch back to main attack)
alias +qheal "slot2; shortwait; +attack"
alias -qheal "-attack; slot1"
bind SPACE +qheal
//Web (hold down button to load web weapon, press mouse1 to fire webs, release button to switch back to main attack)
alias +qweb "slot3"
alias -qweb "slot1"
bind ALT +qweb
//Babblers (hold button down to release babblers, release button to switch back to main weapon).
alias +qbabblers "slot4; longwait; +attack"
alias -qbabblers "-attack; slot1"
bind MOUSE3 +qbabblers
//Build Commands:
bind INS "impulse 90;say_team Building Resource Tower"
bind HOME "impulse 91;say_team Building Offense Chamber"
bind PGUP "impulse 95;say_team Building New Hive"
bind PGDN "impulse 93;say_team Building Sensory Chamber"
bind DEL "impulse 92;say_team Building Defense Chamber"
bind END "impulse 94;say_team Building Movement Chamber"
Lerk -
//Spikes (push button to launch a stream of spikes, release button to stop spikes and switch back to bite attack)
alias +qspikes "slot2; medwait; +attack"
alias -qspikes "-attack; slot1"
bind ALT +qspikes
//Umbra (push button to emit umbra, automatically switches back to bite attack)
bind SPACE "slot3; longwait; +attack; shortwait; -attack; shortwait; slot1"
//Poison Spores (hold button to load poison spores weapon, aim and then release to launch spores and automatically switch back to bite attack)
alias +qpoison "slot4"
alias -qpoison "+attack; medwait; -attack; wait; slot1"
bind MOUSE3 +qpoison
Fade -
//Acid Rockets (while you are holding down the button you can use mouse1 to shoot rockets, releasing the button switches you back to main attack)
alias +qacid "slot2"
alias -qacid "slot1"
bind SPACE +qacid
//Blink (hold button to aim and then release to blink, automatically switches back to main attack)
alias +qblink "slot3"
alias -qblink "+jump; +duck; shortwait; +attack; wait; -jump; -duck; -attack; slot1"
bind ALT +qblink
//Bile Bomb (hold button to launch bile bombs, release to switch back to main attack)
alias +qbile "slot4; longwait; +attack"
alias -qbile "-attack; slot1"
bind MOUSE3 +qbile
Onos -
//Paralyze (hold down button for continuous attack, release to switch back to main attack)
alias +qpara "slot2; medwait; +attack"
alias -qpara "-attack; slot1"
bind ALT +qpara
//Primal Scream (push button for primal scream, automatically switches back to main attack)
bind SPACE "slot4; longwait; +attack; wait; -attack; shortwait; slot1"
//Charge (push button for charge, it automatically switches back to main attack)
bind MOUSE3 "slot3; longwait; longwait; +attack; longwait; longwait; longwait; -attack; slot1"
Marines -
//Slot2 Weapon (Pistol, Welder...hold down button to bring up weapon and then use mouse1 to attack like normal, release button to switch back to slot1 weapon)
alias +qslot2 "slot2"
alias -qslot2 "slot1"
bind ALT "+qslot2"
//Knife (push button to switch to knife and do continuous attack, release button to stop attack and switch back to slot1 weapon)
alias +knife "slot3; medwait; +attack"
alias -knife "-attack; slot1"
bind SPACE "+knife"
//Mines (press button to plant one mine and switch back to slot1 weapon)
bind MOUSE3 "slot2; longwait; +attack; medwait; -attack; slot1"
These scripts require the following aliases (put in autoexec.cfg). These were written by someone else for TFC scripts (I can't remember who):
alias shortwait "wait;wait;wait;wait"
alias medwait "shortwait;shortwait"
alias longwait "medwait;medwait;medwait"
*EDIT* Also, make sure you put this in the autoexec.cfg:
hud_fastswitch 1
Skulk -
//Parasite (push down button to load parasite weapon, aim with mouse, release button to launch parasite and switch back to bite attack)
alias +qparasite "slot2"
alias -qparasite "+attack; wait; -attack; shortwait; slot1"
bind MOUSE3 +qparasite
//Leap (push button to leap and it automatically switches back to bite attack...if you hold the button down it will do multiple leaps)
alias +qleap "slot3; medwait; +attack"
alias -qleap "-attack; slot1"
bind ALT +qleap
//Xenocide (one suicide button does it for you...automatically switches to leap, so you can push the mouse1 button to do a quick leap before you detonate)
bind SPACE "slot4; medwait; +attack; shortwait; -attack; shortwait; slot3"
Gorge -
//Heal (push button to start healing, release button to stop and switch back to main attack)
alias +qheal "slot2; shortwait; +attack"
alias -qheal "-attack; slot1"
bind SPACE +qheal
//Web (hold down button to load web weapon, press mouse1 to fire webs, release button to switch back to main attack)
alias +qweb "slot3"
alias -qweb "slot1"
bind ALT +qweb
//Babblers (hold button down to release babblers, release button to switch back to main weapon).
alias +qbabblers "slot4; longwait; +attack"
alias -qbabblers "-attack; slot1"
bind MOUSE3 +qbabblers
//Build Commands:
bind INS "impulse 90;say_team Building Resource Tower"
bind HOME "impulse 91;say_team Building Offense Chamber"
bind PGUP "impulse 95;say_team Building New Hive"
bind PGDN "impulse 93;say_team Building Sensory Chamber"
bind DEL "impulse 92;say_team Building Defense Chamber"
bind END "impulse 94;say_team Building Movement Chamber"
Lerk -
//Spikes (push button to launch a stream of spikes, release button to stop spikes and switch back to bite attack)
alias +qspikes "slot2; medwait; +attack"
alias -qspikes "-attack; slot1"
bind ALT +qspikes
//Umbra (push button to emit umbra, automatically switches back to bite attack)
bind SPACE "slot3; longwait; +attack; shortwait; -attack; shortwait; slot1"
//Poison Spores (hold button to load poison spores weapon, aim and then release to launch spores and automatically switch back to bite attack)
alias +qpoison "slot4"
alias -qpoison "+attack; medwait; -attack; wait; slot1"
bind MOUSE3 +qpoison
Fade -
//Acid Rockets (while you are holding down the button you can use mouse1 to shoot rockets, releasing the button switches you back to main attack)
alias +qacid "slot2"
alias -qacid "slot1"
bind SPACE +qacid
//Blink (hold button to aim and then release to blink, automatically switches back to main attack)
alias +qblink "slot3"
alias -qblink "+jump; +duck; shortwait; +attack; wait; -jump; -duck; -attack; slot1"
bind ALT +qblink
//Bile Bomb (hold button to launch bile bombs, release to switch back to main attack)
alias +qbile "slot4; longwait; +attack"
alias -qbile "-attack; slot1"
bind MOUSE3 +qbile
Onos -
//Paralyze (hold down button for continuous attack, release to switch back to main attack)
alias +qpara "slot2; medwait; +attack"
alias -qpara "-attack; slot1"
bind ALT +qpara
//Primal Scream (push button for primal scream, automatically switches back to main attack)
bind SPACE "slot4; longwait; +attack; wait; -attack; shortwait; slot1"
//Charge (push button for charge, it automatically switches back to main attack)
bind MOUSE3 "slot3; longwait; longwait; +attack; longwait; longwait; longwait; -attack; slot1"
Marines -
//Slot2 Weapon (Pistol, Welder...hold down button to bring up weapon and then use mouse1 to attack like normal, release button to switch back to slot1 weapon)
alias +qslot2 "slot2"
alias -qslot2 "slot1"
bind ALT "+qslot2"
//Knife (push button to switch to knife and do continuous attack, release button to stop attack and switch back to slot1 weapon)
alias +knife "slot3; medwait; +attack"
alias -knife "-attack; slot1"
bind SPACE "+knife"
//Mines (press button to plant one mine and switch back to slot1 weapon)
bind MOUSE3 "slot2; longwait; +attack; medwait; -attack; slot1"
Comments
Good Job!