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

Method GetMaxWeight

ogsr_engine/xrGame/script_game_object3.cpp:1011–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1009}
1010
1011float CScriptGameObject::GetMaxWeight() const
1012{
1013 auto e = smart_cast<CInventoryOwner*>(&object());
1014 if (!e)
1015 {
1016 Msg("!!CInventoryOwner : cannot access class member GetMaxWalkWeight!");
1017 return 0;
1018 }
1019
1020 return e->MaxCarryWeight();
1021}
1022float CScriptGameObject::GetMaxWalkWeight() const
1023{
1024 auto e = smart_cast<CActor*>(&object());

Callers

nothing calls this directly

Calls 3

MsgFunction · 0.85
MaxCarryWeightMethod · 0.80
objectFunction · 0.50

Tested by

no test coverage detected