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

◆ CalcAndSetQuantity()

void CAContinuousFillCoolant::CalcAndSetQuantity ( ActionData action_data)
inlineprotected

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

123 {
124
126
127 if ( m_SpentUnits )
128 {
131 }
132
133 if ( GetGame().IsServer() )
134 {
135 if( action_data.m_MainItem )
136 action_data.m_MainItem.AddQuantity( -m_SpentQuantity );
137
138 Car car = Car.Cast(action_data.m_Target.GetParent());
139 if( car )
140 car.Fill( CarFluid.COOLANT, (m_SpentQuantity * 0.001) );
141 }
142
143 m_SpentQuantity = 0;
144 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:19
void SetACData(Param units)
Определения CABase.c:40
float m_SpentQuantity_total
Определения CAContinuousFillCoolant.c:5
ref Param1< float > m_SpentUnits
Определения CAContinuousFillCoolant.c:11
proto native CGame GetGame()

Перекрестные ссылки ActionData, GetGame(), m_SpentQuantity, m_SpentQuantity_total, m_SpentUnits и CABase::SetACData().