Download Games & Demos Mods & Add-Ons Patches Tools Trainers

X4: Foundations - Improved Turret Modes v.0.3 - Game mod - Download

The file Improved Turret Modes v.0.3 is a modification for X4: Foundations, a(n) simulation game. Download for free.

file typeGame mod

file size3.9 KB

downloads884

(last 7 days)3

last updateSunday, February 2, 2020

Free download

Report problems with download to [email protected]

Improved Turret Modes is a mod for X4: Foundations, created by iforgotmysocks.

Description (in author’s own words):

Adds and improves target selection logic of turret modes for npc ships and the playership and fixes an issue that leads npc ships with selected turret groups to prioritize other targets, ignoring their turret settings.

Fair warning before use: These turret modes are new in 3.0 and will hopefully be patched alot to function better in vanilla. With every upcoming patch this mod is expected to potentionally break, may become unsupportable, or may simply not be needed anymore. In such a case it can be easily removed without issues. I'll try to update the mod as quickly as possible when patches arrive, but given the weirdness of how turrets work i can't promise immediate updates.

This mod adds and improves target selection logic of turret modes for npc ships and the playership and fixes an issue that leads npc ships with selected turret groups to prioritize other targets, ignoring their turret settings.

Following modes have been improved:

Attack Capitalships:

?Previously: Just Capitalships (or random targets for npc ships other than the player controlled ship)

?New focusorder: Capitalships -> Station Parts

Attack Fighters:

?Previously: Just Fighters (or random targets for npc ships other than the player controlled ship)

?New focusorder: Fighters -> Capital Ships -> Station Parts

Missile Defence:

?Previously: Just Missiles

?New focusorder: Missiles and Fighters alike (what's closest)

If u're interested in helping and improving this mod, leave me a message with suggestions or a bugreport if something seems off. Thanks! :)

Target selection improvements - in detail (skip it if u're not interested):

In order to not having these changes impact performance noticably i've been very careful in how i'm checking if a new targetclass should be added to the current target class (e.g. adding station parts to the capital ship target selection), meaning i'm limiting the checks first to a count check to see if 10 or less objects are left. This happens before any distancechecks take place. If the distance check succeeds i'm performing a line of sight check, to make sure turrets can actually hit it. As long as 1 of those remaining 10 or less targets manages to pass the check, the queue breaks to not waste performance and the next target group will not be added as the turrets are still able to hit the remaining targets of their priority group.

Fix of current target selection bug (skip if not interested):

Currently, turrets are given the "preferred target" of the ship when not controlled by the player himself. Turrets prefer this target over their actual assigned targetlist they're supposed to attack. This means, in vanilla a capital may choose to fire upon a hostile fighter with L - sized turrets and attack a hostile capital with M - sized turrets. This is now fixed so that the prefered target is still chosen, if it fits the current assigned turret mode, but if not we let the turrets choose their target from their actual asigned target list fitting their mode.

A special thanks to Shuul(o), who has been discussing the target selection with me and helping me test the changes! :)

Installation:

Download the file, extract the improvedturretmodes folder and move it to your extensions folder.

In case you don't have one yet, simply create it at the base directory of X4, so for a steam user it would be: Steam\steamapps\common\X4 Foundations\extensions

Deinstallation:

Simply remove the folder, no savegame issues whatsoever.

  • Last update: Sunday, February 2, 2020
  • Genre: Simulation
  • File size: 3.9 KB
see more

Popular files for X4: Foundations

Name

Type

Size

Date

Total

7 days

X4: Foundations - X4 Cheat Menu v.0.9.7.6.3 mod 39.5 KB 1/5/2019 2.9K 7
X4: Foundations - Reactive Factions v.1.6 mod 249.4 KB 10/3/2020 373 4
X4: Foundations - Improved Turret Modes v.0.3 mod 3.9 KB 2/2/2020 881 3
X4: Foundations - Destructable Khaak Stations v.0.1 mod 2.6 KB 1/28/2020 380 3
X4: Foundations - Advanced Satellite Range v.0.9.3 mod 11.7 KB 3/9/2019 2.2K 3
X4: Foundations - Learning All The Things v.0.6 mod 3.5 KB 10/3/2020 3.2K 2