Kuda AI Tweaks
an X4 Foundations AI mod
an X4 Foundations AI mod
Note that this page will only describe Kuda's custom behaviours, when they are applied and how they affect your ships.
The mod's full description, download, discussion, and change logs are at NexusMods: https://www.nexusmods.com/x4foundations/mods/839
The mod can also be discussed in my thread at Egosoft's official modding forum: https://forum.egosoft.com/viewtopic.php?f=181&t=428150
All ships will always acquire the Attack behaviour when their AI commanders or the player orders them to attack. The Attack order will be listed in their Behaviour menu. This mod will never remove this order. Only their commanders or the player cancels this Attack order.
This mod only applies the custom behaviours at the events listed below. When the ships do not have any of these custom behaviours in their Behaviour menu, their base-game AI is controlling them.
Note that these behaviours can be controlled by the player in several ways. They are listed in its own page..
XS (except drones), S, M (XSSM), L and XL (LXL) class ships will acquire the MOVE TO ENGAGE POSITION behaviour at a distance based on their combat range and adjusted by the pilot's skill and morale. The engage position is 75% their combat range for low-rated pilots - putting them in danger sooner. And 100% for higher-rated pilots. The MOVE TO ENGAGE behaviour prevents them from ramming their targets.
XSSM class ships with full shields will never attack their station targets - unless they have missiles and/or torpedoes.
XSSM ships will AVOID (i.e. circle) their station targets until the number of attackers, adjusted by their pilot's skill and morale, outnumber 75% of the station's turrets. Low-rated pilots will overestimate the number of attackers by up to 2 times - causing them to attack earlier.
When the number of attackers outnumbers the station's turrets (at that certain percentage), XSSM ships will attack as long as their shields are full.
XSSM ships with full shields will attack their ship targets.
XSS ships will AVOID their ship targets until the number of attackers, adjusted by their pilot's skill and morale, outnumber 25% of the ship's turrets. Low-rated pilots will overestimate the number of attackers by up to 2 times - causing them to attack earlier.
M ships will AVOID their ship target until the number of attackers, adjusted by their pilot's skill and morale, outnumber 50% of the ship's turrets. Low-rated pilots will overestimate the number of attackers by up to 2 times - causing them to attack earlier.
When the number of attackers outnumbers the ship's turrets (at that certain percentage), XSSM ships will attack as long as their shields are above a certain percentage dictated by the pilot's skill and morale. 75% shields for low-rated pilots. They are impulsive and over-confident. And 90% shields for high-rated pilots. They are careful and patient.
LXL class ships will STEP FORWARD several meters dictated by the pilot's skill and morale once a minute until they are at an optimal range dictated by their main guns and turrets. 2 km at every step for low-rated pilots - putting them in danger sooner. And 1 km at every step for high-rated pilots.
Carriers will always AVOID their targets. They continue to perform their other activities according to their base-game Attack AI. But they never engage their targets directly. (They are too slow to WITHDRAW when required.)
Ships with the "Attack all enemies" option enabled in the Behaviour menu will attack non-high-risk enemies while AVOIDING their main high-risk target.
XSSM and LXL ships will WITHDRAW when their shields fall a certain percentage dictated by the pilot's skill and morale. 75% shields for low-rated pilots. And 90% shields for high-rated pilots.
The distance of this WITHDRAWAL is based on the level of their shields. Further when shields are low. Nearer when shields are still high.
Ships will try to draw their targets towards an ally when WITHDRAWING.
Note that the WITHDRAW behaviour is not the Flee behaviour. The WITHDRAW behaviour is to remove the ship from their target's weapons range temporarily to regenerate their shields.
LXL ships will only WITHDRAW if they are at their target's front quadrant or if they are within 5 km of their target.
XSSM and LXL ships will cancel their WITHDRAWAL when their hull is damaged to below 50%. Their chance of survival is low.
They will also cancel their WITHDRAWAL when their ship target's shields fall below 25%.
They will also cancel their WITHDRAWAL when they detect that their ship target has stopped chasing them.
LXL ships will move around (i.e. MOVE TO ENGAGE POSITION) the station to a vector better suited for their new module targets.
XSSM and LXL ships will always AVOID stations and enemy LXL ships that are in the way of their destination. A video on how this works is below.