Jump to content

AmbientChangeStep: Difference between revisions

From ModEnc²
en>Crimsonum
Un-Deezire'd
Rain-Islet (talk | contribs)
m [bot] Batch update {{Bugs}} templates.
 
(5 intermediate revisions by 4 users not shown)
Line 9: Line 9:
|yr=yes
|yr=yes
}}
}}
Specifies the default amount of [[ambient]] light to change on each "step" of ambient light recalculations. When the ambient lighting level in a [[map]] is changed via [[triggers|trigger]] action #73, the map's {{f|Ambient|link}} value (or {{f|IonAmbient|link}}, if Ion Storm/Lightning Storm is active) is increased or decreased in steps by this amount until it reaches the new level. This amount can be changed with action #71. The default delay between each step is defined by {{f|AmbientChangeRate|link}}.
Specifies the default amount of [[ambient]] light to change on each "step" of ambient light recalculations. When the ambient lighting level in a [[map]] is changed via [[triggers|trigger]] action #73, the map's {{f|Ambient|link}} value (or {{f|IonAmbient|link}}, if Ion Storm/Lightning Storm is active) is increased or decreased in steps by this amount until it reaches the new level. This amount can be changed with action #71. The default delay between each step is defined by {{f|AmbientChangeRate|link}}.


{{bugs}}
=={{bugs}}==
 
If {{f|{{PAGENAME}}}} is defined in [[map]] code, you must also redefine {{f|ExtraUnitLight|link}}, {{f|ExtraInfantryLight|link}} and {{f|ExtraAircraftLight|link}}, else these are reset to [[rules]] value without decimal component.<br>
If {{f|{{PAGENAME}}}} is defined in [[map]] code, you must also redefine {{f|ExtraUnitLight|link}}, {{f|ExtraInfantryLight|link}} and {{f|ExtraAircraftLight|link}}, else these are reset to 0.0.
*values=-1 to -2147483648 will make the light that comes from <font color="red">'''Nuclear missile'''</font>+<font color="#570987">'''Psychic Dominator'''</font> work incorrectly and gives the most bizarre effects.


==See Also==
==See Also==
Line 20: Line 19:
* [[Ambient]]
* [[Ambient]]
* [[IonAmbient]]
* [[IonAmbient]]
[[Category:Resetting Flags]]

Latest revision as of 17:09, 2 July 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: AmbientChangeStep
File(s): rules(md).ini
Values: Floating point values: Any decimal number (clearer range should be added in Template:Values).
Applicable to: AudioVisual


Specifies the default amount of ambient light to change on each "step" of ambient light recalculations. When the ambient lighting level in a map is changed via trigger action #73, the map's Ambient value (or IonAmbient, if Ion Storm/Lightning Storm is active) is increased or decreased in steps by this amount until it reaches the new level. This amount can be changed with action #71. The default delay between each step is defined by AmbientChangeRate.

Bugs/Side-Effects/Unexpected Limitations

If AmbientChangeStep is defined in map code, you must also redefine ExtraUnitLight, ExtraInfantryLight and ExtraAircraftLight, else these are reset to rules value without decimal component.

  • values=-1 to -2147483648 will make the light that comes from Nuclear missile+Psychic Dominator work incorrectly and gives the most bizarre effects.

See Also