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

◆ IsWindy()

static bool IsWindy ( )
staticprotected

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

2366 {
2367 //check wind
2368 float wind_speed = GetGame().GetWeather().GetWindSpeed();
2369 float wind_speed_threshold = GetGame().GetWeather().GetWindMaximumSpeed() * FireplaceBase.IGNITE_WIND_THRESHOLD;
2370
2371 return (wind_speed >= wind_speed_threshold);
2372 }
proto native Weather GetWeather()
Returns weather controller object.
proto native float GetWindSpeed()
Returns actual wind speed in metre per second.
proto native float GetWindMaximumSpeed()
Returns maximal wind speed in metre per second.
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CGame::GetWeather(), Weather::GetWindMaximumSpeed() и Weather::GetWindSpeed().

Используется в FireplaceBase::IsThisIgnitionSuccessful() и StartHeating().