DayZ 1.24
|
Keeps information about currently loaded world, like temperature. More...
Protected Member Functions | |
void | WorldData () |
void | Init () |
float | GetApproxSunriseTime (float monthday) |
float | GetApproxSunsetTime (float monthday) |
float | CalcBaseEnvironmentTemperature (float monthday, float daytime) |
void | UpdateBaseEnvTemperature (float timeslice) |
float | GetBaseEnvTemperature () |
float | GetBaseEnvTemperatureExact (int month, int day, int hour, int minute) |
float | GetDayTemperature () |
float | GetNightTemperature () |
bool | WeatherOnBeforeChange (EWeatherPhenomenon type, float actual, float change, float time) |
array< vector > | GetArtyFiringPos () |
void | BaseTempDebug (int month, int day) |
override void | Init () |
override bool | WeatherOnBeforeChange (EWeatherPhenomenon type, float actual, float change, float time) |
override void | Init () |
override bool | WeatherOnBeforeChange (EWeatherPhenomenon type, float actual, float change, float time) |
Protected Attributes | |
float | m_DayTemperature |
float | m_NightTemperature |
Weather | m_Weather |
float | m_EnvironmentTemperature |
float | m_Timer |
float | m_MaxTemps [12] |
float | m_MinTemps [12] |
float | m_Sunrise_Jan |
float | m_Sunset_Jan |
float | m_Sunrise_Jul |
float | m_Sunset_Jul |
ref array< vector > | m_FiringPos |
int | m_clearWeatherChance = CLEAR_WEATHER_CHANCE |
int | m_badWeatherChance = BAD_WEATHER_CHANCE |
int | m_sameWeatherCnt = 0 |
int | m_stepValue = 5 |
int | m_chance = 50 |
int | m_choosenWeather = 1 |
int | m_lastWeather = 0 |
Static Protected Attributes | |
static const ref array< vector > | CHERNARUS_ARTY_STRIKE_POS |
static const ref array< vector > | LIVONIA_ARTY_STRIKE_POS |
Private Attributes | |
const float | RAIN_THRESHOLD = 0.6 |
const float | STORM_THRESHOLD = 0.9 |
const int | OVERCAST_MIN_TIME = 600 |
const int | OVERCAST_MAX_TIME = 900 |
const int | RAIN_TIME_MIN = 60 |
const int | RAIN_TIME_MAX = 120 |
const int | CLEAR_WEATHER = 1 |
const int | CLOUDY_WEATHER = 2 |
const int | BAD_WEATHER = 3 |
const int | CLEAR_WEATHER_CHANCE = 30 |
const int | BAD_WEATHER_CHANCE = 80 |
Keeps information about currently loaded world, like temperature.
Definition at line 2 of file WorldData.c.
|
inlineprotected |
Definition at line 17 of file WorldData.c.
References Init().
Definition at line 142 of file WorldData.c.
References GetBaseEnvTemperatureExact(), and Print().
Definition at line 51 of file WorldData.c.
References Math::AbsFloat(), Math::Floor(), GetApproxSunriseTime(), GetApproxSunsetTime(), Math::Lerp(), m_MaxTemps, and m_MinTemps.
Referenced by GetBaseEnvTemperatureExact(), and UpdateBaseEnvTemperature().
Definition at line 37 of file WorldData.c.
References m_Sunrise_Jan, and m_Sunrise_Jul.
Referenced by CalcBaseEnvironmentTemperature().
Definition at line 44 of file WorldData.c.
References m_Sunset_Jan, and m_Sunset_Jul.
Referenced by CalcBaseEnvironmentTemperature().
|
inlineprotected |
|
inlineprotected |
Definition at line 113 of file WorldData.c.
References CalcBaseEnvironmentTemperature().
Referenced by BaseTempDebug().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Definition at line 22 of file WorldData.c.
References g_Game, m_DayTemperature, m_EnvironmentTemperature, m_MaxTemps, m_MinTemps, m_NightTemperature, m_Sunrise_Jan, m_Sunrise_Jul, m_Sunset_Jan, m_Sunset_Jul, m_Timer, and m_Weather.
Referenced by WorldData().
Definition at line 40 of file ChernarusPlus.c.
References Count, CfgGameplayHandler::GetEnvironmentMaxTemps(), and CfgGameplayHandler::GetEnvironmentMinTemps().
Definition at line 42 of file Enoch.c.
References Count, CfgGameplayHandler::GetEnvironmentMaxTemps(), and CfgGameplayHandler::GetEnvironmentMinTemps().
Definition at line 96 of file WorldData.c.
References CalcBaseEnvironmentTemperature(), GetGame(), m_EnvironmentTemperature, and m_Timer.
|
inlineprotected |
Definition at line 129 of file WorldData.c.
|
inlineprotected |
Definition at line 68 of file ChernarusPlus.c.
References g_Game, Math::RandomFloatInclusive(), Math::RandomInt(), Math::RandomIntInclusive(), and Debug::WeatherLog().
|
inlineprotected |
Definition at line 70 of file Enoch.c.
References g_Game, GetGame(), Math::RandomFloatInclusive(), Math::RandomInt(), Math::RandomIntInclusive(), and Debug::WeatherLog().
Definition at line 15 of file ChernarusPlus.c.
Definition at line 18 of file ChernarusPlus.c.
Definition at line 32 of file ChernarusPlus.c.
Definition at line 13 of file ChernarusPlus.c.
Definition at line 17 of file ChernarusPlus.c.
Definition at line 14 of file ChernarusPlus.c.
Definition at line 31 of file Enoch.c.
|
protected |
Definition at line 22 of file ChernarusPlus.c.
|
protected |
Definition at line 26 of file ChernarusPlus.c.
|
protected |
Definition at line 28 of file ChernarusPlus.c.
|
protected |
Definition at line 20 of file ChernarusPlus.c.
|
protected |
Definition at line 4 of file WorldData.c.
Referenced by GetDayTemperature(), and Init().
|
protected |
Definition at line 7 of file WorldData.c.
Referenced by GetBaseEnvTemperature(), Init(), and UpdateBaseEnvTemperature().
Definition at line 15 of file WorldData.c.
Referenced by GetArtyFiringPos().
|
protected |
Definition at line 29 of file ChernarusPlus.c.
|
protected |
Definition at line 9 of file WorldData.c.
Referenced by CalcBaseEnvironmentTemperature(), and Init().
|
protected |
Definition at line 10 of file WorldData.c.
Referenced by CalcBaseEnvironmentTemperature(), and Init().
|
protected |
Definition at line 5 of file WorldData.c.
Referenced by GetNightTemperature(), and Init().
|
protected |
Definition at line 24 of file ChernarusPlus.c.
|
protected |
Definition at line 25 of file ChernarusPlus.c.
|
protected |
Definition at line 11 of file WorldData.c.
Referenced by GetApproxSunriseTime(), and Init().
|
protected |
Definition at line 13 of file WorldData.c.
Referenced by GetApproxSunriseTime(), and Init().
|
protected |
Definition at line 12 of file WorldData.c.
Referenced by GetApproxSunsetTime(), and Init().
|
protected |
Definition at line 14 of file WorldData.c.
Referenced by GetApproxSunsetTime(), and Init().
|
protected |
Definition at line 8 of file WorldData.c.
Referenced by Init(), and UpdateBaseEnvTemperature().
|
protected |
Definition at line 6 of file WorldData.c.
Referenced by Init().
Definition at line 8 of file ChernarusPlus.c.
Definition at line 7 of file ChernarusPlus.c.
Definition at line 4 of file ChernarusPlus.c.
Definition at line 11 of file ChernarusPlus.c.
Definition at line 10 of file ChernarusPlus.c.
Definition at line 5 of file ChernarusPlus.c.