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

◆ CollectAndSetEnvironmentData()

void CollectAndSetEnvironmentData ( )
protected

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

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

645 {
646 Weather weather = g_Game.GetWeather();
647 m_Rain = weather.GetRain().GetActual();
648 m_Snowfall = weather.GetSnowfall().GetActual();
649 m_DayOrNight = g_Game.GetMission().GetWorldData().GetDaytime();
650 m_Fog = weather.GetFog().GetActual();
651 m_Clouds = weather.GetOvercast().GetActual();
652 m_Wind = weather.GetWindMagnitude().GetActual();
653
656 }
DayZGame g_Game
Определения DayZGame.c:3942
void SetAreaGenericColdness()
Determines whether player is in cold area which restricts use of some actions (digging)
Определения Environment.c:669
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:660
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().