Cloudburst.component
README.md
Cloudburst
The scene's weather, shared by every player. Put one on a synced entity:
local e = entity.spawnSynced("Weather")
e.component.add("Cloudburst", { preset = "light_spring_rain" })
preset picks a named weather (one field swaps a light shower for a night storm). Clear it and
kind + intensity pick one directly, with rainLook, snowLook, lightning, splash and
fogBank choosing how it looks. A change fades in over changeSeconds identically on every
machine; cycle ("clear_day:3, night_storm_town:4") runs a forecast by itself. Any player can
call setWeather(opts, seconds); it reaches the entity's owner, who writes it. Switches turn
sound, wet surfaces, storm lighting, fog and clouds on or off, and quality scales drop counts.