aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/projectile_trail.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-26 07:14:18 +0300
committerValentin Popov <valentin@popov.link>2026-11-26 07:14:18 +0300
commit00e8ddb1ca169e0bf38bde14eaa73969b9177d1a (patch)
tree0b36f51ce6a56c588135d1170eaa10be9210904c /apps/fparkan-game/src/projectile_trail.rs
parent161c3fad038c5fae15d49ba614bee37cbcdde6f6 (diff)
downloadfparkan-00e8ddb1ca169e0bf38bde14eaa73969b9177d1a.tar.xz
fparkan-00e8ddb1ca169e0bf38bde14eaa73969b9177d1a.zip
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.
Diffstat (limited to 'apps/fparkan-game/src/projectile_trail.rs')
-rw-r--r--apps/fparkan-game/src/projectile_trail.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/fparkan-game/src/projectile_trail.rs b/apps/fparkan-game/src/projectile_trail.rs
index 3b1cdfda..54445ac5 100644
--- a/apps/fparkan-game/src/projectile_trail.rs
+++ b/apps/fparkan-game/src/projectile_trail.rs
@@ -29,7 +29,9 @@ pub(super) fn prepare(
};
let mut layers = Vec::new();
for row in rows.iter().filter(|row| {
- Some(row.table_index) == control.initial_effect_group && row.raw_condition == [0; 3]
+ row.opcode == 4
+ && Some(row.table_index) == control.initial_effect_group
+ && row.raw_condition == [0; 3]
}) {
let archive = fixed_effect_field(&row.resource.archive);
let fx = fixed_effect_field(&row.resource.name);