← Back to Portfolio

CLIENT + SERVER

Weather system

Server-driven weighted weather cycle with lighting packs, global VFX control, and smooth transitions.

~1 DAY~200 USD
Tasks completed
  • Server-driven weather cycle; weighted selection: Default/Nightmare/Lunar/Lucid/Dreamcore
  • Configurable trigger chance (default 99%) and interval (default 3600s)
  • Graceful fallback to Default lighting when weather doesn't trigger
  • Smooth spawn: pivot to target, primary anchored, tween up from below
  • Global VFX control: ParticleEmitters, Beams, Trails, Lights, Smoke, Fire, Sparkles
  • Preload safety: template VFX disabled at startup
  • Beam transparency cinematic fade-in via NumberSequence tween
  • Lighting packs from Lighting/WeatherSystem/<Pack>; one-time Default baseline install
  • Tween classes: Atmosphere, ColorCorrection, DepthOfField, Blur, SunRays, Bloom; Sky replace
  • Per-weather time-of-day override via config clockTime
  • Safe cleanup: destroy previous model and replace managed Lighting instances
  • Lightweight timer loop (no per-frame polling); smooth tweened transitions
  • Tunables: LIGHTING_TWEEN_SECONDS=1.5, WEATHER_VFX_TWEEN_SECONDS=1.0, spawn vector
  • Guard clauses and clean, performant structure