Author Topic: Keybinding Tutorial  (Read 1219 times)

0 Members and 1 Guest are viewing this topic.

Zeus

  • Community Leaders
  • Registered Forum Member
  • ******
  • Posts: 2067
  • Karma: +13/-2
    • View Profile
Keybinding Tutorial
« on: January 17, 2009, 15:56:57 PM »
0. Preamble
Bindings always work for me. PLEASE FOLLOW EVERY STEP and it will work for you too.

Enjoy!

1. Backup
We'll be altering the UTInput.ini file. Make a backup just in case. Just copy and paste the file in the same spot and it will name the new one "Copy of UTInput.ini".

2. Unbind
First off, you MUST unbind the keys you want to use. All you have to do is open UT3. Open the Settings-->Input menu. Click "Keys" at the bottom of the screen. Set the "Fire" function to the key you wish to use, and then set "Fire" back to the left mouse button (LMB). Voila, the key is now unbound.

3. Bind
Open C:\Documents and Settings\*YourName*\My Documents\My Games\Unreal Tournament 3\UTGame\Config\UTInput.ini.

You must now make a binding for what you want to use. You make the changes in the section marked [Engine.PlayerInput]. There is a section marked [UTGame.UTPlayerInput] with all the same lines, but I'm not totally sure what it's for, and changes to it don't seem to do anything.

Format:
Bindings=(Name="X",Command="Y")
where X is the key you wish to use and Y is the command.

Multiple commands can be piped in, such as change to a weapon plus change mouse sensitivity.

Format:
Bindings=(Name="X",Command="Y | Z")
where X is the key you wish to use, Y is a command and Z is a command. There is a space before and after the pipe "|".

A command is what you enter in the console in game, from "Say" to "GOD" to "Screenshot".

If the key you wish to use isn't already on the list, you can add it. Letters are represented by the capital of said letter, e.g. "K". F keys are represented as such "F8" "F9". Symbols and numbers are represented by the written name of the key, e.g. "Minus" "Comma" "SpaceBar" "seven" "eight". Numpad keys are as such "NumPadZero" "NumPadFive" etc.

When binding a key for the first time I recommend binding a "Say" command because it's simple to test. Once you are sure it's working, you can use any command possible that you can enter in the console while in game.

4. Example
I'm going to bind my "J" key to say "It works!" I made a backup already, so I open UT3 and in the Settings-->Input-->Keys menu I set my "Fire" function to "J". Then I set "Fire" back to LMB. My "J" key is now unbound.

I now open my UTInput.ini file found in My Documents. At the top of the file under [Engine.PlayerInput] I find Bindings=(Name="J",Command="Taunt 1"). Unbinding a key does not clear it's definition in this list for some reason, that's why it's still set to "Taunt 1".
I change the entry to this:
Bindings=(Name="J",Command="Say It works!")
Now I open UT3 and start an Instant Action match and test that bad boy out.

5. What else can I do?
"Say" and "TeamSay" macros are just the beginning. There are many things that can be done. Most popular would be binding weapons to keys.
Bindings=(Name="X",Command="GBA_SwitchWeapon1") where 1 can be any number 0-9 representing each weapon respectively.

You can bind ThrowWeapon, a command that is not in the game by default. WeaponsStay must be off for it to work:
Bindings=(Name="X",Command="ThrowWeapon | teamsay Weapon Dropped")

You can instantly connect to a favorite server:
Bindings=(Name="X",Command="Open xx.xx.xxx.xxx") where x is the IP.

You can bind mouse sensitivity:
Bindings=(Name="X",Command="setsensitivity 20.0") where 20.0 is actually 2000 in the in game settings. Whatever setting you want it to be in game, divide that number by 100 and use that.

You can bind field of view:
Bindings=(Name="X",Command="FOV 100") where 100 can be any number 80-100 which are the limits the game allows.

You can bind suicide:
Bindings=(Name="X",Command="suicide")

You can combine multiple commands as explained above. For example:
Bindings=(Name="nine",Command="GBA_SwitchWeapon9 | FOV 80 | setsensitivity 7.5") Will change to sniper, zoom my FOV and set my sensitivity to 750.
Bindings=(Name="G",Command="GBA_SwitchToBestWeapon | FOV 100 | setsensitivity 15.0") will change to my best weapon, return to widescreen FOV and return my sensitivity to 1500.
The purpose of this binding is to increase my accuracy when sniping at a distance and when someone approaches me I instantly bust out a close range weapon and return my controls and view to normal.

