Download Games & Demos Mods & Add-Ons Patches Tools Wallpapers 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

downloads836

(last 7 days)1

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.7K 6
X4: Foundations - Shield and Weapon Overhaul. Strong turrets. Balanced ships v.1.7.4 mod 188.8 KB 1/4/2019 1.4K 4
X4: Foundations - Music Replacer X v.1.00 mod 234.3 MB 12/11/2018 359 3
X4: Foundations - CrystalFinder v.1.30 mod 18.7 KB 10/3/2020 1.7K 3
X4: Foundations - Advanced Satellite Range v.0.9.3 mod 11.7 KB 3/9/2019 2.2K 3
X4: Foundations - Improved Repair Laser v.0.1 mod 1.9 KB 12/2/2018 757 2