Waterfall fog spawner 1.5
This version is heavily optimized, and using waterfall fog spawners will have a much weaker effect on performance.
Changes
- Performance impact significantly reduced. Waterfall fog particles aren't respawned, instead the same particles are reused.
- Fog particles will animate more slowly if the player is far away (1 tic slower per every 256 map units of distance). This effect is clientside-only but should be compatible with multiplayer since the waterfall spawner and particles are non-interactive.
- Added argument #4: density. The higher the number, the less frequently fog particles will spawn. For example, if your waterfall is 128 units long and argument 4 is
8, a waterfall fog particle will be spawned every 8 units along its length, meaning 16 in total. The default value is1and it usually works, but if you use higher scale values (argument #3), then you might want to reduce the density. - From now on you need to place the waterfall fog spawner at the center of the waterfall linedef (not the edge), and make sure it faces away or towards the linedef (not alongside it).