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

◆ GetUnitWeight()

float InventoryItem::GetUnitWeight ( bool include_wetness = true)
inlineprotected

Obsolete, use GetWeightEx instead.

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

3596 {
3597 float weight = 0;
3598 float wetness = 1;
3599 if (include_wetness)
3600 wetness += GetWet();
3601 if (IsSplitable()) //quantity determines size of the stack
3602 {
3603 weight = wetness * m_ConfigWeight;
3604 }
3605 else if (IsLiquidContainer()) //is a liquid container, default liquid weight is set to 1. May revisit later?
3606 {
3607 weight = 1;
3608 }
3609 return weight;
3610 }
override bool IsSplitable()
Определения ItemBase.c:1600
bool IsLiquidContainer()
Определения ItemBase.c:916
override float GetWet()
Определения ItemBase.c:3731

Перекрестные ссылки GetWet(), IsLiquidContainer() и IsSplitable().