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

Sight

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: Sight
File(s): rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 1
Applicable to: TechnoTypes:

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes



This flag specifies the distance in cells that the unit can see into the shroud.

AI's target selection is not based on whether the target is visible, that is, whether a cell is covered by shroud makes no difference to the AI, unless specific functions themselves rely on Sight settings to operate. Also because of this reason, whether vanilla's GapRadiusInCells or Ares' SW.FireIntoShroud and other features only take effect for human players.

Notes

For Red Alert sight is limited to 10 ;Value greater than that will block vision Sight=0.

Bugs/Side-Effects/Unexpected Limitations

Sight was using a lookup table almost like CellSpread, thus it was limited to a maximum value of 10. It can be set to any positive integer, but setting it higher than 10 will have the same effect as setting it to 10.

  • Ares increases this in version 0.6 and now larger values can be used.

Ares Info

For performance reasons, Sight values larger than 10 should be used judiciously. It is not designed for full map reveal.

Using larger Sight values will result in a distinct octagonal shaped field of view. That is how CellSpread logic works and thus no bug.

See Also