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

◆ GetUnitWeight()

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

Obsolete, use GetWeightEx instead.

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

3541 {
3542 float weight = 0;
3543 float wetness = 1;
3544 if (include_wetness)
3545 wetness += GetWet();
3546 if (IsSplitable()) //quantity determines size of the stack
3547 {
3548 weight = wetness * m_ConfigWeight;
3549 }
3550 else if (IsLiquidContainer()) //is a liquid container, default liquid weight is set to 1. May revisit later?
3551 {
3552 weight = 1;
3553 }
3554 return weight;
3555 }
override bool IsSplitable()
Определения ItemBase.c:1575
bool IsLiquidContainer()
Определения ItemBase.c:906
override float GetWet()
Определения ItemBase.c:3676

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