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

◆ CreateActionComponent()

override void ActionWetClothingInHandsBaseCB::CreateActionComponent ( )
inlineprivate

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

6 {
7 float wetMax = 1.0;
8 float remaining = 1.0;
9 ItemBase clothing = ItemBase.Cast(m_ActionData.m_MainItem);
10 if (clothing)
11 {
12 wetMax = clothing.GetWetMax();
13 remaining = wetMax - clothing.GetWet();
14 }
15
16 float stepTime = Math.Clamp(wetMax * 0.2, 0.1, remaining) * UATimeSpent.WRING;
17 m_WetGainPerStep = stepTime / UATimeSpent.WRING;
18 m_ActionData.m_ActionComponent = new CAContinuousRepeat(stepTime);
19 }
class GP5GasMask extends MaskBase ItemBase
ActionData m_ActionData
Определения AnimatedActionBase.c:3

Перекрестные ссылки Math::Clamp(), ActionBaseCB::m_ActionData, m_WetGainPerStep и UATimeSpent::WRING.