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

CloakRadiusInCells

From ModEnc
Revision as of 12:05, 18 September 2024 by Testid123 (talk | contribs)
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: CloakRadiusInCells
File(s): Rules(md).ini
Values: integer
Special Values: -1, -2 to -2147483648
Default: 0
Applicable to: BuildingTypes


  • If CloakGenerator=yes is set, this specifies the radius, in cells, of the cloak generator this BuildingType has.
  • If SensorArray=yes is set, this specifies the radius, in cells, of the sensor array this BuildingType has. (At least in TS, not confirmed for RA2/later).

Bugs/Side-Effects/Unexpected Limitations

Setting a negative value to CloakRadiusInCells has the following strange effects:
-1 Gives CloakRadiusInCells=15 (even if CloakRadiusInCells=-1) When a BuildingTypes with this tag is not present in the game by any means, the effects of the CloakGenerator=yes tag are not removed +Reveals nearby areas if a BuildingTypes with this tag is not present on the map by any means (equivalent to CellSpread=1)

-2 Same effect as -1 above Except reveals nearby areas in a straight line of 5 cells if a BuildingTypes with this tag is not present on the map by any means (1 cell for the zero area of ​​the remaining 2 cells)

-3 The result is the same as -1 mentioned above, except that it reveals the adjacent area as a straight line for 7 cells if the BuildingTypes with this tag are not present on the map in any way (1 cell for the zero area of ​​the remaining 3 cells).