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

◆ GetWeightSpecialized()

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

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

4965 {
4966 float totalWeight = super.GetWeightSpecialized(forceRecalc);
4967
4968 ItemBase itemHands = GetItemInHands();
4969 if (itemHands) // adds weight of item carried in hands
4970 {
4971 totalWeight += itemHands.GetWeightEx(forceRecalc);
4972 }
4973 #ifdef DEVELOPER
4974 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
4975 {
4976 float itemInHandsWeight = totalWeight - super.GetWeightSpecialized(forceRecalc);
4977 WeightDebugData dta = WeightDebug.GetWeightDebug(this);
4978 dta.SetCalcDetails("TMan: " + (super.GetWeightSpecialized(forceRecalc)+ itemInHandsWeight) +"(contents weight[includes item in hands])");
4979 }
4980 #endif
4981 return totalWeight;
4982 }
class GP5GasMask extends MaskBase ItemBase
ItemBase GetItemInHands()
Определения PlayerBase.c:6210
void SetCalcDetails(string details)
Определения Debug.c:816

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