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

UnloadingClass

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: UnloadingClass
File(s): rules(md).ini
Values: Strings: Normal text. (Limited to: VehicleTypes)
Default: none
Applicable to: VehicleTypes


Specifies the vehicle that this unit should turn into when performing a special function. The unit doesn't actually turn into another vehicle, though, and usually only the Image value is read. The default value 'none' means that the original unit's image will be used.

Notes

This logic only invokes the rendering method of the target VehicleType, meaning logical data such as ROT=int and Turret=bool will remain unchanged.

  • Since Turret is associated with voxel rendering, the Turret of the target VehicleType determines whether the deployed image possesses a turret, but doesn't actually grant logical turret functionality.
    • This implies that if the original unit has Turret=no while the hosting image unit has Turret=yes, disregarding other factors like OmniFire, even though the deployed unit visually gains a turret, it still needs to rotate its body toward the target to fire, with the turret synchronously following the rotation.

Bugs/Side-Effects/Unexpected Limitations

Although this tag is parsed for all TechnoTypes, the logic works only for VehicleTypes that make use of Dock and IsSimpleDeployer.

This kind of logic that only replaces images can only use resource files of the same format. In other words, you cannot make a Voxel vehicle normally switch to using images from a Shape vehicle, and the same applies to Ares' WaterImage.