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

◆ ProcessItemWetness()

void ProcessItemWetness ( float delta,
bool hasParent,
bool hasRootAsPlayer,
ItemBase refParentIB )
protected

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

4567 {
4568 if (!hasRootAsPlayer)
4569 {
4570 ItemBaseType itemBaseType = ItemBaseType.Cast(GetEntityType());
4571 if (refParentIB)
4572 {
4573 // parent is wet
4574 if ((refParentIB.GetWet() >= GameConstants.STATE_SOAKING_WET) && (m_VarWet < ItemBaseType.Cast(GetEntityType()).m_VarWetMax))
4576 // parent has liquid inside
4577 else if ((refParentIB.GetLiquidType() != 0) && (refParentIB.GetQuantity() > 0) && (m_VarWet < ItemBaseType.Cast(GetEntityType()).m_VarWetMax))
4579 // drying
4580 else if (m_VarWet > itemBaseType.m_VarWetMin)
4581 AddWet(-1 * delta * GetDryingIncrement(EEnvironmentDryingCategories.GROUND) * 2);
4582 }
4583 else
4584 {
4585 // drying on ground or inside non-itembase (car, ...)
4586 if (m_VarWet > itemBaseType.m_VarWetMin)
4587 AddWet(-1 * delta * GetDryingIncrement(EEnvironmentDryingCategories.GROUND));
4588 }
4589 }
4590 }
float m_VarWet
Определения ItemBase.c:42
float GetDryingIncrement(EEnvironmentDryingCategories pCategory)
Определения ItemBase.c:3658
override void AddWet(float value)
Определения ItemBase.c:3707
float m_VarWetMin
Определения ItemBaseType.c:39
Определения ItemBaseType.c:5
const float WETNESS_RATE_WETTING_INSIDE
Определения 3_Game/DayZ/constants.c:972
const float WETNESS_RATE_WETTING_LIQUID
Определения 3_Game/DayZ/constants.c:973
const float STATE_SOAKING_WET
Определения 3_Game/DayZ/constants.c:934

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

Используется в ProcessItemWetnessAndTemperature() и ProcessVariables().