You can bind a key to alternate between two weapons. In this example it will rotate between Flak and Rockets.
Bindings=(Name="PipeC",Command="switchweapon 8 | switchweapon 7 | setbind o PipeD")
Bindings=(Name="PipeD",Command="switchweapon 7 | switchweapon 8 | setbind o PipeC")
Bindings=(Name="o",Command="PipeC")
"o" is initially "PipeC" which has two switch weapon commands. One will take priority if you have both weapons, but if you only have one it will bring that one up. Then it changes "o" to "PipeD" which alternates the priority of the weapons, so that if you have both you will draw the other weapon. Then "o" is changed back to "PipeC".
"PipeC" and "PipeD" are names than are chosen by the user, and can be changed to anything not already in use. e.g. if you wanted to pipe bind another key then you could make them "PipeA" and "PipeB".

You can bind a hammer jump: (thanks go to Mr. Evil)
Bindings=(Name="StartHammer",Command="ToggleMelee | StartFire")
Bindings=(Name="StopHammer",Command="Jump | OnRelease StopFire | OnRelease ToggleMelee")
Bindings=(Name="key1",Command="StartHammer")
Bindings=(Name="key2",Command="StopHammer")

6. Conclusion
That's all I can think of right now. If someone has something they want to do, but aren't too savvy with this kind of thing, ask me and I'll see if I can write the lines for you.

Copied from epichttp://http://utforums.epicgames.com/showthread.php?t=648967
__________________

Zofo

  • Community Leaders
  • Registered Forum Member
  • ******
  • Posts: 3039
  • Karma: +41/-7
    • View Profile
Re: Keybinding Tutorial
« Reply #1 on: January 18, 2009, 13:36:40 PM »
Nice guide

I did use the pipe switch binds to mix weapons on 1 key but it was too slow and didnt always switch to the weapon u wanted when u had 2 on 1 key, the roccat mouse allows me to bind all single weapons to individual keys which imo is much better

10 mouse buttons ftw

Zeus

  • Community Leaders
  • Registered Forum Member
  • ******
  • Posts: 2067
  • Karma: +13/-2
    • View Profile
Re: Keybinding Tutorial
« Reply #2 on: January 18, 2009, 17:47:39 PM »
Quote from: "Zofo"
Nice guide

The roccat mouse allows me to bind all single weapons to individual keys which imo is much better

10 mouse buttons ftw

idd - love mine its a work off art  :D

Zofo

  • Community Leaders
  • Registered Forum Member
  • ******
  • Posts: 3039
  • Karma: +41/-7
    • View Profile
Re: Keybinding Tutorial
« Reply #3 on: January 18, 2009, 20:18:37 PM »
u gonna get the kb also?? I think i am, well I do need a new one

Zeus

  • Community Leaders
  • Registered Forum Member
  • ******
  • Posts: 2067
  • Karma: +13/-2
    • View Profile
Re: Keybinding Tutorial
« Reply #4 on: January 18, 2009, 20:41:49 PM »
Quote from: "Zofo"
u gonna get the kb also?? I think i am, well I do need a new one


well think the change from my Z-board would be take some getting use to



the Z-board is good as you can configure the keys for what ever you want - eg press F6 'good shot there matly', or what ever you want  

but from how good a product the mouse was if the layout had been the same I would off well considered it - after you had tested it for me ;)

Zofo

  • Community Leaders
  • Registered Forum Member
  • ******
  • Posts: 3039
  • Karma: +41/-7
    • View Profile
Re: Keybinding Tutorial
« Reply #5 on: January 19, 2009, 09:45:10 AM »
Hey i'm not your guinea pig, well ok i am coz it looks sweet  8-)

daemonnn

  • Registered Forum Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Keybinding Tutorial
« Reply #6 on: May 05, 2009, 08:58:51 AM »
someone help please?

I don't know how to do this,and if it helps gameplay i would really like it to be working :/
Death is like a postcard... It's cheap and it sucks.

Zofo

  • Community Leaders
  • Registered Forum Member
  • ******
  • Posts: 3039
  • Karma: +41/-7
    • View Profile
Re: Keybinding Tutorial
« Reply #7 on: May 05, 2009, 11:06:15 AM »
Quote from: "daemonnn"
someone help please?

I don't know how to do this,and if it helps gameplay i would really like it to be working :/


hey m8, welcome

I think the best thing to do is just copy my binds and tell you where to put them, my head hurt a bit reading the guide above and I have been using keybinds since UT2004, ok gimme a few mins and i'll grab them

Zofo

  • Community Leaders
  • Registered Forum Member
  • ******
  • Posts: 3039
  • Karma: +41/-7
    • View Profile
Re: Keybinding Tutorial
« Reply #8 on: May 05, 2009, 11:36:19 AM »
ok first off what mouse do you use m8?  I have all my weapons bound to my mouse so its like a quick flick of my thumb or the back of my hand and it switches weapons, course kb is fine too but I prefer to stick to movement mainly for the kb and weapons for the mouse, it does make UT3 more enjoyable because its something less to think about, having the right weapon at the right time is so important in UT

