Ship combat AI question

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

Post Reply
Falcrack
Posts: 4994
Joined: Wed, 29. Jul 09, 00:46
x4

Ship combat AI question

Post by Falcrack » Wed, 22. Jan 20, 05:26

Do all ships share the same combat AI? Or is there different AI for XL/L sized, versus M sized, versus S sized ships? I ask because the ideal combat behaviors (how the ship moves, targeting priorities) logically should be very different for a fighter compared to a destroyer. In addition, a fighter should ideally have different logic for combat versus another fighter than versus a destroyer.

j.harshaw
EGOSOFT
EGOSOFT
Posts: 1872
Joined: Mon, 23. Nov 15, 18:02

Re: Ship combat AI question

Post by j.harshaw » Wed, 22. Jan 20, 15:18

We have three combat movement scripts which mark greater differences in logic:

fight.attack.object.fighter - for non-capital ships versus other non-capital ships
fight.attack.object.bigtarget - for non-capital ships versus capital ships or stations
move.attack.object.capital - for capital ships; with specific sections for ships with operational forward-mounted weapons vs without, for fighting other big things vs small things, behavior on approach, behavior on withdrawal, etc.

The capital ship combat movement script has different behavior for carriers that have subordinates. Fleet auxiliary ships as a rule don't normally attack unless themselves attacked. These control the coarser movements (target designation, movement to a particular position relative to a target, etc).

Ships that use turrets and/or drones in addition use the following scripts for fire and drone control:

fight.attack.object.medium - for M ships
fight.attack.object.capital - for capital ships

All fire control scripts have switches for disabling rather than destroying targets, used for boarding. These control which targets are authorized to be fired upon when.

There is also provision for restricting flight behaviors used in combat depending on race, faction, or crew skill level. These control the finer movement of non-capital ships in combat.

User avatar
Axeface
Posts: 2943
Joined: Fri, 18. Nov 05, 00:41
x4

Re: Ship combat AI question

Post by Axeface » Wed, 22. Jan 20, 15:47

j.harshaw wrote:
Wed, 22. Jan 20, 15:18
There is also provision for restricting flight behaviors used in combat depending on race
Out of interest is this currently utilised? (Species causing different combat behaviour). I'm writing up some related suggestions and would like to know. I personally havent noticed a difference between fighting a Paranid vs fighting a Teladi.

User avatar
mr.WHO
Posts: 8571
Joined: Thu, 12. Oct 06, 17:19
x4

Re: Ship combat AI question

Post by mr.WHO » Wed, 22. Jan 20, 17:52

Axeface wrote:
Wed, 22. Jan 20, 15:47
j.harshaw wrote:
Wed, 22. Jan 20, 15:18
There is also provision for restricting flight behaviors used in combat depending on race
Out of interest is this currently utilised? (Species causing different combat behaviour). I'm writing up some related suggestions and would like to know. I personally havent noticed a difference between fighting a Paranid vs fighting a Teladi.
I bet Split will be the hyper-aggresive ones.

Post Reply

Return to “X4: Foundations”