![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Keeps information about currently loaded world, like temperature. More...
Protected Attributes | |
| int | m_BadWeatherChance |
| weather related | |
| int | m_Chance = 50 |
| int | m_ChoosenWeather = 1 |
| int | m_ClearWeatherChance |
| float | m_DayTemperature = 10 |
| DEPRECATED. | |
| ref TStringArray | m_DefaultPlayerRestrictedAreas |
| bool | m_EnTempUpdated |
| float | m_EnvironmentTemperature |
| ref array< vector > | m_FiringPos |
| bool | m_IsSuddenChange |
| int | m_LastWeather = 0 |
| ref WorldDataLiquidSettings | m_LiquidSettings |
| float | m_MaxTemps [12] |
| float | m_MinTemps [12] |
| float | m_NightTemperature = 6 |
| bool | m_Pollution |
| int | m_SameWeatherCnt = 0 |
| int | m_StepValue = 5 |
| float | m_Sunrise_Jan |
| float | m_Sunrise_Jul |
| float | m_Sunset_Jan |
| float | m_Sunset_Jul |
| float | m_Timer |
| float | m_UniversalTemperatureSourceCapModifier |
| Weather | m_Weather |
| ref WorldDataWeatherSettings | m_WeatherDefaultSettings |
| float | m_WorldWindCoef |
| ref CatchYieldBank | m_YieldBank |
| float | SUDDENCHANGE_LENGTH_MULTIPLIER = 0.4 |
| float | SUDDENCHANGE_TIME_MULTIPLIER = 0.2 |
| float | WIND_DIRECTION_TIME_MULTIPLIER = 0.05 |
| float | WIND_MAGNITUDE_TIME_MULTIPLIER = 0.1 |
Private Attributes | |
| const float | COLD_AREA_TOOL_DMG_MODIF_DEF = 1 |
| float | m_CloudsTemperatureEffectModifier |
| amount of °C reduced for each 100 meteres of height above water level | |
| float | m_TemperatureInsideBuildingsModifier |
| how many % of environment temperature can be lowered by clouds | |
| float | m_TemperaturePerHeightReductionModifier |
| directly accesible (defined/overriden in Init()) | |
| float | m_WaterContactTemperatureModifier |
| const float | SPAWN_CHANCE_CHOLERA_DEF = 50 |
Keeps information about currently loaded world, like temperature.
Definition at line 2 of file worlddata.c.
|
inlineprotected |
Definition at line 50 of file worlddata.c.
References CreateYieldBank(), Init(), InitYieldBank(), and UpdateBaseEnvTemperature().
Referenced by GetDaytime().
Definition at line 269 of file worlddata.c.
References GetBaseEnvTemperatureExact(), and Print().
Definition at line 123 of file worlddata.c.
References Math::AbsFloat(), Math::Floor(), GetApproxSunriseTime(), GetApproxSunsetTime(), Math::Lerp(), m_MaxTemps, and m_MinTemps.
Referenced by GetBaseEnvTemperatureExact(), and UpdateBaseEnvTemperature().
|
protected |
Returns the desired snowflake scale based on weather simulation state.
| weather | Weather instance |
Definition at line 195 of file worlddata.c.
References Math::Clamp(), WeatherPhenomenon::GetActual(), Weather::GetOvercast(), Weather::GetWindMaximumSpeed(), Weather::GetWindSpeed(), Math::InverseLerp(), and Math::Lerp().
Referenced by UpdateWeatherEffects().
|
inlineprotected |
Definition at line 254 of file worlddata.c.
References SPAWN_CHANCE_CHOLERA_DEF.
Referenced by Bottle_Base::EEOnCECreate().
Definition at line 89 of file worlddata.c.
References m_Sunrise_Jan, and m_Sunrise_Jul.
Referenced by CalcBaseEnvironmentTemperature(), and GetDaytime().
Definition at line 96 of file worlddata.c.
References m_Sunset_Jan, and m_Sunset_Jul.
Referenced by CalcBaseEnvironmentTemperature(), and GetDaytime().
Definition at line 248 of file worlddata.c.
References m_FiringPos.
|
inlineprotected |
Definition at line 207 of file worlddata.c.
References m_EnvironmentTemperature.
Referenced by GetTemperature().
Definition at line 212 of file worlddata.c.
References GetBaseEnvTemperatureAtPosition(), and GetPosition().
Referenced by GetTemperature().
Definition at line 217 of file worlddata.c.
References m_EnvironmentTemperature, m_TemperaturePerHeightReductionModifier, and Math::Max().
Referenced by GetBaseEnvTemperatureAtObject().
Definition at line 224 of file worlddata.c.
References CalcBaseEnvironmentTemperature().
Referenced by BaseTempDebug().
|
inlineprotected |
Definition at line 388 of file worlddata.c.
References m_YieldBank.
|
inlineprotected |
Definition at line 263 of file worlddata.c.
References COLD_AREA_TOOL_DMG_MODIF_DEF.
|
inlineprotected |
Definition at line 406 of file worlddata.c.
References m_DayTemperature.
|
inlineprotected |
Definition at line 104 of file worlddata.c.
References WorldData(), WorldDataDaytime::DAWN, WorldDataDaytime::DAY, WorldDataDaytime::DUSK, g_Game, GetApproxSunriseTime(), GetApproxSunsetTime(), and WorldDataDaytime::NIGHT.
|
inlineprotected |
Definition at line 393 of file worlddata.c.
References m_DefaultPlayerRestrictedAreas.
Definition at line 229 of file worlddata.c.
References ErrorEx, INDEX_NOT_FOUND, m_EnvironmentTemperature, and m_LiquidSettings.
Referenced by ManBase::Consume().
|
inlineprotected |
Definition at line 411 of file worlddata.c.
References m_NightTemperature.
|
inlineprotected |
Definition at line 282 of file worlddata.c.
References m_Pollution.
Referenced by ManBase::Consume().
|
inlineprotected |
Return actual temperature of environment based on provided parameters.
| object | Reference to object that is used mainly for sea height related calculation |
| properties | Flag made of EEnvironmentTemperatureComponent which will influence the resulting value of temperature based on combination of the parts |
Definition at line 302 of file worlddata.c.
References GameConstants::ENVIRO_FOG_TEMP_EFFECT, GetBaseEnvTemperature(), GetBaseEnvTemperatureAtObject(), m_CloudsTemperatureEffectModifier, m_Weather, and WindEffectTemperatureValue().
|
inlineprotected |
Return value of queried EEnvironmentTemperatureComponent which can be used in future calculation(s).
| temperature | Base temperature which will be used in component calculation (currently WIND only) |
| properties | Flag made of EEnvironmentTemperatureComponent which will influence the resulting value of temperature based on combination of the parts |
Definition at line 327 of file worlddata.c.
References GameConstants::ENVIRO_FOG_TEMP_EFFECT, Debug::Log(), m_CloudsTemperatureEffectModifier, m_Weather, and WindEffectTemperatureValue().
|
inlineprotected |
Definition at line 292 of file worlddata.c.
References m_UniversalTemperatureSourceCapModifier.
|
inlineprotected |
Definition at line 287 of file worlddata.c.
References m_WorldWindCoef.
Referenced by WindEffectTemperatureValue().
|
inlineprotected |
Definition at line 58 of file worlddata.c.
References g_Game, m_BadWeatherChance, m_ClearWeatherChance, m_CloudsTemperatureEffectModifier, m_DefaultPlayerRestrictedAreas, m_EnTempUpdated, m_EnvironmentTemperature, m_MaxTemps, m_MinTemps, m_Pollution, m_Sunrise_Jan, m_Sunrise_Jul, m_Sunset_Jan, m_Sunset_Jul, m_TemperatureInsideBuildingsModifier, m_TemperaturePerHeightReductionModifier, m_Timer, m_UniversalTemperatureSourceCapModifier, m_WaterContactTemperatureModifier, m_Weather, m_WeatherDefaultSettings, m_WorldWindCoef, SetupLiquidTemperatures(), and SetupWeatherSettings().
Referenced by WorldData().
|
inlineprotected |
override this to properly register world-specific yields
Definition at line 365 of file worlddata.c.
References GetDayZGame(), and m_YieldBank.
Referenced by WorldData().
|
inlineprotected |
Definition at line 375 of file worlddata.c.
References LIQUID_CLEANWATER, LIQUID_FRESHWATER, LIQUID_RIVERWATER, LIQUID_SALTWATER, LIQUID_SNOW, LIQUID_STILLWATER, LIQUID_WATER, and m_LiquidSettings.
Referenced by Init().
|
inlineprotected |
Definition at line 370 of file worlddata.c.
References m_WeatherDefaultSettings.
Referenced by Init().
|
inlineprotected |
Definition at line 165 of file worlddata.c.
References CalcBaseEnvironmentTemperature(), g_Game, m_EnTempUpdated, m_EnvironmentTemperature, and m_Timer.
Referenced by WorldData().
Updates local weather effects.
| weather | Weather instance |
| timeslice | Time delta since last update |
Definition at line 185 of file worlddata.c.
References ComputeSnowflakeScale(), and Weather::SetSnowflakeScale().
Referenced by CGame::OnUpdate().
|
inlineprotected |
Definition at line 241 of file worlddata.c.
Referenced by WeatherPhenomenon::OnBeforeChange().
Definition at line 345 of file worlddata.c.
References GameConstants::ENVIRO_WIND_CHILL_LIMIT, GameConstants::ENVIRO_WIND_EFFECT_SLOPE, GetWindCoef(), and m_Weather.
Referenced by GetTemperature(), and GetTemperatureComponentValue().
|
private |
Definition at line 5 of file worlddata.c.
Referenced by GetColdAreaToolDamageModifier().
|
protected |
weather related
Definition at line 36 of file worlddata.c.
Referenced by SakhalData::Init(), Init(), ChernarusPlusData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
protected |
Definition at line 46 of file worlddata.c.
Referenced by ChernarusPlusData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
protected |
Definition at line 47 of file worlddata.c.
Referenced by ChernarusPlusData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
protected |
Definition at line 37 of file worlddata.c.
Referenced by SakhalData::Init(), Init(), ChernarusPlusData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
private |
amount of °C reduced for each 100 meteres of height above water level
Definition at line 9 of file worlddata.c.
Referenced by GetTemperature(), GetTemperatureComponentValue(), ChernarusPlusData::Init(), EnochData::Init(), and Init().
|
protected |
|
protected |
Definition at line 33 of file worlddata.c.
Referenced by GetDefaultPRAPaths(), SakhalData::Init(), and Init().
|
protected |
Definition at line 20 of file worlddata.c.
Referenced by Init(), and UpdateBaseEnvTemperature().
|
protected |
Definition at line 19 of file worlddata.c.
Referenced by GetBaseEnvTemperature(), GetBaseEnvTemperatureAtPosition(), GetLiquidTypeEnviroTemperature(), Init(), and UpdateBaseEnvTemperature().
Definition at line 28 of file worlddata.c.
Referenced by GetArtyFiringPos(), ChernarusPlusData::Init(), and EnochData::Init().
|
protected |
Definition at line 38 of file worlddata.c.
Referenced by EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
protected |
Definition at line 48 of file worlddata.c.
Referenced by ChernarusPlusData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
protected |
Definition at line 32 of file worlddata.c.
Referenced by GetLiquidTypeEnviroTemperature(), EnochData::SetupLiquidTemperatures(), SakhalData::SetupLiquidTemperatures(), and SetupLiquidTemperatures().
|
protected |
Definition at line 22 of file worlddata.c.
Referenced by CalcBaseEnvironmentTemperature(), ChernarusPlusData::Init(), EnochData::Init(), SakhalData::Init(), and Init().
|
protected |
Definition at line 23 of file worlddata.c.
Referenced by CalcBaseEnvironmentTemperature(), ChernarusPlusData::Init(), EnochData::Init(), SakhalData::Init(), and Init().
|
protected |
Definition at line 404 of file worlddata.c.
Referenced by GetNightTemperature().
|
protected |
Definition at line 29 of file worlddata.c.
Referenced by GetPollution(), SakhalData::Init(), and Init().
|
protected |
Definition at line 44 of file worlddata.c.
Referenced by ChernarusPlusData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
protected |
Definition at line 45 of file worlddata.c.
Referenced by ChernarusPlusData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
protected |
Definition at line 24 of file worlddata.c.
Referenced by GetApproxSunriseTime(), ChernarusPlusData::Init(), EnochData::Init(), SakhalData::Init(), and Init().
|
protected |
Definition at line 26 of file worlddata.c.
Referenced by GetApproxSunriseTime(), ChernarusPlusData::Init(), EnochData::Init(), SakhalData::Init(), and Init().
|
protected |
Definition at line 25 of file worlddata.c.
Referenced by GetApproxSunsetTime(), ChernarusPlusData::Init(), EnochData::Init(), SakhalData::Init(), and Init().
|
protected |
Definition at line 27 of file worlddata.c.
Referenced by GetApproxSunsetTime(), ChernarusPlusData::Init(), EnochData::Init(), SakhalData::Init(), and Init().
|
private |
how many % of environment temperature can be lowered by clouds
Definition at line 10 of file worlddata.c.
Referenced by SakhalData::Init(), and Init().
|
private |
directly accesible (defined/overriden in Init())
Definition at line 8 of file worlddata.c.
Referenced by GetBaseEnvTemperatureAtPosition(), ChernarusPlusData::Init(), EnochData::Init(), and Init().
|
protected |
Definition at line 21 of file worlddata.c.
Referenced by Init(), and UpdateBaseEnvTemperature().
|
protected |
Definition at line 41 of file worlddata.c.
Referenced by GetUniversalTemperatureSourceCapModifier(), ChernarusPlusData::Init(), EnochData::Init(), SakhalData::Init(), and Init().
|
private |
Definition at line 11 of file worlddata.c.
Referenced by Init().
|
protected |
Definition at line 18 of file worlddata.c.
Referenced by ChernarusPlusData::CalculateVolFog(), EnochData::CalculateVolFog(), SakhalData::CalculateVolFog(), ChernarusPlusData::CalculateWind(), EnochData::CalculateWind(), SakhalData::CalculateWind(), GetTemperature(), GetTemperatureComponentValue(), ChernarusPlusData::Init(), EnochData::Init(), SakhalData::Init(), Init(), ChernarusPlusData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), SakhalData::WeatherOnBeforeChange(), and WindEffectTemperatureValue().
|
protected |
Definition at line 31 of file worlddata.c.
Referenced by ChernarusPlusData::CalculateVolFog(), EnochData::CalculateVolFog(), ChernarusPlusData::CalculateWind(), EnochData::CalculateWind(), ChernarusPlusData::Init(), EnochData::Init(), SakhalData::Init(), Init(), ChernarusPlusData::SetupWeatherSettings(), EnochData::SetupWeatherSettings(), SakhalData::SetupWeatherSettings(), SetupWeatherSettings(), ChernarusPlusData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
protected |
Definition at line 39 of file worlddata.c.
Referenced by GetWindCoef(), ChernarusPlusData::Init(), EnochData::Init(), and Init().
|
protected |
Definition at line 30 of file worlddata.c.
Referenced by CreateYieldBank(), GetCatchYieldBank(), EnochData::InitYieldBank(), SakhalData::InitYieldBank(), and InitYieldBank().
|
private |
Definition at line 4 of file worlddata.c.
Referenced by GetAgentSpawnChance().
|
protected |
Definition at line 14 of file worlddata.c.
Referenced by EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
protected |
Definition at line 13 of file worlddata.c.
Referenced by EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
protected |
Definition at line 16 of file worlddata.c.
Referenced by ChernarusPlusData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
|
protected |
Definition at line 15 of file worlddata.c.
Referenced by ChernarusPlusData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().