38 proto native
float GetActual();
41 proto native
float GetForecast();
49 proto native
void Set(
float forecast,
float time = 0,
float minDuration = 0 );
52 proto native
float GetNextChange();
54 proto native
void SetNextChange(
float time );
61 proto
void GetLimits( out
float fnMin, out
float fnMax );
74 proto native
void SetLimits(
float fnMin,
float fnMax );
81 proto
void GetForecastChangeLimits( out
float fcMin, out
float fcMax );
95 proto native
void SetForecastChangeLimits(
float fcMin,
float fcMax );
102 proto
void GetForecastTimeLimits( out
float ftMin, out
float ftMax );
113 proto native
void SetForecastTimeLimits(
float ftMin,
float ftMax );
125 bool OnBeforeChange(
float change,
float time )
130 if ( weather.GetMissionWeather() )
133 if (weather.GetWeatherUpdateFrozen())
139 if ( currentMission )
141 WorldData worldData = currentMission.GetWorldData();
180 proto native
float GetTime();
183 proto native
Overcast GetOvercast();
186 proto native
Fog GetFog();
189 proto native
Rain GetRain();
192 proto native
Snowfall GetSnowfall();
214 proto native
void SetStorm(
float density,
float threshold,
float timeOut );
217 proto native
void SuppressLightningSimulation(
bool state);
220 proto native
vector GetWind();
236 proto native
void SetWind(
vector wind );
243 proto native
float GetWindSpeed();
251 proto native
void SetWindSpeed(
float speed );
258 proto native
float GetWindMaximumSpeed();
264 proto native
void SetWindMaximumSpeed(
float maxSpeed );
272 proto
void GetWindFunctionParams( out
float fnMin, out
float fnMax, out
float fnSpeed );
280 proto native
void SetWindFunctionParams(
float fnMin,
float fnMax,
float fnSpeed );
298 proto native
void SetRainThresholds(
float tMin,
float tMax,
float tTime );
316 proto native
void SetSnowfallThresholds(
float tMin,
float tMax,
float tTime );
323 proto native
void SetSnowflakeScale(
float scale);
328 proto native
float GetSnowflakeScale();
335 static proto
float WindDirectionToAngle(
vector dir );
342 static proto
vector AngleToWindDirection(
float angle );
349 proto native
bool IsDynVolFogEnabled();
355 proto native
void SetDynVolFogDistanceDensity(
float value,
float time = 0);
359 proto native
float GetDynVolFogDistanceDensity();
365 proto native
void SetDynVolFogHeightDensity(
float value,
float time = 0);
369 proto native
float GetDynVolFogHeightDensity();
376 proto native
void SetDynVolFogHeightBias(
float value,
float time = 0);
380 proto native
float GetDynVolFogHeightBias();
383 void MissionWeather(
bool use )
388 bool GetMissionWeather()
393 void SetWeatherUpdateFreeze(
bool state)
398 bool GetWeatherUpdateFrozen()
404 float GetNoiseReductionByWeather()
406 float rainReduction = GetRain().GetActual() *
GameConstants.RAIN_NOISE_REDUCTION_WEIGHT;
407 float snowfallReduction = GetSnowfall().GetActual() *
GameConstants.SNOWFALL_NOISE_REDUCTION_WEIGHT;
409 if (rainReduction == 0 && snowfallReduction == 0)
412 if (rainReduction > snowfallReduction)
413 return 1 - rainReduction;
415 return 1 - snowfallReduction;