Weather

From SDG Wiki
Jump to navigation Jump to search

Weather is a game mechanic in Unturned (version 3). There are four types of weather that can be experienced during normal gameplay, although game modifications can add additional weather types. Most weather conditions are detrimental to the player, such as by introducing temperature mechanics or having reduced visibility during the duration of the weather.

Internally, one weather type is always scheduled to occur, in a random amount of time. The weather type that is scheduled to occur is considered to be in the "forecast" stage. Once the forecast timer ends, that weather will enter the "active" stage and occur for a random duration. Only one weather type can be scheduled at a time, and a new one will be scheduled immediately after the active weather ends. The length of the forecast and active stages can be configured separately, from the gameplay config. The relevant settings will differ depending on how the map has been configured to handle schedulable weather.

Types of weather

Rainstorm

Rainstorms consist of rain precipitation and light fog. Clouds darken when a rainstorm is about to begin. When a rainstorm ends, all crops will instantly be fully grown, and Rain Barrels will be completely refilled.

Heavy thunderstorm

Heavy thunderstorms are more severe than normal rainstorms, and have strong winds. Visibility is further reduced by thicker fog, player hearing can be more difficult due to thunder, and lightning strikes will randomly occur near the player. In multiplayer servers, lightning strikes will always occur within half a kilometer of a player. These storms can occur in PEI, Washington, and Russia.

When a thunderstorm ends, all crops will instantly be fully grown, and Rain Barrels will be completely refilled.

Gentle snowfall

Gentle snowfall slightly reduces visibility. Except for when there is a blizzard, there is a perpetual gentle snowfall in Yukon.

Blizzard

A blizzard is a severe snowstorm, with strong winds. Clouds darken as a blizzard is about to begin, and a heavy fog limits visibility more harshly than gentle snowfall does. During a blizzard, exposed players are affected by cold temperature and can die from freezing. Blizzards can occur in Yukon.

Unused weather types

There exists a few unused weather types within the game files. They do not occur naturally, but can still be called via console commands. They are intended to be used as examples when modding in custom weather events. The ExampleWeather.asset ("example weather") weather type is a heavy fog that slowly damages the player over time, but restores their stamina. The TestLightning.asset ("test lightning") weather type features lightning strikes, with very little delay in their occurrence.

Console commands

Weather can be manually started and ended via the weather command. The command accepts either a localized short name, or the weather's corresponding GUID. Only some weather types have a dedicated short name that can be used.

Using the /weather none command will also clear the currently-scheduled weather in the forecast, and cause a new weather type to be scheduled. This can be useful if the frequency or duration of weather has been changed on a pre-existing save.

Weather type Localized short name File name GUID
None None
Disabled Disable
Rainstorm Storm DefaultRain d73923f4416c43dfa5bc8b6234cf0257
Heavy thunderstorm HeavyRain 6c850687bdb947a689fa8de8a8d99afb
Gentle snowfall GentleSnow 22a2d4cf2d0341e08bee3d9557b78d23
Blizzard Blizzard DefaultSnow 903577da2ecd4f5784b2f7aed8c300c1
Example weather ExampleWeather 819982d7a2b6453488a8c4c5d9efe67f
Test lightning TestLightning 68f4c2961e224acab4d3b70ebba55149

Note that the file names for weather types is typically what appears in log files, as opposed to any localized short names or GUIDs.