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

◆ ProcessItemWetness()

void InventoryItem::ProcessItemWetness ( float delta,
bool hasParent,
bool hasRootAsPlayer,
ItemBase refParentIB )
inlineprotected

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

4567 {
4568 if (!hasRootAsPlayer)
4569 {
4570 if (refParentIB)
4571 {
4572 // parent is wet
4573 if ((refParentIB.GetWet() >= GameConstants.STATE_SOAKING_WET) && (m_VarWet < m_VarWetMax))
4574 AddWet(delta * GameConstants.WETNESS_RATE_WETTING_INSIDE);
4575 // parent has liquid inside
4576 else if ((refParentIB.GetLiquidType() != 0) && (refParentIB.GetQuantity() > 0) && (m_VarWet < m_VarWetMax))
4577 AddWet(delta * GameConstants.WETNESS_RATE_WETTING_LIQUID);
4578 // drying
4579 else if (m_VarWet > m_VarWetMin)
4580 AddWet(-1 * delta * GetDryingIncrement("ground") * 2);
4581 }
4582 else
4583 {
4584 // drying on ground or inside non-itembase (car, ...)
4585 if (m_VarWet > m_VarWetMin)
4586 AddWet(-1 * delta * GetDryingIncrement("ground"));
4587 }
4588 }
4589 }
float m_VarWet
Определения ItemBase.c:44
float m_VarWetMax
Определения ItemBase.c:48
float GetDryingIncrement(string pIncrementName)
Определения ItemBase.c:3684
float m_VarWetMin
Определения ItemBase.c:47
override void AddWet(float value)
Определения ItemBase.c:3721

Перекрестные ссылки AddWet(), GetDryingIncrement(), ItemBase(), m_VarWet, m_VarWetMax, m_VarWetMin, GameConstants::STATE_SOAKING_WET, GameConstants::WETNESS_RATE_WETTING_INSIDE и GameConstants::WETNESS_RATE_WETTING_LIQUID.