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

◆ GetWeightSpecialized()

float ManBase::GetWeightSpecialized ( bool forceRecalc = false)
inlineprotected

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

5109 {
5110 float totalWeight = super.GetWeightSpecialized(forceRecalc);
5111
5112 ItemBase itemHands = GetItemInHands();
5113 if (itemHands) // adds weight of item carried in hands
5114 {
5115 totalWeight += itemHands.GetWeightEx(forceRecalc);
5116 }
5117 #ifdef DEVELOPER
5118 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
5119 {
5120 float itemInHandsWeight = totalWeight - super.GetWeightSpecialized(forceRecalc);
5121 WeightDebugData dta = WeightDebug.GetWeightDebug(this);
5122 dta.SetCalcDetails("TMan: " + (super.GetWeightSpecialized(forceRecalc)+ itemInHandsWeight) +"(contents weight[includes item in hands])");
5123 }
5124 #endif
5125 return totalWeight;
5126 }
class GP5GasMask extends MaskBase ItemBase
ItemBase GetItemInHands()
Определения PlayerBase.c:6437
void SetCalcDetails(string details)
Определения 3_Game/DayZ/tools/Debug.c:916

Перекрестные ссылки GetItemInHands() и WeightDebugData::SetCalcDetails().