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

◆ ProcessItemWetness()

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

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

4479 {
4480 if (!hasRootAsPlayer)
4481 {
4482 if (refParentIB)
4483 {
4484 // parent is wet
4485 if ((refParentIB.GetWet() >= GameConstants.STATE_SOAKING_WET) && (m_VarWet < m_VarWetMax))
4486 AddWet(delta * GameConstants.WETNESS_RATE_WETTING_INSIDE);
4487 // parent has liquid inside
4488 else if ((refParentIB.GetLiquidType() != 0) && (refParentIB.GetQuantity() > 0) && (m_VarWet < m_VarWetMax))
4489 AddWet(delta * GameConstants.WETNESS_RATE_WETTING_LIQUID);
4490 // drying
4491 else if (m_VarWet > m_VarWetMin)
4492 AddWet(-1 * delta * GetDryingIncrement("ground") * 2);
4493 }
4494 else
4495 {
4496 // drying on ground or inside non-itembase (car, ...)
4497 if (m_VarWet > m_VarWetMin)
4498 AddWet(-1 * delta * GetDryingIncrement("ground"));
4499 }
4500 }
4501 }
float m_VarWet
Определения ItemBase.c:38
float m_VarWetMax
Определения ItemBase.c:42
float GetDryingIncrement(string pIncrementName)
Определения ItemBase.c:3559
float m_VarWetMin
Определения ItemBase.c:41
override void AddWet(float value)
Определения ItemBase.c:3596

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