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

◆ GetUnitWeight()

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

Obsolete, use GetWeightEx instead.

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

3471 {
3472 float weight = 0;
3473 float wetness = 1;
3474 if (include_wetness)
3475 wetness += GetWet();
3476 if (IsSplitable()) //quantity determines size of the stack
3477 {
3478 weight = wetness * m_ConfigWeight;
3479 }
3480 else if (IsLiquidContainer()) //is a liquid container, default liquid weight is set to 1. May revisit later?
3481 {
3482 weight = 1;
3483 }
3484 return weight;
3485 }
override bool IsSplitable()
Определения ItemBase.c:1575
bool IsLiquidContainer()
Определения ItemBase.c:906
override float GetWet()
Определения ItemBase.c:3606

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