ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

TurretOffset

From ModEnc
Jump to navigation Jump to search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: TurretOffset
File(s): art(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: TechnoTypes:

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes



Define the offset in the F direction of the voxel-based turret and barrel rotation axis relative to the body rotation axis for the unit, in leptons.

Notes

Because the FLH of turret units is based on the center of the turret, this also affects the rotation center of FLH in the horizontal direction.

Only BuildingTypes that follow Default naming convention can normally use TurretOffset.

Bugs/Side-Effects/Unexpected Limitations

Because the FLH of BuildingTypes uses a separate system, this function has only graphical effects on them.

Just as described above, this does not apply to shape-based units.

  • This bug has been fixed in Phobos Build#37.

In Tiberian Sun, FLH did not correctly base on the turret position offset, but only superimposed the TurretOffset value onto the F direction and continued to use the body center as the rotation axis. In other words, at that time, this function only acted on graphical effects.

PrimaryFireFLH=256,0,0
TurretOffset=512

Phobos Info

Starting from Phobos Build#7, the TurretOffset flag for voxel turreted TechnoTypes now supports FLH (forward, lateral, height) values such as TurretOffset=F,L or TurretOffset=F,L,H, which means the turret location can now be adjusted in all three axes.

See Also

Voxel Turret and Barrel Positioning