WindEffect
| 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.