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

TargetCoordOffset

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: TargetCoordOffset
File(s): rules(md).ini
Values: three comma-separated signed integers
Applicable to: BuildingTypes


Define the aiming position when other units attack this building, using the XYZ coordinate system.

The detonation position of the weapon, the endpoint position of the TargetLaser, or the target point of the attack command line will be this set position.

Notes

This does not affect Range determination and AA=yes checks.

  • For Arcing-type projectiles, their trajectory will still proceed as usual.
  • For ROT-type projectiles, their trajectory will also be altered to fly towards this set position. However, if the building is destroyed before impact, the target will be reverted to the building's default impact location on the ground.
  • Vertical-type projectiles ignore this setting.
  • For Inviso-type projectiles, if they have FlakScatter=yes (enabling detonation position randomization), the center of this randomization will still be the default position, meaning the setting here will be ignored.
  • For Arcing-type and Inviso-type projectiles, if they have Inaccurate=yes, the detonation point will use the default position instead of the one set here. Nevertheless, effects like IsLaser and the attack command line will still use the position set here.

Bugs/Side-Effects/Unexpected Limitations

Railgun particles being drawn to wrong coordinate against buildings with non-default TargetCoordOffset.

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

TargetCoordOffset not being taken into accord for several things like fire angle calculations and target lines.

  • This bug has been fixed in Phobos Build#33. Furthermore, effects like IsLaser will always ignore this setting.

References

This flag is very useful for the Custom Foundation functionality for buildings introduced in Ares from version 0.1. If you need a hollow foundation while also wanting to ensure normal lethality without changing the incoming bullets, you can use TargetCoordOffset to make it detonate correctly on one of the cells occupied by the foundation.

See Also