74 {
78
80
84
85 switch (type)
86 {
87
89
90
94
95
96
98
99
101 {
103 }
104
106 {
108
109 }
110
112 {
115 }
116
117
119 {
123 }
125 {
129 }
130 else
131 {
135 }
136
139
142
143
144
146 {
148
152 }
153
155 {
157
161 }
162
164 {
166
170 }
171
173
176
177 return true;
178
179
181
183
188
190 {
193 return true;
194 }
195
197 {
201
204 return true;
205 }
206
207
209 {
211 {
215 }
217 {
221 }
223 {
227 }
228 else
229 {
233 }
234 }
235 else
236 {
238 {
242 }
244 {
248 }
250 {
254 }
255 else
256 {
260 }
261 }
262
264
266
267 return true;
268
269
271
275
277
279 {
280 if ( (
g_Game.GetDayTime() > 4 &&
g_Game.GetDayTime() < 7 ) )
281 {
285 }
286 }
287
289 {
293 }
294
296
298
299 return true;
300 }
301
302 return false;
303 }
EWeatherPhenomenon
Definition Weather.c:11
static void WeatherLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Definition Debug.c:307
proto native void SetStorm(float density, float threshold, float timeOut)
Sets the thunderstorm properties.
proto native void SetWindFunctionParams(float fnMin, float fnMax, float fnSpeed)
Sets function parameters that controls the wind behaviour (change in time).
proto native void SetWindMaximumSpeed(float maxSpeed)
Sets the maximal wind speed in metre per second.
proto native Overcast GetOvercast()
Returns an overcast phenomenon object.
proto native void SetRainThresholds(float tMin, float tMax, float tTime)
Sets overcast threshold values for rain phenomena.
proto native Rain GetRain()
Returns a rain phenomenon object.
proto native Fog GetFog()
Returns a fog phenomenon object.
int m_sameWeatherCnt
Definition ChernarusPlus.c:24
const int BAD_WEATHER_CHANCE
Definition ChernarusPlus.c:18
int m_choosenWeather
Definition ChernarusPlus.c:28
const int RAIN_TIME_MAX
Definition ChernarusPlus.c:11
const float STORM_THRESHOLD
Definition ChernarusPlus.c:5
const float RAIN_THRESHOLD
Definition ChernarusPlus.c:4
int m_lastWeather
Definition ChernarusPlus.c:29
const int RAIN_TIME_MIN
Definition ChernarusPlus.c:10
const int OVERCAST_MIN_TIME
Definition ChernarusPlus.c:7
const int CLEAR_WEATHER_CHANCE
Definition ChernarusPlus.c:17
int m_stepValue
Definition ChernarusPlus.c:25
const int OVERCAST_MAX_TIME
Definition ChernarusPlus.c:8
int m_clearWeatherChance
Definition ChernarusPlus.c:20
const int BAD_WEATHER
Definition ChernarusPlus.c:15
int m_badWeatherChance
Definition ChernarusPlus.c:22
const int CLOUDY_WEATHER
Definition ChernarusPlus.c:14
int m_chance
Definition ChernarusPlus.c:26
const int CLEAR_WEATHER
Definition ChernarusPlus.c:13
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:106
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition EnMath.c:54