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

◆ GetUnitWeight()

float GetUnitWeight ( bool include_wetness = true)
protected

Obsolete, use GetWeightEx instead.

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

3574 {
3575 float weight = 0;
3576 float wetness = 1;
3577 if (include_wetness)
3578 wetness += GetWet();
3579 if (IsSplitable()) //quantity determines size of the stack
3580 {
3581 weight = wetness * ItemBaseType.Cast(GetEntityType()).m_ConfigWeight;
3582 }
3583 else if (IsLiquidContainer()) //is a liquid container, default liquid weight is set to 1. May revisit later?
3584 {
3585 weight = 1;
3586 }
3587 return weight;
3588 }
override bool IsSplitable()
Определения ItemBase.c:1528
bool IsLiquidContainer()
Определения ItemBase.c:825
override float GetWet()
Определения ItemBase.c:3717
Определения ItemBaseType.c:5

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