7 {
8 float quantityPerSecond = 1.0;
10 if (bottle)
11 quantityPerSecond = bottle.GetLiquidEmptyRate() * bottle.GetLiquidThroughputCoef();
12
13 float wetMax = 1.0;
15 if (clothing)
16 wetMax = clothing.GetWetMax();
17
18 float stepSize = 0.2 * wetMax / ActionWetClothingFromContainer.WET_PER_QUANTITY;
20 float stepTime = stepSize / quantityPerSecond;
21 m_ActionData.m_ActionComponent =
new CAContinuousQuantityRepeat(quantityPerSecond, stepTime);
22 }
class GP5GasMask extends MaskBase ItemBase