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

CellRangefinding

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: CellRangefinding
File(s): rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no
Applicable to: weapons


Decide to use cell as the distance calculation unit for this weapon instead of lepton.

Notes

Actually, it's not just a unit change; when set to yes, the calculation of whether the range is satisfied will use the distance between the centers of the cells where both parties are located, rather than the precise distance between the two entities. In vanilla, it is often used for close-range weapons to ensure they have a tolerance distance that allows firing.

Because the Range is only 1.5, using precise distance calculation, and due to different sub cells, the GGI's range is insufficient, so it paces back and forth to attack the target.
Under CellRangefinding=yes, the distance calculation method allows the GGI to shoot normally even when the Range is only 1.5 and the actual distance is farther due to sub cells.

An additional effect is that firer[1] units that are above ground but not above[2] the airspace judgment threshold will also ignore their own height, because under this algorithm, the firer's coordinates will be calculated based on the cell center coordinates.

Footnotes

  1. Excluding victims
  2. Because units above this threshold will reprocess the height difference in subsequent calculations before the final distance calculation.

See Also