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

◆ GetWeightSpecialized()

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

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

5386 {
5387 float totalWeight = super.GetWeightSpecialized(forceRecalc);
5388
5389 ItemBase itemHands = GetItemInHands();
5390 if (itemHands) // adds weight of item carried in hands
5391 {
5392 totalWeight += itemHands.GetWeightEx(forceRecalc);
5393 }
5394 #ifdef DEVELOPER
5395 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
5396 {
5397 float itemInHandsWeight = totalWeight - super.GetWeightSpecialized(forceRecalc);
5398 WeightDebugData dta = WeightDebug.GetWeightDebug(this);
5399 dta.SetCalcDetails("TMan: " + (super.GetWeightSpecialized(forceRecalc)+ itemInHandsWeight) +"(contents weight[includes item in hands])");
5400 }
5401 #endif
5402 return totalWeight;
5403 }
class GP5GasMask extends MaskBase ItemBase
ItemBase GetItemInHands()
Определения PlayerBase.c:6733
void SetCalcDetails(string details)
Определения 3_Game/DayZ/tools/Debug.c:934

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