From 8f1ba615bf1e393698eae7624073c1ad9f54c02b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 07:10:46 +0400 Subject: feat(combat): play the referenced explosion on chassis destruction Read the version-one EXPL reference from the depleted NDP root. Retain the death position across slot reuse and show the authored billboard, light and sound after the mesh is removed. Verified the explosion sprite after a stock AutoDemo kill, with Vulkan validation clean. Node detachment, debris particles and building destruction remain open. --- crates/fparkan-runtime/src/projectile.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/fparkan-runtime/src/projectile.rs') diff --git a/crates/fparkan-runtime/src/projectile.rs b/crates/fparkan-runtime/src/projectile.rs index 15ffce85..2ad708eb 100644 --- a/crates/fparkan-runtime/src/projectile.rs +++ b/crates/fparkan-runtime/src/projectile.rs @@ -379,7 +379,11 @@ pub fn apply_projectile_hit( // shortcut: use the projectile provider volume directly, with immediate // removal on root depletion until native damage and death timing are wired. if volume >= remaining { + let effect = super::destruction::pending_effect(engine, handle); request_delete(&mut engine.world, handle).map_err(ControlResourceAccessError::World)?; + if let (Some(effect), Some(events)) = (effect, engine.destruction_effects.as_mut()) { + events.push(effect); + } return Ok(Some((0.0, true))); } apply_loaded_mission_control_node_delta(engine, handle, 0, -volume)?; -- cgit v1.2.3