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

WindEffect

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: WindEffect
File(s): rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. (Limited to: <=10)
Default: 0
Applicable to: Particles


Determines how big effect the wind system has to this particle.

Notes

The particle will move directionally towards the orientation defined by [General]WindDirection= only when this value is > 0.

The interval/cycle for directional movement is (10 / WindEffect) frames, calculated based on game frames using the following formula:

CurrentFrame % (10 / WindEffect) == 0 

As an int value this is rounded down, so the actual relationship between values and cycles is as follows:

WindEffect Moving interval (in frames)
1 10
2 5
3 - 5 2
6 - 10 1 (every frame)

Gas-type particles inherently have a random-direction drift speed (max value 2) that operates additively with this effect. Therefore, even if set to 0 or negative values (unaffected by this effect), particles will still move.

Bugs/Side-Effects/Unexpected Limitations

If WindEffect > 10, the modulus operation will divide by 0, triggering EIP#0062D2E8.

References

Starting from Phobos Build#39, the drift speed of particles with BehavesLike=Gas can be customized. Refer to Phobos documentation.

See Also