FogOfWar
As an Object
FogOfWar is a map effect that continuously grows. When a unit's vision can no longer cover a certain cell, if that cell was previously revealed, it will be obscured by a layer of translucent gray fog as the fog grows. If all vision is suddenly lost due to reasons such as the creation of darkness-type crates or other causes, filling the shroud completely, then the fog will also fill instantly and simultaneously. Under the fog, animations and enemy units will not be displayed, and buildings and terrains will always be drawn in the style before the fog occupied them even if these buildings themselves are destroyed. Only by re-exploring the area can the units beneath be seen and the drawing of buildings etc. be refreshed, giving these areas greater uncertainty during the game.
- Starting from Yuri's Revenge, this feature has lost its effect of hiding objects under fog.
Notes
FogOfWar and Shroud are two different objects.
even though they use the same rendering method.
Rendering Method
Uses fog.shp to retrieve each cell and frames under different reveal states. The color indices in the frames represent alpha depth.
See Also
As a Flag
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Flag: | FogOfWar |
File(s): | Maps, rules(md).ini (RA2/YR only) |
Values: | Boolean values: yes or no, true or false, 1 or 0 |
Default: | no |
Applicable to: | SpecialFlags, MultiplayerDialogSettings |
Determines whether Fog of War is enabled. If enabled, fog will grow at intervals of FogRate.
Notes
In campaign mode, despite listed under [General] in Tiberian Sun and Firestorm and it is also parsed from [MultiplayerDialogSettings] in Red Alert 2 and Yuri's Revenge, this flag is only read from map file's [SpecialFlags] section in those four games.
In skirmish mode, for Tiberian Sun and Firestorm, this only adheres to the checkbox on the panel; whereas in Red Alert 2 and Yuri's Revenge, there is no such checkbox and this function cannot be enabled.
- However, if you use the cncnet-spawner (YR extension), you can force this effect to be enabled in skirmish mode by setting FogOfWar=yes in spawn.ini[1] as well.
FogOfWar in Yuri's Revenge
Bugs/Side-Effects/Unexpected Limitations
The Fog of War is notoriously prone to crashes due to frequent out of bound surface blits. These crashes have since been fixed in modern DirectDraw wrappers like CNC-DDraw and TS-DDraw.
There are also minor bugs/side-effects like animated terrain objects (e.g. blossom trees, ore drills) becoming invisible under the fog.
Footnotes
- ↑ This file is usually generated by the client paired with the extension.