X4: Foundations
0 of 0

File information

Last updated

Original upload

Created by

MoonShadowFan

Uploaded by

MoonShadowFan

Virus scan

Safe to use

Tags for this mod

About this mod

Enhances Bailing to allow NPC v NPC bailing and implements a clean up mechanism for abandoned ships to remove them after a set time period.

Requirements
Permissions and credits
Changelogs
Enhances the Bailing script in X4 Foundations to allow NPC v NPC bailing, all ships have a chance to bail some or all of their crew based on a number of calculations. If the number of crew bailing includes the pilot then the ship will be abandoned. Once abandoned the ship will remain intact for some time before being destroyed (reactor failure, breaks apart.....). I've tried to base this on my experience of Litcube's bailing for X3 which I loved.

Updated for 4.2, mainly tested with 4.0/4.1 , but I am currently running with the 4.2 with no issues. This version is tuned for my preference so you will see occasional bailing and not ships lying everywhere. I typically see one bail every five minutes roughly.

Chance of crew bailing is based on a number of calculations:
  • Base Chance of 10%
  • Additional percentage chance (1%-10%) based on the crew remaining on board compared to the maximum ships complement
  • Additional percentage chance (1%-10%) based on the comparative hull/shield values between attacker and the target
  • Additional percentage chance (1%-10%) based on the relative size of the ships
  • Reduction in percentage chance based on the pilots morale
  • Military ships chance of bailing is half that of civilian ships
  • Capital ships (Destroyers, Frigates, Carriers, Battleships, Scavengers, resuppliers) can bail all crew but not the pilot, although there is a 1% chance that the pilot will bail as well. Remember that's a 1% chance if all the crew bails, so very rare.

Once the pilot bails the ship will be abandoned with some equipment/cargo destroyed and some intact at random (replacing the vanilla ship equipment destruction). For each abandoned ship a timer will be set for between 30 minutes and 4 hours of game time. After this time (and the next time someone bails) the ship will be destroyed as it would have been if enemy fire killed it. If you want to justify it then the ship blows because of damage sustained in the fight or just breaks up after a while.

If you have and advanced satellite in the sector then you will get a message in your log (search for satellite) and also an alert will pop up to let you know.

Anyway have fun.

Inspired by the fixbaillogic mod by kevrlet2. Written by me from the existing bailing logic in the egosoft scripts.