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

◆ CalcAndSetQuantity()

void CAContinuousFillBrakes::CalcAndSetQuantity ( ActionData action_data)
inlineprotected

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

121 {
122
124
125 if ( m_SpentUnits )
126 {
129 }
130
131
132 if ( GetGame().IsServer() )
133 {
134 if ( action_data.m_MainItem ) // Item EngineOil gets deleted after full consumption
135 action_data.m_MainItem.AddQuantity( -m_SpentQuantity );
136
137 Car car = Car.Cast(action_data.m_Target.GetObject());
138 car.Fill( CarFluid.BRAKE, (m_SpentQuantity * 0.001) );
139 }
140
141 m_SpentQuantity = 0;
142 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:19
void SetACData(Param units)
Определения CABase.c:40
ref Param1< float > m_SpentUnits
Определения CAContinuousFillBrakes.c:11
float m_SpentQuantity_total
Определения CAContinuousFillBrakes.c:5
float m_SpentQuantity
Определения CAContinuousFillBrakes.c:4
proto native CGame GetGame()

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