DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CollectAndSetEnvironmentData()

void CollectAndSetEnvironmentData ( )
protected

Sets actual weather related values for further use (rain, snow, wind, etc.)

См. определение в файле Environment.c строка 641

642 {
643 Weather weather = g_Game.GetWeather();
644 m_Rain = weather.GetRain().GetActual();
645 m_Snowfall = weather.GetSnowfall().GetActual();
646 m_DayOrNight = g_Game.GetMission().GetWorldData().GetDaytime();
647 m_Fog = weather.GetFog().GetActual();
648 m_Clouds = weather.GetOvercast().GetActual();
649 m_Wind = weather.GetWindMagnitude().GetActual();
650
653 }
DayZGame g_Game
Определения DayZGame.c:3868
void SetAreaGenericColdness()
Determines whether player is in cold area which restricts use of some actions (digging)
Определения Environment.c:666
float m_Rain
target value of heatcomfort (non-buffered)
Определения Environment.c:52
float m_Snowfall
Определения Environment.c:53
float m_Wind
Определения Environment.c:54
float m_DayOrNight
Определения Environment.c:56
void SetEnvironmentTemperature()
Определения Environment.c:657
float m_Fog
Определения Environment.c:55
float m_Clouds
Определения Environment.c:57
proto native Fog GetFog()
Returns a fog phenomenon object.
proto native WindMagnitude GetWindMagnitude()
Returns a wind magnitude phenomenon object.
proto native Snowfall GetSnowfall()
Returns a snowfall phenomenon object.
proto native Rain GetRain()
Returns a rain phenomenon object.
proto native Overcast GetOvercast()
Returns an overcast phenomenon object.
Определения Weather.c:168
proto native float GetActual()

Перекрестные ссылки g_Game, WeatherPhenomenon::GetActual(), Weather::GetFog(), Weather::GetOvercast(), Weather::GetRain(), Weather::GetSnowfall(), Weather::GetWindMagnitude(), m_Clouds, m_DayOrNight, m_Fog, m_Rain, m_Snowfall, m_Wind, SetAreaGenericColdness() и SetEnvironmentTemperature().

Используется в Update().