[Question] Weapon configuration and AI

This forum is the ideal place for all discussion relating to X4. You will also find additional information from developers here.

Moderator: Moderators for English X Forum

furirkeeper
Posts: 195
Joined: Sun, 2. Dec 18, 10:32
x4

[Question] Weapon configuration and AI

Post by furirkeeper »

Hello
Have anyone figured out how NPCs make use of weapon configurations. What I mean is, if I fit a fighter with two different weapons and
A: set both of them as "first primary" selection or
B: set one of them as "first primary" and one as "first secondary".
And then order the pilot of that ship to attack something.
For "A", will the pilot fire both weapons as much as they can or will they stop fireing both weapons when one of them overheat?
For "B", will they always use both weapons?
I recognize there is a case "C" also, where one weapon is "first primary" and one is "second primary", I haven't tried that one.

The reason I ask is I outfitted a bunch of Eclipses with 2 bolt-repeaters and 2 plasmas with case A (bolt-repeater as "first primary"), and I have never seen them fire the plasma.
I played around a little when attacking a station and could see that for case A they only fired the bolt-repeater. For case B, they many times never fired at all.
And I was attacking a station, so the plasma would have been useful.

To make things confusing I also have a few Nemisises configured with 2 bolt-repeaters and 3 plasmas using case A, and they always fire both weapons.

Maybe a bug for the Eclipse? Or is there anything I am missing? Maybe just a coincidence?
graphicboy
Posts: 718
Joined: Wed, 3. Jul 13, 03:21
xr

Re: [Question] Weapon configuration and AI

Post by graphicboy »

I think the AI only ever fires the active group, which most of the time is group 1. Hop in the ship and change to group 2, then give it back to the AI - they will almost certainly be shooting group 2.

This is based on the "Collect Lockbox" feature (2.5?) failing if you hopped into the ship and changed to group 2 (which for me is always blank). The AI could no longer shoot the locks on the boxes and would fail to collect them. This was fixed in a later update.
furirkeeper
Posts: 195
Joined: Sun, 2. Dec 18, 10:32
x4

Re: [Question] Weapon configuration and AI

Post by furirkeeper »

graphicboy wrote: Fri, 17. May 19, 01:31 I think the AI only ever fires the active group, which most of the time is group 1. Hop in the ship and change to group 2, then give it back to the AI - they will almost certainly be shooting group 2.

This is based on the "Collect Lockbox" feature (2.5?) failing if you hopped into the ship and changed to group 2 (which for me is always blank). The AI could no longer shoot the locks on the boxes and would fail to collect them. This was fixed in a later update.
Is your answer with regards to case "C"? When you have multiple configuration on the primary trigger? But good to know.
Because if you configure like I have, case "A", with one weapon as primary trigger and one as secondary trigger my Nemisis use both with AI.
But not my Eclipse which is odd.
graphicboy
Posts: 718
Joined: Wed, 3. Jul 13, 03:21
xr

Re: [Question] Weapon configuration and AI

Post by graphicboy »

furirkeeper wrote: Fri, 17. May 19, 01:38Is your answer with regards to case "C"? When you have multiple configuration on the primary trigger? But good to know.
Because if you configure like I have, case "A", with one weapon as primary trigger and one as secondary trigger my Nemisis use both with AI.
But not my Eclipse which is odd.
I wasn't able to follow your a/b/c frankly. If we're talking about 2 different things (seems we might), then I've no clue what's up with the Eclipse.
furirkeeper
Posts: 195
Joined: Sun, 2. Dec 18, 10:32
x4

Re: [Question] Weapon configuration and AI

Post by furirkeeper »

graphicboy wrote: Fri, 17. May 19, 02:56
furirkeeper wrote: Fri, 17. May 19, 01:38Is your answer with regards to case "C"? When you have multiple configuration on the primary trigger? But good to know.
Because if you configure like I have, case "A", with one weapon as primary trigger and one as secondary trigger my Nemisis use both with AI.
But not my Eclipse which is odd.
I wasn't able to follow your a/b/c frankly. If we're talking about 2 different things (seems we might), then I've no clue what's up with the Eclipse.
I will try again, I was a bit sleepy when I wrote my post.

In X4 you have a primary fire button and a secondary fire button.
In the weapon configuration you can set 4 different configurations for each fire button.

My cases
"A": One weapon configured in the first slot of the primary fire button and one weapon configured in the first slot of the secondary fire button.
"B": Both weapons configured in the first slot of the primary fire button.
"C": One weapon configured in the first slot of the primary fire button and one weapon configured in the second slot of the primary fire button.

I am using A, I am guessing you are using C.

From what I see in my game, the Nemisis fires both its weapons but the Eclipse only fire the primary fire button.
j.harshaw
EGOSOFT
EGOSOFT
Posts: 2200
Joined: Mon, 23. Nov 15, 18:02

Re: [Question] Weapon configuration and AI

Post by j.harshaw »

furirkeeper wrote: Fri, 17. May 19, 08:56"A": One weapon configured in the first slot of the primary fire button and one weapon configured in the first slot of the secondary fire button.
Both weapons will fire as long as both groups are active.
furirkeeper wrote: Fri, 17. May 19, 08:56"B": Both weapons configured in the first slot of the primary fire button.
Both weapons will fire as long as the group they are in is active.
furirkeeper wrote: Fri, 17. May 19, 08:56"C": One weapon configured in the first slot of the primary fire button and one weapon configured in the second slot of the primary fire button.
Assuming one of these groups is active, only the weapon in the active group will fire.
furirkeeper
Posts: 195
Joined: Sun, 2. Dec 18, 10:32
x4

Re: [Question] Weapon configuration and AI

Post by furirkeeper »

j.harshaw wrote: Fri, 17. May 19, 11:13
furirkeeper wrote: Fri, 17. May 19, 08:56"A": One weapon configured in the first slot of the primary fire button and one weapon configured in the first slot of the secondary fire button.
Both weapons will fire as long as both groups are active.
furirkeeper wrote: Fri, 17. May 19, 08:56"B": Both weapons configured in the first slot of the primary fire button.
Both weapons will fire as long as the group they are in is active.
furirkeeper wrote: Fri, 17. May 19, 08:56"C": One weapon configured in the first slot of the primary fire button and one weapon configured in the second slot of the primary fire button.
Assuming one of these groups is active, only the weapon in the active group will fire.
Thanks
For case B, will both weapons stop firing if one of them overheat?
j.harshaw
EGOSOFT
EGOSOFT
Posts: 2200
Joined: Mon, 23. Nov 15, 18:02

Re: [Question] Weapon configuration and AI

Post by j.harshaw »

furirkeeper wrote: Fri, 17. May 19, 12:20For case B, will both weapons stop firing if one of them overheat?
Not familiar with that code first-hand, but as far as i know, no. Only the weapon that overheats will stop firing.

Return to “X4: Foundations”