X4: Foundations
0 of 0

File information

Last updated

Original upload

Created by

WhoKnows

Uploaded by

DrWhoKnows

Virus scan

Safe to use

Tags for this mod

About this mod

Station-based turrets receive additional buff in range and accuracy.

Requirements
Permissions and credits
Changelogs
This mod together with Carrier Warp are components of a bigger project Station Combat Rebalance, but is independent of the latter.

Make turrets on stations have longer range and higher accuracy. There are three possible buffs and they are multiplicative. 

1. Base buff:
Turrets on any station receive this buff.
Effect: +30% bullet speed, +20% shield

2. Sector owner ship buff:
Uncontested sector ownership grants all turrets on stations owned by the sector owner or allies of the sector owner (relation > 27) additional buff.
Effect: +10% bullet lifetime or beam length, +10% rotation speed

3. Admin module buff:
Defense station with an Admin module receives additional buff. The station must NOT have any production/recycling/building modules to receive this buff.
Effect: +40% bullet lifetime or beam length, +40% rotation speed

Buffs are implemented as equipment mods but they are invisible in station loadout panel on map because the game only displays mods on ships. It is too dangerous to edit the map's UI scripts to show the buffs. Right-click menu is used instead. All right click options added by this mod are grouped in the "Custom Actions" section.

To see buff on a station:
When piloting a ship yourself, select the station, right click it to open the context menu, then choose "Display Station Buff". Buff details will then appear on the notification area at the bottom left corner of screen.

To remove/refresh buff on a player-owner station:
Player can choose to remove or reapply buff on his/her own stations. The options are displayed alongside the "Display Station Buff" option when possible.

Known Issues:
1. The buff seems to have issues with special stations (stations with special modules, e.g.TEL trade station, Xenon asteroid station, etc.) and throws error in debug log in these cases.
2. Beam turrets seems to receive both the bullet speed and beam length buffs, at least when I output their max range in debug log it seemed so.
3. Mod not thoroughly tested, use it at your own risk.

If you want to modify the buffs, change them in [game]/extensions/static_defense/libraries/equipmentmods.xml

Thanks to SirNukes' mod support APIs