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

◆ GetWeightSpecialized()

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

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

4955 {
4956 float totalWeight = super.GetWeightSpecialized(forceRecalc);
4957
4958 ItemBase itemHands = GetItemInHands();
4959 if (itemHands) // adds weight of item carried in hands
4960 {
4961 totalWeight += itemHands.GetWeightEx(forceRecalc);
4962 }
4963 #ifdef DEVELOPER
4964 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
4965 {
4966 float itemInHandsWeight = totalWeight - super.GetWeightSpecialized(forceRecalc);
4967 WeightDebugData dta = WeightDebug.GetWeightDebug(this);
4968 dta.SetCalcDetails("TMan: " + (super.GetWeightSpecialized(forceRecalc)+ itemInHandsWeight) +"(contents weight[includes item in hands])");
4969 }
4970 #endif
4971 return totalWeight;
4972 }
class GP5GasMask extends MaskBase ItemBase
ItemBase GetItemInHands()
Определения PlayerBase.c:6202
void SetCalcDetails(string details)
Определения 3_Game/tools/Debug.c:816

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