From 00e8ddb1ca169e0bf38bde14eaa73969b9177d1a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 08:14:18 +0400 Subject: feat(audio): drive chassis engine loops from actual movement Prepare the authored root-node CTL attachments and feed Control speed limits plus observed motion into FX modes 5 and 15. The stock AutoDemo window queues ground and flight engine loops from the starting scene. --- crates/fparkan-runtime/src/player_weapon.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/fparkan-runtime/src/player_weapon.rs') diff --git a/crates/fparkan-runtime/src/player_weapon.rs b/crates/fparkan-runtime/src/player_weapon.rs index 00ead0db..2ced63cd 100644 --- a/crates/fparkan-runtime/src/player_weapon.rs +++ b/crates/fparkan-runtime/src/player_weapon.rs @@ -345,7 +345,7 @@ fn firing_effect_row<'a>( .find(|&&(table, node, _)| table == group && node as usize == muzzle.node_index) { rows.iter() - .find(|row| row.table_index == group && row.selector == selector) + .find(|row| row.opcode == 4 && row.table_index == group && row.selector == selector) } else { // Separate gun meshes can have one firing record and an effect whose // first control point is the same muzzle. Ambiguous rows stay unresolved. @@ -359,7 +359,8 @@ fn firing_effect_row<'a>( return None; } let mut candidates = rows.iter().filter(|row| { - row.table_index == group + row.opcode == 4 + && row.table_index == group && row.raw_condition == [0; 3] && row.point_offsets[0] == muzzle.raw_parameters[1] }); -- cgit v1.2.3