I separate my weapons depending on the fight i'm in, for instance


Up close fighting = spam weapons - Flak, Rox, Bio

Far away fighting = hitscan - Shock, Snipe

Finishing = Stinger, Link Secondary (if you know your opponent is low then these will finish them off quickly)


I have a Roccat mouse which has 10 buttons so I bind all my weapons individually, this imo is better because before when i had the Logitech MX518 I shared 2 weapons on each key, this was fine mostly but it didn't always switch to what I wanted, as in if I was using hitscan then i wanted to switch to flak it might choose rox on first key press meaning i had to press again for flak, this second delay could get you killed

You can set up the buttons on your mouse to letters, just select keystroke in the drop down menus, REMEMBER TO ONLY USE KEYS THAT ARE NOT BEING USED ALREADY, CHECK THIS IN YOUR CONFIG IN INGAME SETTINGS


These are my old binds for sharing weapons

1 - HAMMER
2 - ASSAULT
3 - BIO
4 - SHOCK
5 - LINK
6 - STINGER
7 - FLAK
8 - ROX
9 - SNIPER
0 - LONGBOW


ROX/FLAK

Bindings=(Name="PipeX",Command="switchweapon 8 | setbind NumPadTwo PipeY")
Bindings=(Name="PipeY",Command="switchweapon 7 | setbind NumPadTwo PipeX")
Bindings=(Name="NumPadTwo",Command="PipeX")


STINGER/LINK

Bindings=(Name="PipeA",Command="switchweapon 6 | setbind NumPadThree PipeB")
Bindings=(Name="PipeB",Command="switchweapon 5 | setbind NumPadThree PipeA")
Bindings=(Name="NumPadThree",Command="PipeA")


SHOCK/SNIPE

Bindings=(Name="PipeC",Command="switchweapon 4 | setbind NumPadFour PipeD")
Bindings=(Name="PipeD",Command="switchweapon 9 | setbind NumPadFour PipeC")
Bindings=(Name="NumPadFour",Command="PipeD")


LONGBOW/SHOCK

Bindings=(Name="PipeE",Command="switchweapon 0 | setbind NumPadTwo PipeF")
Bindings=(Name="PipeF",Command="switchweapon 4 | setbind NumPadTwo PipeE")
Bindings=(Name="NumPadTwo",Command="PipeE")

Quote
Bindings=(Name="PipeX",Command="switchweapon 8 | setbind NumPadTwo PipeY")
Bindings=(Name="PipeY",Command="switchweapon 7 | setbind NumPadTwo PipeX")
Bindings=(Name="NumPadTwo",Command="PipeX")
Bindings=(Name="PipeA",Command="switchweapon 6 | setbind NumPadThree PipeB")
Bindings=(Name="PipeB",Command="switchweapon 5 | setbind NumPadThree PipeA")
Bindings=(Name="NumPadThree",Command="PipeA")
Bindings=(Name="PipeC",Command="switchweapon 4 | setbind NumPadFour PipeD")
Bindings=(Name="PipeD",Command="switchweapon 9 | setbind NumPadFour PipeC")
Bindings=(Name="NumPadFour",Command="PipeD")
Bindings=(Name="PipeE",Command="switchweapon 0 | setbind NumPadTwo PipeF")
Bindings=(Name="PipeF",Command="switchweapon 4 | setbind NumPadTwo PipeE")
Bindings=(Name="NumPadTwo",Command="PipeE")


ALL BINDS FOR WEAPONS GO INTO YOUR UTINPUT.INI, this will open with any text editor like notepad, place the binds at the end of the first group you see



For my current binds which are 1 weapon per key I just bound my buttons to letter keys & then in turn bound each weapon in settings to the same letters


I hope this helps, lemme know what mouse you have

daemonnn

  • Registered Forum Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Keybinding Tutorial
« Reply #9 on: May 05, 2009, 17:44:06 PM »
thanks xD i'll keep this,but i need to buy a new mouse xD this one's a generic,wheel and three buttons kinda mouse xD but it'll help soon cause im buying a new one thanks man
Death is like a postcard... It's cheap and it sucks.

Zofo

  • Community Leaders
  • Registered Forum Member
  • ******
  • Posts: 3039
  • Karma: +41/-7
    • View Profile
Re: Keybinding Tutorial
« Reply #10 on: May 05, 2009, 18:25:47 PM »
Quote from: "daemonnn"
thanks xD i'll keep this,but i need to buy a new mouse xD this one's a generic,wheel and three buttons kinda mouse xD but it'll help soon cause im buying a new one thanks man


Well I know some players that have everything on their keyboard but I have never liked that, everyone to their own mind you, if you want a cheap decent mouse go for an mx518, they've been out ages and they sell so good they never took it off the market