[Mod Idea] Caravan capacity based on manipulation/carry weight, not body size

Started by gizmo209, February 10, 2018, 07:58:07 PM

Previous topic - Next topic

gizmo209

Hi there, I've been combing through the files and haven't been able to find the file/process/component that controls caravan carry capacity. When you add bionic parts to pawns, or even animals with mods, the caravan capacity remains unchanged, relying on 35% of <bodysize> of each pawn exclusively.

Does anyone know where I can edit this? I'd love to see my bionics being used when travelling, or to adjust it from 35% of <bodysize> atleast

gizmo209

So I did some digging into Managed\Assembly-CSharp.dll, and came upon the MassUtility. In the code, mass capacity is indeed bodysize * 35f, and can be adjusted by patching the integer 35 to 50 or whatever you like. This function is also plugged in for the caravan mass capacity.

What I'm trying to figure out still is multiplying this by PawnCapacity_Manipulation without breaking the game. Any advice would be appreciated