From f626d7759e371ba29efbb733c394751fea547d04 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 23:11:31 +0400 Subject: fix(combat): show muzzle flashes for manual fire Send the player's linked Control row through the existing firing flash sampler. On the stock Constructor start, the 25 mm cannon emits the authored sprite and a light at the muzzle from an external camera. Full node-driven mode-4 phase remains open. --- crates/fparkan-runtime/src/unit_combat.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'crates/fparkan-runtime/src/unit_combat.rs') diff --git a/crates/fparkan-runtime/src/unit_combat.rs b/crates/fparkan-runtime/src/unit_combat.rs index c43cc302..10c13f01 100644 --- a/crates/fparkan-runtime/src/unit_combat.rs +++ b/crates/fparkan-runtime/src/unit_combat.rs @@ -671,14 +671,7 @@ impl AutoDemoCombat { target, projectile, effect: unit.effects[slot], - effect_instance: weapon.effect_row.map(|(table_index, row_index)| { - FiringEffectInstance { - object_index: unit.index, - component_index: weapon.component_index, - table_index, - row_index, - } - }), + effect_instance: weapon.firing_effect(unit.index), muzzle_bits: from.map(f32::to_bits), }); } else { -- cgit v1.2.3