MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / MaxCarryWeight

Method MaxCarryWeight

ogsr_engine/xrGame/InventoryOwner.cpp:308–318  ·  view source on GitHub ↗

максимальный переносимы вес

Source from the content-addressed store, hash-verified

306
307//максимальный переносимы вес
308float CInventoryOwner::MaxCarryWeight() const
309{
310 float ret = inventory().GetMaxWeight();
311
312 const CCustomOutfit* outfit = GetOutfit();
313 if (outfit)
314 ret += outfit->m_additional_weight2;
315
316 ret += ArtefactsAddWeight(false);
317 return ret;
318}
319
320void CInventoryOwner::spawn_supplies()
321{

Callers 4

GetMaxWeightMethod · 0.80
UpdateConditionMethod · 0.80
CanTakeItemMethod · 0.80
UpdateWeightMethod · 0.80

Calls 1

GetMaxWeightMethod · 0.45

Tested by

no test coverage detected