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

DisguiseWhenStill

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: DisguiseWhenStill
File(s): rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Applicable to: VehicleTypes


For voxel vehicles with CanDisguise=yes to allow them to disguise themselves as the styles listed under [General]DefaultMirageDisguises=List of TerrainTypes when stationary.

Notes

When both DisguiseWhenStill and PermaDisguise are present, prioritize the use of PermaDisguise.

For a vehicle, it obtains disguise graphics by attacking a TerrainType using a weapon with MakesDisguise=yes on its warhead. If the vehicle has CanDisguise=yes, it will immediately lose the disguise graphics upon movement.

However, if the vehicle possesses DisguiseWhenStill=yes, it not only starts with default disguise graphics but can also maintain the previously acquired attack-based disguise graphics after completing movement without losing them.

When unable to obtain disguise graphics through MakesDisguise=yes warheads, a unit with CanDisguise=yes can acquire graphics through two methods:

  1. Using DisguiseWhenStill=yes to disguise as a randomly selected terrain type from the [General]DefaultMirageDisguises= list when stationary.
  2. Using PermaDisguise=yes to disguise as an infantry type based on its house's side (AlliedDisguise/SovietDisguise/ThirdDisguise).
    • For vehicle types, this will use all frames of the disguise graphics as animations similar to how MakesDisguise=yes acquires tree graphics when CanDisguise=no. However, due to different sequence mechanisms, when moving:
      • Tree graphics obtained via MakesDisguise=yes will play body and shadow frames from front to back.
      • Infantry graphics obtained via PermaDisguise=yes will also play sequentially from front to back.
        • Taking Yuri's Revenge's G.I. as an example, this manifests as first rotating counterclockwise through stand frames before transitioning to walk frames.

Bugs/Side-Effects/Unexpected Limitations

For VehicleTypes that use Shape resource files, when displaying this effect for the owner's house, they fail to properly call the disguise images, resulting in the vehicle's image disappearing for a period of time (instead of transforming into terraintypes) before reappearing. However, on screens belonging to enemy players, the disguise image is correctly displayed when stationary without causing exposure.

  • [DRON] -> DisguiseWhenStill=yes

See Also