Restore Goddard leveling and Scooter positional pitch processing

This commit is contained in:
UnixNight committed 2026-11-04 18:27:56 -05:00
1 parent 74be19eb15
commit fccc0b9d1b
24 files changed
+967 -8

No files matched your search

+5 -4
View File
@@ -33,8 +33,6 @@ internal static class Program
catch (Exception error) { Console.Error.WriteLine(error); return 1; }
}
private static int ScooterEngineFrequency(int baseFrequency,float speed)=>Math.Max(7000,(int)(baseFrequency+(double)speed*(1/1.9)*51));
private static string? Option(string[] args, string name)
{
var i = Array.IndexOf(args, name);
@@ -622,9 +620,12 @@ internal static class Program
}
if(scooter!=null)
{
scooter.EngineStarted+=()=>sceneAudio?.Effect(46,"scooter");
var scooterAudio=new ScooterAudio();
scooter.EngineStarted+=()=>{scooterAudio.Reset();sceneAudio?.Effect(46,"scooter");};
scooter.EngineStopped+=()=>sceneAudio?.StopLoop("scooter");
scooter.EngineSpeedChanged+=speed=>sceneAudio?.TuneLoop("scooter",baseFrequency=>ScooterEngineFrequency(baseFrequency,speed));
scooter.EngineSpeedChanged+=speed=>sceneAudio?.TuneLoop("scooter",baseFrequency=>
scooterAudio.Frequency(baseFrequency,speed,scooter.Root,
director?.CameraEye??(scooter.Mounted?scooter.CameraEye:simulation!.CameraEye)));
}
if(baseballs!=null)baseballs.Sound+=id=>sceneAudio?.Effect(id);
if(rocketship!=null)