Jump to content

Cloakable: Difference between revisions

From ModEnc²
en>DeathFish
Cloakable
Rain-Islet (talk | contribs)
m [bot] Batch update {{Bugs}} templates.
 
(19 intermediate revisions by 5 users not shown)
Line 4: Line 4:
|values=boolean
|values=boolean
|default=no
|default=no
|types={{Categ|InfantryTypes}}, {{Categ|VehicleTypes}},{{Categ|BuildingTypes}}
|types={{Categ|InfantryTypes}},{{Categ|VehicleTypes}},{{Categ|BuildingTypes}}
|ra=yes
|ra=yes
|cs=yes
|cs=yes
Line 13: Line 13:
|ra2=yes
|ra2=yes
|yr=yes
|yr=yes
|rp=yes
}}
}}
Specifies whether this object has a cloaking device which can render it invisible to enemy objects without {{f|Sensors|yes|link}} or {{f|SensorArray|yes|link}}.
Specifies whether this object has a cloaking device, which can render it invisible to enemy units without {{f|Sensors|yes|link}}, or [[BuildingTypes|buildings]] without {{f|SensorArray|yes|link}}. This effect also applies to the mini-map, which will only show the revealed (uncloaked) state of the unit.


{{Bugs}}
==In {{ts}}==
Setting this flag on unit which higher than ground will doesn't work, however granting them cloakability via {{f|VeteranAbilities|link}} or {{f|EliteAbilities|link}} does.
Strangely, despite [[TechnoTypes]] lacking {{f|Sensors|yes|link}}, they can still automatically attack units that have <tt>Cloakable=yes</tt> within range, as if there was no cloaking effect.
<ref name="ares fixed">[[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.</ref>


Unlike in later games, TS (and [[Firestorm]]) support <tt>Cloakable</tt> and [[CloakingSpeed]] tags on buildings, without any problems.


*Although <u><b>[[InfantryTypes]]</b></u> There will be <u><b><font style="color:#4169E1">Cloakable=yes</font></b></u><br>
==In {{ra2}}==
But when <u><b>[[InfantryTypes]]</b></u> get ordered to attack the target far away <u><b>[[InfantryTypes]]</b></u> will periodically reveal itself. until reaching the goal<br>
Earlier games did not have submarines, and so the cloaking effect only applied to terrestrial units, but in RA2 the cloaking system was repurposed for the Soviet Attack Sub. As such, the sound effects were updated to reflect their aquatic nature, with the splash effect defined by [[CloakSound]] under [AudioVisual], played for both cloaking and decloaking.  
*Causes [[InfantryTypes]],[[VehicleTypes]] to receive the attack cursor[[TechnoTypes]] even though they cannot actually attack (If the warhead is determined to attack It will attack normally).<br>[[File:Dog and Cloakable=yes.gif]]


==Nots==
The {{f|CloakStop|yes|link}} tag was added to keep a unit like the Attack Sub cloaked when firing or in ambush position.
Strangely, for [[Tiberian Sun]], even though our units and buildings don't have {{f|Sensors|yes|link}} but can attack units that have <b>Cloakable=yes</b> immediately, as if there was no cloaking effect.<br>
 
(For [[Tiberian Sun]] and [[Firestorm]]) The <b>Cloakable=yes</b> and [[CloakingSpeed]] tags can be used with [[BuildingTypes]] without any problems.
=={{Bugs}}==
In RA2, a fully cloaked unit (presumably submarine) might still reveal itself when retaliating (enabled by {{f|CanRetaliate|yes|link}}), or if the target of attack is sufficiently far away from it.
 
Explicitly set <tt>Cloakable=no</tt> will be overridden if a unit gains the abilities through [[Veterancy|promotion]].
 
[[SpeedType|Hovering]]/Flying units do not support <tt>Cloakable=yes</tt>, however granting them cloakability via [[VeteranAbilities]] or [[EliteAbilities]] is possible.
* Ares has removed this hardcode, allowing the definition of the height for determining cloakable, and defaults it to the value of [[HoverHeight]] located under [General], used by hovering units. Therefore by default, just having Ares enables the logic for hovering units, and requires additional configuration to return to vanilla game behaviour.
 
Cloaked units will not trigger/activate [[Celltags]] on maps. This was an intentional design choice from Westwood, according to analysis of the engine code.


==See also==
==See also==
<references/>
[[CloakingStages]]
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.<br>
 
Of course, you can also use the new keys to disable it to maintain the same effect as their work in {{yr}}
[[Sensors]]
* [[Sensors]]
 
* [[SensorArray]]
[[SensorArray]]
 
[[RadarInvisible]]

Latest revision as of 17:15, 2 July 2025

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 units without Sensors=yes, or buildings without SensorArray=yes. This effect also applies to the mini-map, which will only show the revealed (uncloaked) state of the unit.

In Tiberian Sun

Strangely, despite TechnoTypes lacking Sensors=yes, they can still automatically attack units that have Cloakable=yes within range, as if there was no cloaking effect.

Unlike in later games, TS (and Firestorm) support Cloakable and CloakingSpeed tags on buildings, without any problems.

In Red Alert 2

Earlier games did not have submarines, and so the cloaking effect only applied to terrestrial units, but in RA2 the cloaking system was repurposed for the Soviet Attack Sub. As such, the sound effects were updated to reflect their aquatic nature, with the splash effect defined by CloakSound under [AudioVisual], played for both cloaking and decloaking.

The CloakStop=yes tag was added to keep a unit like the Attack Sub cloaked when firing or in ambush position.

Bugs/Side-Effects/Unexpected Limitations

In RA2, a fully cloaked unit (presumably submarine) might still reveal itself when retaliating (enabled by CanRetaliate=yes), or if the target of attack is sufficiently far away from it.

Explicitly set Cloakable=no will be overridden if a unit gains the abilities through promotion.

Hovering/Flying units do not support Cloakable=yes, however granting them cloakability via VeteranAbilities or EliteAbilities is possible.

  • Ares has removed this hardcode, allowing the definition of the height for determining cloakable, and defaults it to the value of HoverHeight located under [General], used by hovering units. Therefore by default, just having Ares enables the logic for hovering units, and requires additional configuration to return to vanilla game behaviour.

Cloaked units will not trigger/activate Celltags on maps. This was an intentional design choice from Westwood, according to analysis of the engine code.

See also

CloakingStages

Sensors

SensorArray

RadarInvisible