Combat Upgrade Scripts
SpaceJesus
Join Date: 2004-07-02 Member: 29683Banned
<div class="IPBDescription">Metabind Numberpad Scripts</div> I got bored with using the pop-up menu to get upgrades in combat, so I wrote 4 metabind scripts for the keypad.
Basically,when you hold down the minus key, it binds all your keypad keys to an upgrade, there are more than 9 upgrades so I wrote a separate script for the keypad plus key, binding the other 9 upgrades.
Copy and paste this into your userconfig.cfg and it'll work straight off the bat, all you need to do is configure the "bindreturn" alias to what your numberpad keys normally are.
<!--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-->
//Marine Scripts
//Scripts written by SpaceJesus - All Original Scripts
//Combat Metabind Toggles
alias combatm1 "bind kp_plus +upgrades1"
alias combatm2 "bind kp_minus +upgrades2"
bind F9 "combatm1; combatm2"
//Combat Upgrade Metabind Scripts
alias +upgrades1 "bind kp_end armour1; bind kp_downarrow armour2; bind kp_pgdn armour3; bind kp_leftarrow weapons1; bind kp_5 weapons2; bind kp_rightarrow weapons3; bind kp_home shotgun; bind kp_uparrow hmg; bind kp_pgup gl"
alias -upgrades1 "bindreturn"
alias +upgrades2 "bind kp_end mine; bind kp_downarrow welder; bind kp_pgdn handnade; bind kp_leftarrow resup; bind kp_home catpack; bind kp_rightarrow ha; bind kp_5 mt; bind kp_uparrow scaner; bind kp_pgup jp"
alias -upgrades2 "bindreturn"
alias weapons1 "impulse 23"
alias weapons2 "impulse 24"
alias weapons3 "impulse 25"
alias armour1 "impulse 20"
alias armour2 "impulse 21"
alias armour3 "impulse 22"
alias shotgun "impulse 64"
alias hmg "impulse 65"
alias gl "impulse 66"
alias resup "impulse 31"
alias catpack "impulse 27"
alias ha "impulse 38"
alias jp "impulse 39"
alias mine "impulse 61"
alias welder "impulse 62"
alias handnade "impulse 37"
alias mt "impulse 33"
alias scanner "impulse 53"
//Alien Scripts
//Scripts written by SpaceJesus - All Original Scripts
//Metabind Toggles
alias upgrades "bind kp_plus +upgrades"
alias lifeforms "bind kp_minus +lifeforms"
bind F10 "upgrades; lifeforms"
//Metabind Lifeform Script
alias +lifeforms "bind home skulk; bind kp_uparrow gorge; bind kp_pgup lerk; bind kp_rightarrow fade; bind kp_pgdn onos"
alias fade "impulse 116; say_team I'm Gestating to Fade"
alias skulk "impulse 113; say_team I'm Gestating to Skulk"
alias lerk "impulse 115; say_team I'm Gestating to Lerk"
alias gorge "impulse 114; say_team I'm Gestating to Gorge"
alias onos "impulse 117; say_team I'm Gestating to Onos"
alias -lifeforms "bindreturn"
//Metabind Upgrade Script
alias +upgrades "bind kp_end impulse 101; bind kp_downarrow impulse 102; bind kp_pgdn impulse 103; bind kp_leftarrow impulse 107; bind kp_5 impulse 108; bind kp_rightarrow impulse 109; bind kp_home impulse 110 bind kp_uparrow impulse 111; bind kp_pgup impulse 112"
alias -upgrades "bindreturn"
bind F11 "bindreturn"
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
So when you've copied and pasted that, add the "alias bindreturn" command, and set the syntax to bind your numberpad keys to what they normally are, if they are not bound to anything normally, use the "unbind" command to bind them to do nothing.
For reference I'll add my bindreturn alias to give you an example.
<!--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 bindreturn "bind kp_end slot2; bind kp_downarrow slot3; bind kp_leftarrow slot1; bind kp_5 slot4; bind kp_home +showmap; unbind kp_rightarrow; unbind kp_uparrow; unbind kp_pgup; unbind kp_pgdn"
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
As the script stands, F9 will set your keypad up for marine upgrades, F10 will set it up for alien upgrades, and F11 will return your keypad to normal binds (eg for when playing an NS map)
Key binds are as follows:
<b><u>Marines</u></b>
(+1 = hold keypad plus and press one)
(-1 = hold keypad minus and press one)
+1 = armour 1
+2 = armour 2
+3 = armour 3
+4 = weapons 1
+5 = weapons 2
+6 = weapons 3
+7 = shotgun
+8 = HMG
+9 = GL
-1 = Mines
-2 = Welder
-3 = Hand Grenades
-4 = Resupply
-5 = Scanner
-6 = Heavy Armour
-7 = Catalyst Packs
-8 = Motion Tracking
-9 = Jetpack
<b><u>Aliens</u></b>
(+1 = hold keypad plus and press one)
(-1 = hold keypad minus and press one)
+1 = Carapace
+2 = Regeneration
+3 = Redemption
+4 = Celerity
+5 = Adrenaline
+6 = Silence
+7 = Cloaking
+8 = Focus
+9 = Scent of Fear
-3 = Onos
-6 = Fade
-7 = Skulk
-8 = Gorge
-9 = Lerk
The only upgrade missing is the alien hive 2 and 3 attacks, for the sole reason that I can't find the correct impulses for it. If anyone knows the impulses please post them and I'll add them to the script.
(Don't forget to set up the bindreturn alias)
C&C plz, and point out any typos <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->
*awaits CWaG's approval*
Basically,when you hold down the minus key, it binds all your keypad keys to an upgrade, there are more than 9 upgrades so I wrote a separate script for the keypad plus key, binding the other 9 upgrades.
Copy and paste this into your userconfig.cfg and it'll work straight off the bat, all you need to do is configure the "bindreturn" alias to what your numberpad keys normally are.
<!--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-->
//Marine Scripts
//Scripts written by SpaceJesus - All Original Scripts
//Combat Metabind Toggles
alias combatm1 "bind kp_plus +upgrades1"
alias combatm2 "bind kp_minus +upgrades2"
bind F9 "combatm1; combatm2"
//Combat Upgrade Metabind Scripts
alias +upgrades1 "bind kp_end armour1; bind kp_downarrow armour2; bind kp_pgdn armour3; bind kp_leftarrow weapons1; bind kp_5 weapons2; bind kp_rightarrow weapons3; bind kp_home shotgun; bind kp_uparrow hmg; bind kp_pgup gl"
alias -upgrades1 "bindreturn"
alias +upgrades2 "bind kp_end mine; bind kp_downarrow welder; bind kp_pgdn handnade; bind kp_leftarrow resup; bind kp_home catpack; bind kp_rightarrow ha; bind kp_5 mt; bind kp_uparrow scaner; bind kp_pgup jp"
alias -upgrades2 "bindreturn"
alias weapons1 "impulse 23"
alias weapons2 "impulse 24"
alias weapons3 "impulse 25"
alias armour1 "impulse 20"
alias armour2 "impulse 21"
alias armour3 "impulse 22"
alias shotgun "impulse 64"
alias hmg "impulse 65"
alias gl "impulse 66"
alias resup "impulse 31"
alias catpack "impulse 27"
alias ha "impulse 38"
alias jp "impulse 39"
alias mine "impulse 61"
alias welder "impulse 62"
alias handnade "impulse 37"
alias mt "impulse 33"
alias scanner "impulse 53"
//Alien Scripts
//Scripts written by SpaceJesus - All Original Scripts
//Metabind Toggles
alias upgrades "bind kp_plus +upgrades"
alias lifeforms "bind kp_minus +lifeforms"
bind F10 "upgrades; lifeforms"
//Metabind Lifeform Script
alias +lifeforms "bind home skulk; bind kp_uparrow gorge; bind kp_pgup lerk; bind kp_rightarrow fade; bind kp_pgdn onos"
alias fade "impulse 116; say_team I'm Gestating to Fade"
alias skulk "impulse 113; say_team I'm Gestating to Skulk"
alias lerk "impulse 115; say_team I'm Gestating to Lerk"
alias gorge "impulse 114; say_team I'm Gestating to Gorge"
alias onos "impulse 117; say_team I'm Gestating to Onos"
alias -lifeforms "bindreturn"
//Metabind Upgrade Script
alias +upgrades "bind kp_end impulse 101; bind kp_downarrow impulse 102; bind kp_pgdn impulse 103; bind kp_leftarrow impulse 107; bind kp_5 impulse 108; bind kp_rightarrow impulse 109; bind kp_home impulse 110 bind kp_uparrow impulse 111; bind kp_pgup impulse 112"
alias -upgrades "bindreturn"
bind F11 "bindreturn"
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
So when you've copied and pasted that, add the "alias bindreturn" command, and set the syntax to bind your numberpad keys to what they normally are, if they are not bound to anything normally, use the "unbind" command to bind them to do nothing.
For reference I'll add my bindreturn alias to give you an example.
<!--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 bindreturn "bind kp_end slot2; bind kp_downarrow slot3; bind kp_leftarrow slot1; bind kp_5 slot4; bind kp_home +showmap; unbind kp_rightarrow; unbind kp_uparrow; unbind kp_pgup; unbind kp_pgdn"
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
As the script stands, F9 will set your keypad up for marine upgrades, F10 will set it up for alien upgrades, and F11 will return your keypad to normal binds (eg for when playing an NS map)
Key binds are as follows:
<b><u>Marines</u></b>
(+1 = hold keypad plus and press one)
(-1 = hold keypad minus and press one)
+1 = armour 1
+2 = armour 2
+3 = armour 3
+4 = weapons 1
+5 = weapons 2
+6 = weapons 3
+7 = shotgun
+8 = HMG
+9 = GL
-1 = Mines
-2 = Welder
-3 = Hand Grenades
-4 = Resupply
-5 = Scanner
-6 = Heavy Armour
-7 = Catalyst Packs
-8 = Motion Tracking
-9 = Jetpack
<b><u>Aliens</u></b>
(+1 = hold keypad plus and press one)
(-1 = hold keypad minus and press one)
+1 = Carapace
+2 = Regeneration
+3 = Redemption
+4 = Celerity
+5 = Adrenaline
+6 = Silence
+7 = Cloaking
+8 = Focus
+9 = Scent of Fear
-3 = Onos
-6 = Fade
-7 = Skulk
-8 = Gorge
-9 = Lerk
The only upgrade missing is the alien hive 2 and 3 attacks, for the sole reason that I can't find the correct impulses for it. If anyone knows the impulses please post them and I'll add them to the script.
(Don't forget to set up the bindreturn alias)
C&C plz, and point out any typos <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->
*awaits CWaG's approval*
Comments
Also I doubt the "Im gestating to skulk" bind is needed.
impulse 126 - hive 3 ability
have fun ? <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->