mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-14 16:33:52 +00:00
feat: add distinct STORM weather type with wind-driven particles
Add Weather::Type::STORM enum value and wire it from SMSG_WEATHER type 3. Storm particles are faster (70 units/s vs rain's 50), wind-angled at 15+ units lateral velocity with gusty turbulence, darker blue-grey tint, and shorter lifetime. Previously storms rendered identically to rain.
This commit is contained in:
parent
d1bcd2f844
commit
df7feed648
3 changed files with 16 additions and 2 deletions
|
|
@ -3192,7 +3192,7 @@ void Renderer::update(float deltaTime) {
|
|||
// Server-driven weather (SMSG_WEATHER) — authoritative
|
||||
if (wType == 1) weather->setWeatherType(Weather::Type::RAIN);
|
||||
else if (wType == 2) weather->setWeatherType(Weather::Type::SNOW);
|
||||
else if (wType == 3) weather->setWeatherType(Weather::Type::RAIN); // thunderstorm — use rain particles
|
||||
else if (wType == 3) weather->setWeatherType(Weather::Type::STORM);
|
||||
else weather->setWeatherType(Weather::Type::NONE);
|
||||
weather->setIntensity(wInt);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue