Announcement

Collapse
No announcement yet.

Complicated keybind

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Complicated keybind

    Hey, it is possible to change keybinds depending on the gametype? In Onslaught I like to set the Avril to my middle mouse, but in Assault I want to set the middle mouse to Shield Gun secondary. Can I do that without editing the ini file every time I want to play a different gametype?

    #2
    you could make seperate ini files

    Comment


      #3
      You could just map both of them to the same key and there you go :up:

      You can't get an AVRIL an AS so your good.

      Comment


        #4
        Create a Text file in your UT2004\System directory
        Make as many ONS-based set input (Key) [Command] as needed
        Save it as ONSBinds.Ini
        Repeat for AS binds(saving as ASBinds.Ini)
        Open your User.Ini
        Key=exec ONSBinds.Ini

        *Note* Not 100% sure if this will work mid-game
        Possibly will work while in the menu by typing exec ONSBinds.Ini in the console
        Never used this method, so I dunno

        Comment


          #5
          Isn't that the hard way?

          Comment


            #6
            Originally posted by DragonSlayer
            Isn't that the hard way?
            Yea, but more effective if he plans on doing multiple binds

            Comment


              #7
              Originally posted by Kel
              Create a Text file in your UT2004\System directory
              Save it as ONSBinds.Ini
              It should be txt. Other than that, :up:

              Comment


                #8
                I remember it being Ini but if both work

                Comment


                  #9
                  I think setting both to the middle mouse button might work, Avril first, Shield Gun second. Since Assault (usually) doesn't have Avrils, it'll just go to the shield gun. I've been looking for how to set it up like that, but haven't found it yet. How would I combine these two on the same button?

                  SwitchWeapon 1|AltFire|OnRelease SwitchToLastWeapon
                  getweapon Onslaught.ONSAVRiL

                  Comment


                    #10
                    Originally posted by marshdabeachy
                    SwitchWeapon 1|AltFire|OnRelease SwitchToLastWeapon
                    getweapon Onslaught.ONSAVRiL
                    I can pull if off with the Shieldgun coming up first, but I've had issues with the shieldgun bind being in the ****-end of a bind

                    You could try...
                    Aliases[XX]=(Command="getweapon Onslaught.ONSAVRiL|set input Key Bind2",Alias="Bind1")
                    Aliases[XX+1]=(Command="SwitchWeapon 1|AltFire|OnRelease SwitchToLastWeapon |set input Key Bind1",Alias="Bind2")

                    It's the harder method, but I'm sure it would work

                    Comment


                      #11
                      Originally posted by marshdabeachy
                      I think setting both to the middle mouse button might work, Avril first, Shield Gun second. Since Assault (usually) doesn't have Avrils, it'll just go to the shield gun. I've been looking for how to set it up like that, but haven't found it yet. How would I combine these two on the same button?

                      SwitchWeapon 1|AltFire|OnRelease SwitchToLastWeapon
                      getweapon Onslaught.ONSAVRiL
                      No you need something like this. But with different numbers for the weapons.

                      MiddleMouse=pipedswitchweapon 7 |pipedswitchweapon 9

                      Must I come up with the easy solutions?

                      Comment


                        #12
                        Originally posted by DragonSlayer
                        No you need something like this. But with different numbers for the weapons.

                        MiddleMouse=pipedswitchweapon 7 |pipedswitchweapon 9
                        It'd be weapon1|weapon7 but he wants the auto-shield bind in there and to switch straight to the AVRiL

                        Comment


                          #13
                          Originally posted by Kel
                          It'd be weapon1|weapon7 but he wants the auto-shield bind in there and to switch straight to the AVRiL
                          Yeah, is that possible with pipedswitchweapon? If not, I'll use seperate files.

                          Comment


                            #14
                            Well, you could do Key=pipedSwitchWeapon 1 | pipedSwitchweapon 7
                            But that would select the Shieldgun, next press would bring up weapon7(if you have the RL as well, it could bring that up instead)

                            You might be able to do pipedSwitchWeapon 1 | getweapon Onslaught.ONSAVRiL tho

                            Comment


                              #15
                              Hey, I got it working flawlessly. End result:

                              MiddleMouse=getweapon Onslaught.ONSAVRiL | pipedSwitchWeapon 1|AltFire|OnRelease SwitchToLastWeapon

                              And as an added bonus, the Avril will also switch back to the last weapon if you hold the middle mouse, but stay put if you just click it.

                              Thanks guys. :up:

                              Comment

                              Working...
                              X