Private Member Functions | |
override void | Init () |
override void | InitYieldBank () |
override void | SetupWeatherSettings () |
override void | SetupLiquidTemperatures () |
override bool | WeatherOnBeforeChange (EWeatherPhenomenon type, float actual, float change, float time) |
protected override void | CalculateWind (int newWeather, bool suddenChange, out float magnitude, out float direction) |
protected override void | CalculateVolFog (float lerpValue, float windMagnitude, float changeTime) |
bool | LogWeatherData () |
Private Attributes | |
const int | CLEAR_WEATHER = 1 |
DEPRECATED (see WorldDataWeatherConstants) | |
const int | CLOUDY_WEATHER = 2 |
const int | BAD_WEATHER = 3 |
const int | OVERCAST_MIN_TIME = 600 |
DEPRECATED (see WorldDataWeatherSettings) | |
const int | OVERCAST_MAX_TIME = 900 |
const float | RAIN_THRESHOLD = 0.6 |
const int | RAIN_TIME_MIN = 60 |
const int | RAIN_TIME_MAX = 120 |
const float | STORM_THRESHOLD = 0.85 |
protected int | m_clearWeatherChance = m_ClearWeatherChance |
protected int | m_badWeatherChance = m_BadWeatherChance |
protected int | m_sameWeatherCnt = m_SameWeatherCnt |
protected int | m_stepValue = m_StepValue |
protected int | m_chance = m_Chance |
protected int | m_choosenWeather = m_ChoosenWeather |
protected int | m_lastWeather = m_LastWeather |
Static Private Attributes | |
static protected const ref array< vector > | LIVONIA_ARTY_STRIKE_POS |
|
inlineprivate |
References Math::Clamp(), World::GetDate(), Weather::GetDynVolFogHeightBias(), GetGame(), Weather::GetWindMaximumSpeed(), CGame::GetWorld(), Math::Lerp(), WorldDataWeatherSettings::m_DefaultHeigthBias, WorldDataWeatherSettings::m_FoggyMorningHeigthBiasLowLimit, WorldData::m_Weather, WorldData::m_WeatherDefaultSettings, Math::RandomInt(), Math::RandomIntInclusive(), Weather::SetDynVolFogDistanceDensity(), Weather::SetDynVolFogHeightBias(), and Weather::SetDynVolFogHeightDensity().
Referenced by Init(), and WeatherOnBeforeChange().
|
inlineprivate |
References WeatherPhenomenon::GetActual(), WeatherPhenomenon::GetForecast(), Weather::GetOvercast(), WorldDataWeatherSettings::m_StormThreshold, WorldData::m_Weather, WorldData::m_WeatherDefaultSettings, Math::RandomFloatInclusive(), and Math::RandomIntInclusive().
Referenced by WeatherOnBeforeChange().
|
inlineprivate |
References CalculateVolFog(), Count, CfgGameplayHandler::GetEnvironmentMaxTemps(), CfgGameplayHandler::GetEnvironmentMinTemps(), GetGame(), Weather::GetOvercast(), Weather::GetWindSpeed(), LIVONIA_ARTY_STRIKE_POS, WorldData::m_CloudsTemperatureEffectModifier, WorldDataWeatherSettings::m_DefaultHeigthBias, WorldData::m_FiringPos, WorldData::m_MaxTemps, WorldData::m_MinTemps, WorldData::m_Sunrise_Jan, WorldData::m_Sunrise_Jul, WorldData::m_Sunset_Jan, WorldData::m_Sunset_Jul, WorldData::m_TemperaturePerHeightReductionModifier, WorldData::m_UniversalTemperatureSourceCapModifier, WorldData::m_Weather, WorldData::m_WeatherDefaultSettings, WorldData::m_WorldWindCoef, Math::RandomFloat(), WeatherPhenomenon::Set(), and Weather::SetDynVolFogHeightBias().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References CalculateVolFog(), CalculateWind(), CloseFile(), FPrintln(), g_Game, WeatherPhenomenon::GetActual(), World::GetDate(), Weather::GetFog(), WeatherPhenomenon::GetForecast(), GetGame(), Weather::GetOvercast(), Weather::GetRain(), Weather::GetWindDirection(), Weather::GetWindMagnitude(), CGame::GetWorld(), IDC_MAIN_QUIT, WorldData::m_BadWeatherChance, WorldDataWeatherSettings::m_BadWeatherChance, WorldDataWeatherSettings::m_CalmAfterStormTimeMax, WorldDataWeatherSettings::m_CalmAfterStormTimeMin, WorldData::m_Chance, WorldData::m_ChoosenWeather, WorldData::m_ClearWeatherChance, WorldDataWeatherSettings::m_ClearWeatherChance, WorldDataWeatherSettings::m_GlobalSuddenChance, WorldData::m_IsSuddenChange, WorldData::m_LastWeather, WorldDataWeatherSettings::m_OvercastMaxLength, WorldDataWeatherSettings::m_OvercastMaxTime, WorldDataWeatherSettings::m_OvercastMinLength, WorldDataWeatherSettings::m_OvercastMinTime, WorldDataWeatherSettings::m_RainLengthMax, WorldDataWeatherSettings::m_RainLengthMin, WorldDataWeatherSettings::m_RainThreshold, WorldDataWeatherSettings::m_RainTimeMax, WorldDataWeatherSettings::m_RainTimeMin, WorldData::m_SameWeatherCnt, WorldData::m_StepValue, WorldDataWeatherSettings::m_StormThreshold, WorldData::m_Weather, WorldData::m_WeatherDefaultSettings, OpenFile(), Math::RandomFloatInclusive(), Math::RandomInt(), Math::RandomIntInclusive(), WeatherPhenomenon::Set(), Weather::SetRainThresholds(), Weather::SetStorm(), Weather::SetWindMaximumSpeed(), WorldData::SUDDENCHANGE_LENGTH_MULTIPLIER, WorldData::SUDDENCHANGE_TIME_MULTIPLIER, Debug::WeatherLog(), WorldData::WIND_DIRECTION_TIME_MULTIPLIER, and WorldData::WIND_MAGNITUDE_TIME_MULTIPLIER.
|
private |
|
private |
DEPRECATED (see WorldDataWeatherConstants)
|
private |
Referenced by Init().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
DEPRECATED (see WorldDataWeatherSettings)
|
private |
|
private |
|
private |
|
private |