commo rose macro? .con file trigger to left mouse

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

    #1

    commo rose macro? .con file trigger to left mouse

    hi all....I've been looking into linking my left mouse/ fire button to my joystick trigger....in order to spot stuff while flying chopper\ jets....but once i pull up the rose....i can only use the left mouse button.....

    the .con file has a mapping for fire to both the left click and trigger for primary fire...but it seems thats not good enough...i wanted to assign the controllers to eachother in the .con file but thats not an option i think.

    is there a way? i dont want to keep moving hand from joystick to mouse button....

    also....how bout a macro solution for the commo rose? autohotkey is a bit confusing.....
  • DosX

    #2
    Re: commo rose macro? .con file trigger to left mouse

    Ahh the command rose. What your looking to do is map keys to manuever around the command rose and select something.

    Locate Controls.con file in:
    \My Documents\Battlefield 2\Profiles\0001

    Find this line in Controls.con file:

    ControlMap.create defaultGameControlMap

    Add these lines:
    (they make numpad keys to move mouse, fire button to execute)

    ControlMap.addKeysToAxisMapping c_GIMouseLookX IDFKeyboard IDKey_Numpad6 IDKey_Numpad4 1
    ControlMap.addKeysToAxisMapping c_GIMouseLookY IDFKeyboard IDKey_Numpad2 IDKey_Numpad8 1
    ControlMap.addKeyToTriggerMapping c_GIOk IDFKeyboard IDKey_Numpad5 0 1

    And make sure this line is in there as well... you probably won't have to add it though.

    ControlMap.addKeyToTriggerMapping c_GIAltOk IDFKeyboard IDKey_Numpad0 0 1

    Now, after you edit the Control.con file with those... you can bring up the commo rose with "Q" then use NUMPAD 0 to bring up the Spotted menu and NUMPAD 5 to say "Enemy Spotted"

    You can also map the NUMPAD 2/8 and 4/6 to manuever around the command rose and use NUMPAD 5 to select.

    Now just use your joystick software to build a macro for one button.

    Spotted Macro
    Q down
    NUMPAD 0
    NUMPAD 5

    I've played with moving around the spotted menu to specifically select different things like Tank, APC, Sniper etc... but the NUMPAD 2/8 just scroll too fast on the Spotted menu. I just can't get them to go one line at a time, sometimes they will but mostly they skip.

    Hope that does it for ya. Lemme know, I've helped others with this.

    HERE's the posting about it on the G15mods forums.

    *Sorry about the small text, it was the only way everything show up on a single line.

    Comment

    • Bounce

      #3
      Re: commo rose macro? .con file trigger to left mouse

      thanks bud!!

      I'm gonna try that ....

      ControlMap.addButtonToTriggerMapping c_GIOk IDFMouse IDButton_0 0 0
      ControlMap.addButtonToTriggerMapping c_GIOk IDFGameController_0 IDButton_0 0 0

      the second line is what i addded.....i hope this makes the joytrigger function as left mouse click when in the commo rose......

      wanna good laugh?

      I'm playing with a zboard bf2, logitech 3d joystick, logi momo racing wheel, and a usb number pad strapped to the wheel.....i like to make things harder on myself.....lol....it's been months and I still haven't ironed everything out as far as optimizing all my buttons...

      Comment

      • lostinspace

        #4
        Re: commo rose macro? .con file trigger to left mouse

        edited

        Comment

        • Bounce

          #5
          Re: commo rose macro? .con file trigger to left mouse

          works great now.....excellent work men...yer the finest squad I've seen.

          Comment

          • imported_Spuddy
            Member
            • Feb 2007
            • 1242

            #6
            Re: commo rose macro? .con file trigger to left mouse

            Originally posted by DosX
            Ahh the command rose. What your looking to do is map keys to manuever around the command rose and select something.

            Locate Controls.con file in:
            \My Documents\Battlefield 2\Profiles\0001

            Find this line in Controls.con file:

            ControlMap.create defaultGameControlMap

            Add these lines:
            (they make numpad keys to move mouse, fire button to execute)

            ControlMap.addKeysToAxisMapping c_GIMouseLookX IDFKeyboard IDKey_Numpad6 IDKey_Numpad4 1
            ControlMap.addKeysToAxisMapping c_GIMouseLookY IDFKeyboard IDKey_Numpad2 IDKey_Numpad8 1
            ControlMap.addKeyToTriggerMapping c_GIOk IDFKeyboard IDKey_Numpad5 0 1

            And make sure this line is in there as well... you probably won't have to add it though.

            ControlMap.addKeyToTriggerMapping c_GIAltOk IDFKeyboard IDKey_Numpad0 0 1
            I LOVE YOU MAN! You have just solved my voice recognition / commo rose problem!

            Comment

            • DosX

              #7
              Re: commo rose macro? .con file trigger to left mouse

              ...... and I'm very fond of you as well.

              Glad I could help.

              Are you using the Game Commander?

              Comment

              • imported_Spuddy
                Member
                • Feb 2007
                • 1242

                #8
                Re: commo rose macro? .con file trigger to left mouse

                Originally posted by DosX
                ...... and I'm very fond of you as well.

                Glad I could help.

                Are you using the Game Commander?
                Nope, using Shoot. We're talking about it all in this thread.

                Code:
                ControlMap.addButtonToTriggerMapping c_GIAltOk IDFMouse IDButton_1 0 0
                Is this line for the right mouse button? So that I can access the Spotted menu...

                Comment

                • Lanserschrek

                  #9
                  Re: commo rose macro? .con file trigger to left mouse

                  Thanks for good work DosX. Looking forward to trying it out with Shoot. And thanks to Spuddy's eagle eyes for tracking down this thread.

                  Comment

                  • DosX

                    #10
                    Re: commo rose macro? .con file trigger to left mouse

                    Your very welcome. Helping other gamers has always been something I enjoy greatly.

                    ControlMap.addButtonToTriggerMapping c_GIAltOk IDFMouse IDButton_1 0 0

                    That is NOT to select the spotted menu.... I think thats actually your left mouse button and probably shouldn't be edited at all.

                    ControlMap.addKeyToTriggerMapping c_GIAltOk IDFKeyboard IDKey_Numpad0 0 1

                    THIS is the line that will allow you to select SPOTTED by using the NUMPAD 0 key.

                    Q down - bring up commo rose
                    NUMPAD 0 - spotted menu
                    NUMPAD 5 - activate spotted "ENEMY SPOTTED"

                    That should yell "SPOTTED". To select individual entried from the spotted menu.... well I wish I knew. You can use NUMPAD 2 and 8 to scroll up and down the Spotted Menu but it's very jumpy.

                    Q down - bring up commo rose
                    NUMPAD 0 - spotted menu
                    NUMPAD 8 - scroll up
                    NUMPAD 8 - scroll up
                    NUMPAD 8 - scroll up
                    NUMPAD 5 - select

                    That *should* be about where "SPOTTED Enemy Armor" would be. The problem I'm having is that the NUMPAD 2 and 8 just scrolls by too darn fast. Sometimes it'll jump over one or more of the entries. I've tried a few things to get it to work, but haven't had any luck.

                    *OH and are you guys doing any "combo" macros?

                    Say "Drop Bag"
                    5 down/up - switch to medic or ammo bag
                    LMClick - drop one bag
                    3 down/up - switch to primary weapon

                    Actually you can put a G down/up first and last on that macro. Then if there's a medic kit on the ground you'll pick it up, drop one bag, and switch back to your pack. If there's no pack to pick up it just switches to your pack and drops one bag, then back to your primary weapon.

                    Comment

                    • imported_Spuddy
                      Member
                      • Feb 2007
                      • 1242

                      #11
                      Re: commo rose macro? .con file trigger to left mouse

                      Well I've tried spotting specifics, but you're right it's too fast and therefore doesn't work.

                      Nevermind, at least all the other Commo Rose stuff works.

                      Not done any "combo's" yet, mainly been trying to get commo rose working.

                      Comment

                      • Lanserschrek

                        #12
                        Re: commo rose macro? .con file trigger to left mouse

                        Considering some "Combo Macros" once I'm happy the Commo Rose stuff is working successfully for me. I use a Nostromo N52 as my primary method of playing Battlefield 2 so I already occasionally use the Ammo/Medpack one you mentioned. Also a throw Grenade and switch back to primary weapon too, now that would be a nice one to do with Shoot :)

                        Comment

                        • DosX

                          #13
                          Re: commo rose macro? .con file trigger to left mouse

                          Like I told Spuddy in a PM.... I sorta hate you Voice Command guys now.

                          I'll d-load Shoot 1.6.4 tonight. I have Game Commander (not sure of it's version). And I'll become obsessed with making new voice macros.

                          Darn you guys... darn you all to heck.

                          Comment

                          • Lanserschrek

                            #14
                            Re: commo rose macro? .con file trigger to left mouse

                            Originally posted by DosX
                            Like I told Spuddy in a PM.... I sorta hate you Voice Command guys now.

                            I'll d-load Shoot 1.6.4 tonight. I have Game Commander (not sure of it's version). And I'll become obsessed with making new voice macros.

                            Darn you guys... darn you all to heck.
                            LOL, damn these obsessions of ours. If you have any issues getting Shoot 1.6.4 up and running I'm sure myself or Spuddy can help you out. I'm updating my profile for it now and will republish it on the Voice Recognition thread once I'm sure it's working fully and is pretty comprehensive.

                            I thought I was gonna go for promotion later but I know I'll be working on this stuff for a bit darn it. :)

                            Right I've posted a new version here of the Shoot XML profile using your method of interacting with the Commo Rose. Thanks to Spuddy for having done the majority of the Commo Rose definitions for us with some vigorous enthusiasm and speed LOL. I just finished up with a few vehicle specific ones. Hope you get a chance to try it out.

                            Now that the basic stuff is done I'm sure a few useful macro's can be drawn up.

                            Comment

                            • imported_shadow2k1
                              Member
                              • Jun 2005
                              • 192

                              #15
                              Re: commo rose macro? .con file trigger to left mouse

                              SWEET! i been looking for this exact thing.

                              now i have to wait till i get home to play around with it

                              thanks dosx

                              edit: here is a question, can this also be used to leave a squad?
                              there is an option in the settings to make a squad just curious if one can be made to leave a squad

                              Comment

                              Working...