Open zer0Kerbal opened 1 year ago
from @lisias
If you are on a PartModule, try
this.vessel.GetTotalMass();
This will get yout the current total mas of the vessel, including everything inside (fuel, and I think kerbals too).
https://www.kerbalspaceprogram.com/ksp/api/class_vessel.html#a5f5aa50edff7f5b58df6fe4ff4ec298c
There's also this "RevelMass()" thingy, but theres's no documentation on it.
Description of the new feature / enhancement
make the resource consumption scale with the mass of the vessel being effected
Proposed technical implementation details
code change. when unit powered on, consume EC at rate ECbase * vessel.mass