.seVered.][
12-21-2012, 02:08 AM
#CodeReview IRC Channel (http://webchat.globalgamers.net/?nick=uKGuest&channels=CodeReview)
Link to SiegeIV keybind commands (http://www.r0t.co.uk/paste/p/B7s7Tf86.html)
Programming Siege KeyBinds:
To set keybinds, use the System Console. Start UnrealTournament and press ESC. There are 2 Parts to set a Keybind. The command to set the key with the command you want, and the commands that executes when you push the key.
Set Input <Key> <Command> | <Command>
The First Part [SET INPUT <KEY>]
Pick a key that you want your build to be on and relace the <KEY> with the system identifier in the command. Typically it will be a letter or an abbreviated name, CTRL, Alt, PageDown, NumPad3, GreyStar, GreyPlus, GreyMinus, GreySlash, Shift, RightBracket. Here is an example of the first half of the command. *Note: This command by itself will Clear the Key M so it does nothing.
Set Input M
The Second Part [<COMMAND> | <COMMAND>]
This will be the Build command for the Siege Constructor. Siege Buildings are constructed with 2 parts. First, you set the Mode of the Constructor using 2 numbers that identify what you want to build [SetMode X Y] and then you execute the Build using the ‘Buildit’ command. Which looks like this:
SetMode X Y | Buildit
Find the numbers for X and Y that are next to the Item you want to build in 'The Siege Items Chart'.
The Siege Builds are a set of Items grouped by Category. Each Category, or X, and Item, or Y has a number assigned to it to identify the Item to build.
Category is the X value, Item is the Y value.
Find the Item you want to build in the Chart below (Siege Items Chart). Change the X and Y to the numbers that are next to the Item that want to build. Combine the First Part and the Second Part into one line. This example Builds a mine when you press the M key.
Set Input M SetMode 9 0 | Buildit
To set the Keybind into your players controls by typing the above command in the UT Console, using the Numbers from the Chart for X and Y and the letter you picked in place of <key>. .
Example:
I want to build a MINE with the M key, which is the first Item in the Explosives Category. Explosives is category 9 and the Mine is number 0 (ZERO!) Item numbers start at ZERO not 1! So the X and Y for the ‘SetMode’ command is 9 0 and the whole command would look like this.
Set Input M SetMode 9 0 | Buildit
Open the Console by pressing the Tilde key (~), located under the ESC on the top left side of the keyboard. Type the command exactly as you see it. Make sure you get the command separator key right | this key is usually on the Shift-Backslash key, right above the Enter key. This will build a Mine every time you press the M key.
The first 3 Build Items are for Upgrading and Repairing Teammates and Builds.
X Y Command
0 0 Upgrade - Upgrade a teammate, pass RU, or increase a Builds Level.
1 0 Repair - Repairs a teammate or Builds Health.
2 0 Remove - Removes a Build, half (½ ) of the RU is returned to who built it.
3 0 Reserved - Do not use
For Example; to bind 'Upgrade' on the U key:
Set Input U SetMode 0 0 | Buildit
Siege Items Chart
Siege Build Categories [value for X]
Fortifications [4]
Supplies [5]
Special Items[6]
Weapons [7]
Teleport [8]
Explosives [9]
Suits [10]
Fortifications Category [4]
X Y Description
4 0 Container
4 1 Super Container
4 2 Booster
4 3 Super Booster
4 4 Super Protector
4 5 Poison Guardian
4 6 Platform
4 7 Mini Shield
4 8 ForceField
Supplies Category [5]
X Y Description
5 0 Supplier
5 1 Super Supplier
5 2 Super Health Pod
Special Items Category [6]
X Y Description
6 0 Shield Belt
6 1 Jump Boots
6 2 Speed
6 3 Invisibility
6 4 Damage Amplifier
Weapons Category [7]
X Y Description
7 0 Hyper Leecher
7 1 ASMD Pulse Rifle
7 2 Warhead
7 3 Invincible Warhead
Teleport Category [8]
X Y Description
8 0 Teleporter
8 1 Tele-Network
8 2 Translocator
Explosives Category [9]
X Y Description
9 0 Mine
9 1 Super Mine
9 2 Rocket Cannon
9 3 Bio Bomb
9 4 Mortar Bomb
9 5 EMP Bomb
9 6 Neutron Bomb
Suits Category [10]
X Y Description
10 0 Jet Pack
10 1 Super Jet Pack
10 2 Toxin Suit
10 3 Asbestos Suit
10 4 Scuba Gear
This Chart shows the numbers that determine what the Constructor will build with the keybind. Use the numbers next to the item you want to build in place of the X and Y in the SetMode X Y | Buildit section of the keybind command.
Weapon Binds: You can group 2 Weapons on each key.
Set the bind with ‘Set Input <key>' command and the pick the weapons from theWeapon Chart and replace the
'<COMMANDS> | <COMMANDS>' with GetWeapon <WeaponName> command of your choice.
To set the SniperRifle and UT_Eightball to the E key
Set Input E Mutate getweapon zp_SniperRifle | getweapon UT_Eightball
To set the sgMiniGun and the Ripper to the F key
Set Input F Getweapon sgMinigun | getweapon Ripper
To set the UT_BioRifle and zp_ShockRifle to the C key
Set Input C getweapon ut_BioRifle | Getweapon zp_ShockRifle
Weapon Chart[/B]
Getweapon sgNukeLauncher
Getweapon sgTranslocator
Getweapon Chainsaw
Getweapon ImpactHammer
Getweapon zp_Enforcer
Getweapon UT_FlakCannon
Getweapon UT_BioRifle
Getweapon sgPulseGun
Getweapon Ripper
Getweapon sgMinigun
Getweapon zp_ShockRifle
Getweapon UT_Eightball
Mutate getweapon zp_SniperRifle
Advanced Keybinds:
You can combine keybinds to make them more descriptive and functional. For example, take the build a Super Protector bind and expand it to include a notice for the team to upgrade the item that you just built.
Set Input P SetMode 4 4 | Buildit | TeamSay Upgrade this SuperProtector<
This bind will set the constructor to a Build Item and switch or open the Constructor. This will set the position to the Explosives Item-Mine and then display the Constructor.
SetMode 9 0 | GetWeapon sgConstructor
You can also combine weapons onto one key, like the "Special" Weapon's; to switch directly to them, if you get one.
Set Input G GetWeapon SiegeInstaGibRifle | GetWeapon HyperLeecher
OR…
Set input G GetWeapon AsmdPulseRifle | GetWeapon FlameThrower
For a more information about Unreal binds, follow this Link:
[URL="http://wiki.beyondunreal.com/Legacy:Binding_Keys"]
Link to SiegeIV keybind commands (http://www.r0t.co.uk/paste/p/B7s7Tf86.html)
Programming Siege KeyBinds:
To set keybinds, use the System Console. Start UnrealTournament and press ESC. There are 2 Parts to set a Keybind. The command to set the key with the command you want, and the commands that executes when you push the key.
Set Input <Key> <Command> | <Command>
The First Part [SET INPUT <KEY>]
Pick a key that you want your build to be on and relace the <KEY> with the system identifier in the command. Typically it will be a letter or an abbreviated name, CTRL, Alt, PageDown, NumPad3, GreyStar, GreyPlus, GreyMinus, GreySlash, Shift, RightBracket. Here is an example of the first half of the command. *Note: This command by itself will Clear the Key M so it does nothing.
Set Input M
The Second Part [<COMMAND> | <COMMAND>]
This will be the Build command for the Siege Constructor. Siege Buildings are constructed with 2 parts. First, you set the Mode of the Constructor using 2 numbers that identify what you want to build [SetMode X Y] and then you execute the Build using the ‘Buildit’ command. Which looks like this:
SetMode X Y | Buildit
Find the numbers for X and Y that are next to the Item you want to build in 'The Siege Items Chart'.
The Siege Builds are a set of Items grouped by Category. Each Category, or X, and Item, or Y has a number assigned to it to identify the Item to build.
Category is the X value, Item is the Y value.
Find the Item you want to build in the Chart below (Siege Items Chart). Change the X and Y to the numbers that are next to the Item that want to build. Combine the First Part and the Second Part into one line. This example Builds a mine when you press the M key.
Set Input M SetMode 9 0 | Buildit
To set the Keybind into your players controls by typing the above command in the UT Console, using the Numbers from the Chart for X and Y and the letter you picked in place of <key>. .
Example:
I want to build a MINE with the M key, which is the first Item in the Explosives Category. Explosives is category 9 and the Mine is number 0 (ZERO!) Item numbers start at ZERO not 1! So the X and Y for the ‘SetMode’ command is 9 0 and the whole command would look like this.
Set Input M SetMode 9 0 | Buildit
Open the Console by pressing the Tilde key (~), located under the ESC on the top left side of the keyboard. Type the command exactly as you see it. Make sure you get the command separator key right | this key is usually on the Shift-Backslash key, right above the Enter key. This will build a Mine every time you press the M key.
The first 3 Build Items are for Upgrading and Repairing Teammates and Builds.
X Y Command
0 0 Upgrade - Upgrade a teammate, pass RU, or increase a Builds Level.
1 0 Repair - Repairs a teammate or Builds Health.
2 0 Remove - Removes a Build, half (½ ) of the RU is returned to who built it.
3 0 Reserved - Do not use
For Example; to bind 'Upgrade' on the U key:
Set Input U SetMode 0 0 | Buildit
Siege Items Chart
Siege Build Categories [value for X]
Fortifications [4]
Supplies [5]
Special Items[6]
Weapons [7]
Teleport [8]
Explosives [9]
Suits [10]
Fortifications Category [4]
X Y Description
4 0 Container
4 1 Super Container
4 2 Booster
4 3 Super Booster
4 4 Super Protector
4 5 Poison Guardian
4 6 Platform
4 7 Mini Shield
4 8 ForceField
Supplies Category [5]
X Y Description
5 0 Supplier
5 1 Super Supplier
5 2 Super Health Pod
Special Items Category [6]
X Y Description
6 0 Shield Belt
6 1 Jump Boots
6 2 Speed
6 3 Invisibility
6 4 Damage Amplifier
Weapons Category [7]
X Y Description
7 0 Hyper Leecher
7 1 ASMD Pulse Rifle
7 2 Warhead
7 3 Invincible Warhead
Teleport Category [8]
X Y Description
8 0 Teleporter
8 1 Tele-Network
8 2 Translocator
Explosives Category [9]
X Y Description
9 0 Mine
9 1 Super Mine
9 2 Rocket Cannon
9 3 Bio Bomb
9 4 Mortar Bomb
9 5 EMP Bomb
9 6 Neutron Bomb
Suits Category [10]
X Y Description
10 0 Jet Pack
10 1 Super Jet Pack
10 2 Toxin Suit
10 3 Asbestos Suit
10 4 Scuba Gear
This Chart shows the numbers that determine what the Constructor will build with the keybind. Use the numbers next to the item you want to build in place of the X and Y in the SetMode X Y | Buildit section of the keybind command.
Weapon Binds: You can group 2 Weapons on each key.
Set the bind with ‘Set Input <key>' command and the pick the weapons from theWeapon Chart and replace the
'<COMMANDS> | <COMMANDS>' with GetWeapon <WeaponName> command of your choice.
To set the SniperRifle and UT_Eightball to the E key
Set Input E Mutate getweapon zp_SniperRifle | getweapon UT_Eightball
To set the sgMiniGun and the Ripper to the F key
Set Input F Getweapon sgMinigun | getweapon Ripper
To set the UT_BioRifle and zp_ShockRifle to the C key
Set Input C getweapon ut_BioRifle | Getweapon zp_ShockRifle
Weapon Chart[/B]
Getweapon sgNukeLauncher
Getweapon sgTranslocator
Getweapon Chainsaw
Getweapon ImpactHammer
Getweapon zp_Enforcer
Getweapon UT_FlakCannon
Getweapon UT_BioRifle
Getweapon sgPulseGun
Getweapon Ripper
Getweapon sgMinigun
Getweapon zp_ShockRifle
Getweapon UT_Eightball
Mutate getweapon zp_SniperRifle
Advanced Keybinds:
You can combine keybinds to make them more descriptive and functional. For example, take the build a Super Protector bind and expand it to include a notice for the team to upgrade the item that you just built.
Set Input P SetMode 4 4 | Buildit | TeamSay Upgrade this SuperProtector<
This bind will set the constructor to a Build Item and switch or open the Constructor. This will set the position to the Explosives Item-Mine and then display the Constructor.
SetMode 9 0 | GetWeapon sgConstructor
You can also combine weapons onto one key, like the "Special" Weapon's; to switch directly to them, if you get one.
Set Input G GetWeapon SiegeInstaGibRifle | GetWeapon HyperLeecher
OR…
Set input G GetWeapon AsmdPulseRifle | GetWeapon FlameThrower
For a more information about Unreal binds, follow this Link:
[URL="http://wiki.beyondunreal.com/Legacy:Binding_Keys"]