Jump to content

Paired Weapons, Alternate Shooting


7 replies to this topic

#1 MasterGoa

    Member

  • PipPipPipPipPipPip
  • 473 posts
  • LocationMontreal

Posted 10 December 2012 - 07:17 AM

Hi guys!

Having a PPC equippede catapult, I want to hone my CQB skiil
and as such, have equipped this Mech with CQB weapons:
PPC and a pair of AC/5.

When I shoot them, is there a way to have them shoot
one at a time, in alternance?

Thanks.

Edited by MasterGoa, 10 December 2012 - 09:04 AM.


#2 Redshift2k5

    Welcoming Committee

  • PipPipPipPipPipPipPipPipPipPipPip
  • Stone Cold
  • Stone Cold
  • 11,975 posts
  • LocationNewfoundland

Posted 11 December 2012 - 06:51 AM

Either set multiple weapon groups, or use Backspace to toggle chainfire for that weapon group

#3 MasterGoa

    Member

  • PipPipPipPipPipPip
  • 473 posts
  • LocationMontreal

Posted 11 December 2012 - 11:03 AM

Thanks, works like a charm!

I will through you a curve:
Can I have one weapon continuous shooting and two weapons alternating
on same button?

For example, PPC Cat, machine gun continuous while PPC alternating
with button 1?

Thanks again!

#4 Redshift2k5

    Welcoming Committee

  • PipPipPipPipPipPipPipPipPipPipPip
  • Stone Cold
  • Stone Cold
  • 11,975 posts
  • LocationNewfoundland

Posted 11 December 2012 - 11:37 AM

No, you cannot have some weapons chainfiring and some weapon continuous firing on the same key.

Map one key for the MGs and another key for the PPCs. you get 6 weapon groups to work with :P

#5 MasterGoa

    Member

  • PipPipPipPipPipPip
  • 473 posts
  • LocationMontreal

Posted 11 December 2012 - 01:47 PM

I guyss I will have to find out which buttons are on the side of my mouse :)

#6 Merida

    Rookie

  • 3 posts

Posted 30 December 2012 - 05:47 PM

Can someone explain out to me how I pair weapons pepole say use right shift and use arrows keys thats it nothing esla all that does for me is change the selection of my weapon and its group not reallign them.

#7 evilC

    Member

  • PipPipPipPipPipPipPipPip
  • Legendary Founder
  • Legendary Founder
  • 1,298 posts
  • LocationLondon, UK

Posted 31 December 2012 - 07:56 AM

Something like this is very easily done with AutoHotkey, the script would be like:
 
fireToggle = 0
 
#IfWinActive, ahk_class CryENGINE
; Remap Right Mouse to alternate between 1+2 and 3+4
RButton::
if (fireToggle = 0){
Send {12}
fireToggle = 1
} else {
Send {34}
fireToggle = 0
}
return
#IfWinActive


Unfortunately, as MWO stands, it will not work.
It seems that MWO detects key presses for some in game controls in a different way to others.
Weapon groups cannot be programmed, but some other keys (Night vision, zoom etc) can.
For example, if I rewrite that script so that instead of firing weapon groups 1+2 then 3+4, to toggling between night or thermal vision, it works.
In fact, if you keep the weapon script above as is, and open a chat window in MWO then hit the right mouse button, you see 1,2,3,4 being typed into the chat by the macro.

Now this may be simply because of the way the game happens to work that the detection for some time-critical controls are handled in other ways, or it may be to do with a deliberate attempt to block such things (eg gameguard).
Personally, I do not agree with a policy of blocking macros that simply affect interface. People will always have access to programmable keyboards and mice that you cannot block - so just let AutoHotkey etc work so that the playing field is level.

Edited by evilC, 31 December 2012 - 07:57 AM.


#8 evilC

    Member

  • PipPipPipPipPipPipPipPip
  • Legendary Founder
  • Legendary Founder
  • 1,298 posts
  • LocationLondon, UK

Posted 01 January 2013 - 07:06 AM

Ah, correction. I remembered what it was that was stopping AHK from being able to fire weapons.

Instead of the usual syntax: send {1}, you need to add a delay in between the key down and key up like this:

Send {1 down}
Sleep, 50
Send {1 up}

However, there is one slight issue you need to be aware of:
If you use AHK to remap Right Mouse Button to 1+2 then 3+4, you MUST NOT have RMB mapped to anything in MWO (eg fire weapon group 2) as this will STILL TRIGGER.

So, here is a sample working script to remap RMB to alternate between 1+2 and 3+4:
http://evilc.com/fil...o/weapgroup.ahk

Also, be aware that as it stands this script will not alternate if you hold the button - only if you repeatedly click it.
I could write code so that it alternates between the two groups at a predefined rate when you hold the button, but I know for a fact that PGI have click frequency checking code in the game and your weapons will be disabled if you click at a perfectly spaced rate.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users