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

◆ CreateActionComponent()

override void ActionWetClothingFromContainerCB::CreateActionComponent ( )
inlineprivate

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

7 {
8 float quantityPerSecond = 1.0;
9 Bottle_Base bottle = Bottle_Base.Cast(m_ActionData.m_MainItem);
10 if (bottle)
11 quantityPerSecond = bottle.GetLiquidEmptyRate() * bottle.GetLiquidThroughputCoef();
12
13 float wetMax = 1.0;
14 ItemBase clothing = ItemBase.Cast(m_ActionData.m_Target.GetObject());
15 if (clothing)
16 wetMax = clothing.GetWetMax();
17
18 float stepSize = 0.2 * wetMax / ActionWetClothingFromContainer.WET_PER_QUANTITY;
19 m_WetGainPerStep = 0.2 * wetMax;
20 float stepTime = stepSize / quantityPerSecond;
21 m_ActionData.m_ActionComponent = new CAContinuousQuantityRepeat(quantityPerSecond, stepTime);
22 }
void Bottle_Base()
Определения Bottle_Base.c:42
class GP5GasMask extends MaskBase ItemBase
ActionData m_ActionData
Определения AnimatedActionBase.c:3

Перекрестные ссылки ActionBaseCB::m_ActionData, m_WetGainPerStep и ActionWetClothingFromContainer::WET_PER_QUANTITY.