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

◆ CalcAndSetQuantity()

void CAContinuousTransferQuantity::CalcAndSetQuantity ( ActionData action_data)
inlineprotected

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

86 {
87 if ( GetGame().IsServer() )
88 {
89 if ( m_SpentUnits )
90 {
93 }
94 action_data.m_MainItem.AddQuantity(m_SpentQuantity);
95 ItemBase trg;
96 if ( Class.CastTo(trg, action_data.m_Target.GetObject()) )
97 {
98 trg.AddQuantity(-m_SpentQuantity,false,false);
99 }
100 }
101 }
class GP5GasMask extends MaskBase ItemBase
void SetACData(Param units)
Определения CABase.c:40
ref Param1< float > m_SpentUnits
Определения CAContinuousTransferQuantity.c:9
proto native CGame GetGame()

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