kRPC: Control the game using C#, C++, Java, Lua, Python...

kRPC: Control the game using C#, C++, Java, Lua, Python...

7.8k Downloads

Engine.has_fuel is sometimes True for SRBs that have flamed out

object-Object opened this issue ยท 1 comments

commented

SRBs seem to sometimes flame out with a tiny amount of fuel remaining. When this happens, Engine.has_fuel still reads as True and Engine.available_thrust isn't zero. Arguably, one or both of these shouldn't be the case, since the engine flamed out due to lack of fuel (as the right click menu shows).
image

commented

The check in Engine.HasFuel is whether the fuel is less than 0.001. I'll adjust this to use 0.02 as the threshold, which should fix this case.