camlost2 / AJE

Advanced Jet Engine for KSP
8 stars 10 forks source link

sound effect change with throttle #10

Closed bssthu closed 9 years ago

bssthu commented 9 years ago

In SetThrust(), do not set minThrust to maxThrust.

Set finalThrust to maxThrust, then set maxThrust to (maxThrust / currentThrottle).

This time thrust should be correct. maxThrust is still wrong, but it's better than making the sound staying at max volume.

I tested JetEngine, B9_Engine_SABRE_S and B9_Engine_Jet_Pod_Small. In the picture, the left engine use new way to set thrust (finalThrust = maxThrust, maxThrust = maxThrust / currentThrottle), the right engine use the old way (minThrust = maxThrust). The plane can go straight forward. screenshot15

Here is my test files: https://github.com/bssthu/AJE/releases/tag/2.0.3 (Sorry I don't have a net disk)

(Hope this commit didn't mess up something...)