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

◆ ProcessItemWetness()

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

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

4551 {
4552 if (!hasRootAsPlayer)
4553 {
4554 if (refParentIB)
4555 {
4556 // parent is wet
4557 if ((refParentIB.GetWet() >= GameConstants.STATE_SOAKING_WET) && (m_VarWet < m_VarWetMax))
4558 AddWet(delta * GameConstants.WETNESS_RATE_WETTING_INSIDE);
4559 // parent has liquid inside
4560 else if ((refParentIB.GetLiquidType() != 0) && (refParentIB.GetQuantity() > 0) && (m_VarWet < m_VarWetMax))
4561 AddWet(delta * GameConstants.WETNESS_RATE_WETTING_LIQUID);
4562 // drying
4563 else if (m_VarWet > m_VarWetMin)
4564 AddWet(-1 * delta * GetDryingIncrement("ground") * 2);
4565 }
4566 else
4567 {
4568 // drying on ground or inside non-itembase (car, ...)
4569 if (m_VarWet > m_VarWetMin)
4570 AddWet(-1 * delta * GetDryingIncrement("ground"));
4571 }
4572 }
4573 }
float m_VarWet
Определения ItemBase.c:38
float m_VarWetMax
Определения ItemBase.c:42
float GetDryingIncrement(string pIncrementName)
Определения ItemBase.c:3629
float m_VarWetMin
Определения ItemBase.c:41
override void AddWet(float value)
Определения ItemBase.c:3666

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