Jump to content

Underwater: Difference between revisions

From ModEnc²
en>DCoder
No edit summary
 
Rain-Islet (talk | contribs)
m [bot] Batch update {{Bugs}} templates.
 
(8 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
{{Flag
Can be set to 'yes' or 'no' and determines if this object with Naval=yes set is classed as being underwater for the purposes of the NavalTargeting= logic. This is used to differentiate between objects on the surface of the water and below it.
|name=Underwater
|files={{Categ|Rules(md).ini}}
|values=boolean
|default=no
|types={{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|BuildingTypes}}, {{Categ|Projectiles}}
|ra=yes
|ra2=yes
|yr=yes
|rp=yes
}}
 
{{tt|Underwater{{Equal}}yes}} has three known effects and one untested effect:
* Primarily, it is used to classify the object as being underwater, for the purposes of the {{f|NavalTargeting|link}} logic.
* It will also stop the object from displaying the {{f|Wake|link}} animation when traveling over water.
* It will disable the "sinking" death logic for the unit, instead displaying explosions
* {{tt|It will also restrict units from recloaking when it is in fact on land.}}
 
For [[Red Alert]] this is used with [[Projectiles]] which works like a [[Level]] tag (I'm not sure Has it been replaced by a name change?)
=={{Bugs}}==
 
If you give '''Underwater=yes''' to any building that is in the water Those buildings will suffer the same negative effects as units in water.
 
'''[GAYAYD]'''
 
'''Underwater=yes'''
 
When we force '''Destroyer(DEST)''' to attack the '''Allied Shipyard(GAYARD)'''
 
'''Destroyer(DEST)''' will attack the '''Allied Shipyard(GAYARD)''' with a secondary weapon([[Secondary]]) instead of the main weapon([[Primary]]).

Latest revision as of 18:01, 2 July 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Underwater
File(s): Rules(md).ini
Values: boolean
Default: no
Applicable to: InfantryTypes, VehicleTypes, AircraftTypes, BuildingTypes, Projectiles


Underwater=yes has three known effects and one untested effect:

  • Primarily, it is used to classify the object as being underwater, for the purposes of the NavalTargeting logic.
  • It will also stop the object from displaying the Wake animation when traveling over water.
  • It will disable the "sinking" death logic for the unit, instead displaying explosions
  • It will also restrict units from recloaking when it is in fact on land.

For Red Alert this is used with Projectiles which works like a Level tag (I'm not sure Has it been replaced by a name change?)

Bugs/Side-Effects/Unexpected Limitations

If you give Underwater=yes to any building that is in the water Those buildings will suffer the same negative effects as units in water.

[GAYAYD]

Underwater=yes

When we force Destroyer(DEST) to attack the Allied Shipyard(GAYARD)

Destroyer(DEST) will attack the Allied Shipyard(GAYARD) with a secondary weapon(Secondary) instead of the main weapon(Primary).