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

◆ RainProcurementCheck()

void RainProcurementManager::RainProcurementCheck ( )
inlineprotected

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

30 {
31 float rain_intensity = GetGame().GetWeather().GetRain().GetActual();
32 float fill_per_update = RAIN_COEFFICIENT * rain_intensity;
33
34 if ( rain_intensity > 0 )
35 {
36 if ( m_ProcuringItem.GetQuantity() < m_ProcuringItem.GetQuantityMax() )
37 {
38 Liquid.FillContainerEnviro( m_ProcuringItem, LIQUID_FRESHWATER, fill_per_update );
39
40 //Print( "Quantity of " + m_ProcuringItem + " is: " + m_ProcuringItem.GetQuantity() );
41 }
42 else
43 {
44 //Print("vesel full");
46 }
47 }
48 }
proto native Weather GetWeather()
Returns weather controller object.
void StopRainProcurement()
Определения RainProcurementManager.c:76
const int RAIN_COEFFICIENT
Определения RainProcurementManager.c:7
ItemBase m_ProcuringItem
Определения RainProcurementManager.c:4
proto native Rain GetRain()
Returns a rain phenomenon object.
proto native float GetActual()
proto native CGame GetGame()
const int LIQUID_FRESHWATER
Определения constants.c:549

Перекрестные ссылки WeatherPhenomenon::GetActual(), GetGame(), Weather::GetRain(), CGame::GetWeather(), LIQUID_FRESHWATER, m_ProcuringItem, RAIN_COEFFICIENT и StopRainProcurement().