74 m_Weather.SetStorm(1.0, STORM_THRESHOLD, 45);
76 m_Weather.SetRainThresholds(0.0, 1.0, 60);
77 m_Weather.SetWindMaximumSpeed(20);
78 m_Weather.SetWindFunctionParams(0.1, 1.0, 20);
95 if (m_lastWeather == CLEAR_WEATHER)
97 m_clearWeatherChance -= (m_stepValue * m_sameWeatherCnt);
100 if (m_lastWeather == CLOUDY_WEATHER)
102 m_clearWeatherChance += (m_stepValue * m_sameWeatherCnt);
106 if (m_lastWeather == BAD_WEATHER)
108 m_clearWeatherChance += m_stepValue;
109 m_badWeatherChance += ((m_stepValue * m_sameWeatherCnt) + m_stepValue);
113 if (m_chance < m_clearWeatherChance)
115 m_choosenWeather = CLEAR_WEATHER;
116 if (m_lastWeather == CLEAR_WEATHER)
119 else if (m_chance > m_badWeatherChance)
121 m_choosenWeather = BAD_WEATHER;
122 if (m_lastWeather == BAD_WEATHER)
127 m_choosenWeather = CLOUDY_WEATHER;
128 if (m_lastWeather == CLOUDY_WEATHER)
132 if (m_choosenWeather != m_lastWeather)
133 m_sameWeatherCnt = 0;
135 m_clearWeatherChance = CLEAR_WEATHER_CHANCE;
136 m_badWeatherChance = BAD_WEATHER_CHANCE;
140 if (m_choosenWeather == CLEAR_WEATHER)
142 m_lastWeather = CLEAR_WEATHER;
149 if (m_choosenWeather == CLOUDY_WEATHER)
151 m_lastWeather = CLOUDY_WEATHER;
158 if (m_choosenWeather == BAD_WEATHER)
160 m_lastWeather = BAD_WEATHER;
170 Debug.
WeatherLog(
string.Format(
"Chernarus::Weather::Overcast::Rain:: (%1) %2",
g_Game.GetDayTime(), m_Weather.GetRain().GetActual()));
186 m_Weather.GetRain().Set(0.0, RAIN_TIME_MIN, RAIN_TIME_MAX);
211 else if (m_chance < 60)
217 else if (m_chance < 80)
238 else if (m_chance < 50)
244 else if (m_chance < 75)
275 if ((
g_Game.GetDayTime() > 4 &&
g_Game.GetDayTime() < 7))
283 if (m_Weather.GetOvercast().GetActual() < 0.3)