Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate engine failures from thrust limiter #2

Merged
merged 2 commits into from
Mar 12, 2020

Conversation

bfrobin446
Copy link

As promised in issue #1, I got TestFlight's implementation of engine thrust loss working in OhScrap.

TestFlight has a class called EngineModuleWrapper that abstracts the differences between a base-game engine module and a RealFuels/AJE engine. I brought the entire class over instead of trying to pick and choose what parts of it were relevant to this change.

We now have three different ways for an engine to lose thrust:

  • What OhScrap previously did with the thrust limiter: thrust decays by 10% every few seconds until it's effectively zero.

  • Fuel flow drops by 50%, causing the engine to deliver 50% thrust until repaired.

  • Specific impulse drops by 50%. The engine produces half thrust, but continues to consume as much fuel as it would at full thrust.

@zer0Kerbal
Copy link
Owner

Thank you! @bfrobin446 @severedsolo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement engine under-thrust/under-Isp failures in a way that doesn't depend on thrust limiter.
2 participants