From c83b6fcdc97a193184552b436086a76679d024ba Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 1 Dec 2026 07:18:14 +0400 Subject: fix(audio): play engine loops for autonomous missiles Keep one spatial Op2 source per flight while it moves, with separate identities from manual and scene emitters. Confirm the original mode 5 phase and verify launch, overlap and teardown on the GOG AutoDemo. Flight-speed changes and a listening comparison with the original remain open. --- crates/fparkan-runtime/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crates/fparkan-runtime/src/lib.rs') diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index 1a9eb405..cdd8d35a 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -3459,6 +3459,13 @@ pub fn autonomous_weapon_effects(engine: &Engine) -> &[(String, String)] { pub fn autodemo_projectiles( engine: &Engine, ) -> impl Iterator + '_ { + autonomous_projectile_flights(engine).map(|(_, projectile, pose)| (projectile, pose)) +} + +/// Active autonomous flights with IDs stable across combat steps and pool reuse. +pub fn autonomous_projectile_flights( + engine: &Engine, +) -> impl Iterator + '_ { engine .autodemo_combat .iter() -- cgit v1.2.3