TurretOffset
| 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.
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.

