Jump to content

Cloakable

From ModEnc²
Revision as of 21:39, 31 March 2025 by MarkJFox (talk | contribs) (10 revisions imported)
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Cloakable
File(s): Rules(md).ini
Values: boolean
Default: no
Applicable to: InfantryTypes, VehicleTypes,BuildingTypes


Specifies whether this object has a cloaking device which can render it invisible to enemy objects without Sensors=yes or SensorArray=yes.

Bugs/Side-Effects/Unexpected Limitations

[1]

But when InfantryTypes get ordered to attack the target far away InfantryTypes will periodically reveal itself. until reaching the goal

Nots

Strangely, for Tiberian Sun, even though our units and buildings don't have Sensors=yes but can attack units that have Cloakable=yes immediately, as if there was no cloaking effect.
(For Tiberian Sun and Firestorm) The Cloakable=yes and CloakingSpeed tags can be used with BuildingTypes without any problems.

See also

  1. Ares has removed this hardcode, allowing the definition of the height for determining cloakable, and defaults it to the value of [General] > HoverHeight= used by hovering units.

That is to say, as long as you use Ares, even if you don't make any changes, you can allow Hover units to use this logic normally.
Of course, you can also use the new keys to disable it to maintain the same effect as their work in Yuri's Revenge