I've updated the mission objects/turrets hook.
You can now define more than 2 turrets.
The craft turrets are no longer limited to CorellianTransport2, MilleniumFalcon2, and FamilyTransport. You can now enable turrets for any craft.
Suppose that the player craft is "FlightModels\[Player].opt".
The possible involved files are:
- "FlightModels\[Player]Turrets.txt"
- "FlightModels\[Player].ini", section "[Turrets]"
- "FlightModels\[Player]Gunner.opt"
- "FlightModels\[Player]Gunner2.opt"
- "FlightModels\CorellianTransportGunner.opt"
To define the turrets, create a file named "FlightModels\[Player]Turrets.txt" or create a section named "[Turrets]" in "FlightModels\[Player].ini".
If the file does not exist, default values are read from XWingAlliance.exe.
The format is a line per turret:
PositionX, PositionY, PositionZ, OrientationX, OrientationY, ArcX, ArcY, OptModel, IsInverted
If a turrets section is not used, there is a limit of 2 turrets per craft.
To define a custom gunner opt, create a "[Player]Gunner.opt" file.
To define a second custom gunner opt, create a "[Player]Gunner2.opt" file.
See "FamilyTransportTurrets.txt".
Code: Select all
; FamilyTransportTurrets.txt
; PositionX, PositionY, PositionZ, OrientationX, OrientationY, ArcX, ArcY, OptModel, IsInverted
0, 19, 250, 49152, 16384, 12040, 17308, CorellianTransportGunner, 0
0, 19, 250, 16384, 49152, 12040, 17308, CorellianTransportGunner, 1