42 proto native
void Set(
float forecast,
float time = 0,
float minDuration = 0 );
54 proto
void GetLimits( out
float fnMin, out
float fnMax );
67 proto native
void SetLimits(
float fnMin,
float fnMax );
129 if ( currentMission )
184 proto native
void SetStorm(
float density,
float threshold,
float timeOut );
WeatherPhenomenon Overcast
proto native void SetStorm(float density, float threshold, float timeOut)
Sets the thunderstorm properties.
proto native float GetTime()
Returns actual time from start of a server (how many seconds elapsed from server start).
proto native void SuppressLightningSimulation(bool state)
enables/disables thunderbolt simulation on client (together with sounds)
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 void SetWindSpeed(float speed)
Sets the actual wind speed in metre per second.
proto native float GetWindMaximumSpeed()
Returns maximal wind speed in metre per second.
void MissionWeather(bool use)
protected bool m_missionWeather
proto native Overcast GetOvercast()
Returns an overcast phenomenon object.
proto void GetWindFunctionParams(out float fnMin, out float fnMax, out float fnSpeed)
Reads function parameters that controls the wind behaviour (change in time).
proto native float GetWindSpeed()
Returns actual wind speed in metre per second.
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 void SetWind(vector wind)
Sets the wind vector (direction and speed as length of the vector).
proto native vector GetWind()
Returns wind vector (direction and speed as length of the vector).
proto native Fog GetFog()
Returns a fog phenomenon object.
proto native void SetForecastChangeLimits(float fcMin, float fcMax)
Sets limits of change when forecast is computed.
proto native void Set(float forecast, float time=0, float minDuration=0)
Sets the forecast.
bool OnBeforeChange(float change, float time)
Is called every time the Phenomenon computes new forecast.
proto native void SetNextChange(float time)
Sets the time in seconds when the next forecast will be computed.
proto native float GetNextChange()
Reads the time in seconds when the next forecast will be computed.
proto void GetForecastTimeLimits(out float ftMin, out float ftMax)
Reads time range in which next forecast can be computed.
private void WeatherPhenomenon()
proto native void SetLimits(float fnMin, float fnMax)
Sets limits of this phenomenon.
proto native EWeatherPhenomenon GetType()
Returns type of this phenomenon.
proto void GetForecastChangeLimits(out float fcMin, out float fcMax)
Reads limits of change when forecast is computed.
proto native float GetForecast()
Returns a forecast value the phenomenon is heading towards.
proto void GetLimits(out float fnMin, out float fnMax)
Reads limits of this phenomenon.
private void ~WeatherPhenomenon()
proto native float GetActual()
Returns actual value of phenomenon in range <0, 1>.
proto native void SetForecastTimeLimits(float ftMin, float ftMax)
Sets time range in which next forecast can be computed.
Keeps information about currently loaded world, like temperature.
bool WeatherOnBeforeChange(EWeatherPhenomenon type, float actual, float change, float time)