Private Member Functions | |
private void | Weather () |
private void | ~Weather () |
proto native float | GetTime () |
Returns actual time from start of a server (how many seconds elapsed from server start). | |
proto native Overcast | GetOvercast () |
Returns an overcast phenomenon object. | |
proto native Fog | GetFog () |
Returns a fog phenomenon object. | |
proto native Rain | GetRain () |
Returns a rain phenomenon object. | |
proto native Snowfall | GetSnowfall () |
Returns a snowfall phenomenon object. | |
proto native WindDirection | GetWindDirection () |
Returns a wind direction phenomenon object. | |
proto native WindMagnitude | GetWindMagnitude () |
Returns a wind magnitude phenomenon object. | |
proto native void | SetStorm (float density, float threshold, float timeOut) |
Sets the thunderstorm properties. | |
proto native void | SuppressLightningSimulation (bool state) |
enables/disables thunderbolt simulation on client (together with sounds) | |
proto native vector | GetWind () |
Returns wind vector (direction and speed as length of the vector). | |
proto native void | SetWind (vector wind) |
Sets the wind vector (direction and speed as length of the vector). | |
proto native float | GetWindSpeed () |
Returns actual 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. | |
proto native void | SetWindMaximumSpeed (float maxSpeed) |
Sets the maximal wind speed in metre per second. Equivalent to setting WindMagnitude phenomenon(s) value upper limit. | |
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 void | SetWindFunctionParams (float fnMin, float fnMax, float fnSpeed) |
Sets function parameters that controls the wind behaviour (change in time). | |
proto native void | SetRainThresholds (float tMin, float tMax, float tTime) |
Sets overcast threshold values for rain phenomena. | |
proto native void | SetSnowfallThresholds (float tMin, float tMax, float tTime) |
Sets overcast threshold values for snowfall phenomena. | |
proto native void | SetSnowflakeScale (float scale) |
Sets the overall scale of snowflakes during snowfall phenomenon. This value is not synchronized and should be set by deterministic means. | |
proto native float | GetSnowflakeScale () |
Returns the overall scale of snowflakes during snowfall phenomenon. | |
proto native bool | IsDynVolFogEnabled () |
Dynamic volumetric fog only takes effect if enabled in the world config. | |
proto native void | SetDynVolFogDistanceDensity (float value, float time=0) |
Sets the dynamic volumetric fog distance density. Only takes effect if dynamic volumetric fog is enabled. | |
proto native float | GetDynVolFogDistanceDensity () |
Returns the current 'dynamic' volumetric fog distance density. | |
proto native void | SetDynVolFogHeightDensity (float value, float time=0) |
Sets the dynamic volumetric fog height density. Only takes effect if dynamic volumetric fog is enabled. | |
proto native float | GetDynVolFogHeightDensity () |
Returns the current 'dynamic' volumetric fog height density. | |
proto native void | SetDynVolFogHeightBias (float value, float time=0) |
Sets the 'dynamic' volumetric height bias. Takes effect only if enabled via world config. | |
proto native float | GetDynVolFogHeightBias () |
Returns the current 'dynamic' volumetric fog height bias in meters. | |
void | MissionWeather (bool use) |
bool | GetMissionWeather () |
void | SetWeatherUpdateFreeze (bool state) |
bool | GetWeatherUpdateFrozen () |
float | GetNoiseReductionByWeather () |
Static Private Member Functions | |
static proto float | WindDirectionToAngle (vector dir) |
Returns the xz angle of the provided wind vector. | |
static proto vector | AngleToWindDirection (float angle) |
Returns wind direction from the provided wind angle. | |
Private Attributes | |
protected bool | m_missionWeather |
protected bool | m_UpdateFrozen |
Weather controller
|
inlineprivate |
References m_missionWeather.
|
inlineprivate |
Returns wind direction from the provided wind angle.
angle | Wind angle in the -PI, +PI interval. |
|
private |
Returns the current 'dynamic' volumetric fog distance density.
Referenced by InitValues(), and UpdateWeatherValues().
|
private |
Returns the current 'dynamic' volumetric fog height bias in meters.
Referenced by WorldData::CalculateVolFog(), EnochData::CalculateVolFog(), InitValues(), UpdateWeatherValues(), and WorldData::WeatherOnBeforeChange().
|
private |
Returns the current 'dynamic' volumetric fog height density.
Referenced by InitValues(), and UpdateWeatherValues().
|
private |
Returns a fog phenomenon object.
Referenced by CollectAndSetEnvironmentData(), DayZIntroScene::DayZIntroScene(), DayZIntroSceneXbox::DayZIntroSceneXbox(), WorldData::GetTemperature(), WorldData::GetTemperatureComponentValue(), SakhalData::Init(), InitValues(), UIPopupScript::OnChange(), UIPopupScript::OnClick(), UIPopupScript::OnClose(), UIPopupScript::OnOpen(), CGame::OnRPC(), UIPopupScript::ResetSliders(), SceneData::SetInitFog(), UpdateWeatherValues(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
inlineprivate |
References m_missionWeather.
Referenced by WeatherPhenomenon::OnBeforeChange().
|
inlineprivate |
|
private |
Returns an overcast phenomenon object.
Referenced by SakhalData::CalculateVolFog(), WorldData::CalculateWind(), EnochData::CalculateWind(), SakhalData::CalculateWind(), CollectAndSetEnvironmentData(), WorldData::ComputeSnowflakeScale(), DayZIntroScene::DayZIntroScene(), DayZIntroSceneXbox::DayZIntroSceneXbox(), WorldData::GetTemperature(), WorldData::GetTemperatureComponentValue(), WorldData::Init(), EnochData::Init(), SakhalData::Init(), InitValues(), UIPopupScript::OnChange(), UIPopupScript::OnClick(), UIPopupScript::OnClose(), UIPopupScript::OnOpen(), CGame::OnRPC(), UIPopupScript::ResetSliders(), SceneData::SetInitOvercast(), UpdateWeatherValues(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
private |
Returns a rain phenomenon object.
Referenced by ItemBase::CheckRainTick(), CollectAndSetEnvironmentData(), Cooling(), DayZIntroScene::DayZIntroScene(), DayZIntroSceneXbox::DayZIntroSceneXbox(), RainProcurementHandler::DetermineAmountCoef(), GetNoiseReductionByWeather(), Heating(), Init(), InitValues(), UIPopupScript::OnChange(), UIPopupScript::OnClick(), UIPopupScript::OnClose(), UIPopupScript::OnOpen(), CGame::OnRPC(), RainProcurementManager::RainProcurementCheck(), UIPopupScript::ResetSliders(), SceneData::SetInitRain(), UpdateWeatherValues(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
private |
Returns a snowfall phenomenon object.
Referenced by SakhalData::CalculateWind(), CollectAndSetEnvironmentData(), DayZIntroScene::DayZIntroScene(), DayZIntroSceneXbox::DayZIntroSceneXbox(), RainProcurementHandler::DetermineAmountCoef(), GetNoiseReductionByWeather(), SakhalData::Init(), InitValues(), CGame::OnRPC(), UpdateWeatherValues(), and SakhalData::WeatherOnBeforeChange().
|
private |
Returns the overall scale of snowflakes during snowfall phenomenon.
|
private |
Returns actual time from start of a server (how many seconds elapsed from server start).
|
inlineprivate |
References m_UpdateFrozen.
Referenced by WeatherPhenomenon::OnBeforeChange().
|
private |
Returns wind vector (direction and speed as length of the vector).
|
private |
Returns a wind direction phenomenon object.
Referenced by InitValues(), CGame::OnRPC(), UpdateWeatherValues(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
Reads function parameters that controls the wind behaviour (change in time).
fnMin | Function relative minimum (in range <0, 1>). |
fnMax | Function relative maximum (in range <0, 1>). |
fnSpeed | Controls speed of change of function value. |
|
private |
Returns a wind magnitude phenomenon object.
Referenced by CollectAndSetEnvironmentData(), InitValues(), CGame::OnRPC(), UpdateWeatherValues(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), SakhalData::WeatherOnBeforeChange(), and WorldData::WindEffectTemperatureValue().
|
private |
Returns maximal wind speed in metre per second.
Referenced by WorldData::CalculateVolFog(), EnochData::CalculateVolFog(), SakhalData::CalculateVolFog(), WorldData::ComputeSnowflakeScale(), IsWindy(), UIPopupScript::OnChange(), and UIPopupScript::ResetSliders().
|
private |
Returns actual wind speed in metre per second.
Referenced by WorldData::ComputeSnowflakeScale(), WorldData::Init(), EnochData::Init(), SakhalData::Init(), IsWindy(), UIPopupScript::OnOpen(), UIPopupScript::ResetSliders(), and SakhalData::WeatherOnBeforeChange().
|
private |
Dynamic volumetric fog only takes effect if enabled in the world config.
|
inlineprivate |
References m_missionWeather.
Sets the dynamic volumetric fog distance density. Only takes effect if dynamic volumetric fog is enabled.
value | Density percentage in <0,1> range. |
time | Transition time in seconds. (0 for immediate effect) |
Referenced by WorldData::CalculateVolFog(), EnochData::CalculateVolFog(), SakhalData::CalculateVolFog(), MissionBenchmark::DisableWeatherChange(), and CGame::OnRPC().
Sets the 'dynamic' volumetric height bias. Takes effect only if enabled via world config.
value | Height offset in meters relative to 0. |
time | Transition time in seconds. |
Referenced by WorldData::CalculateVolFog(), EnochData::CalculateVolFog(), MissionBenchmark::DisableWeatherChange(), WorldData::Init(), EnochData::Init(), SakhalData::Init(), CGame::OnRPC(), and WorldData::WeatherOnBeforeChange().
Sets the dynamic volumetric fog height density. Only takes effect if dynamic volumetric fog is enabled.
value | Density percentage in <0,1> range. |
time | Transition time in seconds. (0 for immediate effect) |
Referenced by WorldData::CalculateVolFog(), EnochData::CalculateVolFog(), MissionBenchmark::DisableWeatherChange(), SakhalData::Init(), and CGame::OnRPC().
Sets overcast threshold values for rain phenomena.
Rain can start only if actual overcast value is in given range of <tMin, tMax>. If it's already raining and actual overcast value gets out of given range then rain will stop in given tTime seconds.
Default values are: tMin = 0.6 tMax = 1 tTime = 30
tMin | Minimal overcast value (in range <0, 1>). |
tMax | Maximal overcast value (in range <0, 1>). |
tTime | Time in seconds when it stops raining. |
Referenced by WorldData::WeatherOnBeforeChange(), and EnochData::WeatherOnBeforeChange().
Sets overcast threshold values for snowfall phenomena.
Snowfall can start only if actual overcast value is in given range of <tMin, tMax>. If it's already snowing and actual overcast value gets out of given range then snowfall will stop in given tTime seconds.
Default values are: tMin = 0.6 tMax = 1 tTime = 30
tMin | Minimal overcast value (in range <0, 1>). |
tMax | Maximal overcast value (in range <0, 1>). |
tTime | Time in seconds when it stops snowing. |
Referenced by SakhalData::WeatherOnBeforeChange().
|
private |
Sets the overall scale of snowflakes during snowfall phenomenon. This value is not synchronized and should be set by deterministic means.
scale | Scale, 1.0 = default |
Referenced by WorldData::UpdateWeatherEffects().
Sets the thunderstorm properties.
density | A value in <0, 1> range where 0 means no thunderstorms at all and 1 means thunderstorm every time it gets cloudy. |
threshold | The overcast value that must be exceeded so that lightning can appear. |
timeOut | A minimal time in seconds between lightning during thunderstorm. |
Referenced by DayZIntroScene::DayZIntroScene(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
inlineprivate |
References m_UpdateFrozen.
Referenced by MissionBenchmark::DisableWeatherChange().
|
private |
Sets the wind vector (direction and speed as length of the vector).
Sets function parameters that controls the wind behaviour (change in time).
fnMin | Function relative minimum (in range <0, 1>). |
fnMax | Function relative maximum (in range <0, 1>). |
fnSpeed | Controls speed of change of function value. |
Referenced by DayZIntroScene::DayZIntroScene().
|
private |
Sets the maximal wind speed in metre per second. Equivalent to setting WindMagnitude phenomenon(s) value upper limit.
Referenced by DayZIntroScene::DayZIntroScene(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
private |
Sets the actual wind speed in metre per second.
Referenced by DayZIntroScene::DayZIntroScene(), UIPopupScript::OnChange(), UIPopupScript::OnClick(), UIPopupScript::ResetSliders(), and SceneData::SetInitWindForce().
|
private |
enables/disables thunderbolt simulation on client (together with sounds)
Referenced by OnUndergroundPresenceUpdate(), and ~UndergroundHandlerClient().
Returns the xz angle of the provided wind vector.
dir | Non-zero wind vector |
|
private |
Referenced by GetMissionWeather(), MissionWeather(), and Weather().
|
private |
Referenced by GetWeatherUpdateFrozen(), and SetWeatherUpdateFreeze().