From f03b144907be8ad8cec2e1c7487b5d9e0a43f13e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 1 Dec 2026 15:37:59 +0400 Subject: fix(combat): continue projectile flight after piercing shields Resolve shield sphere entrances before the first physical hit. Carry leftover volume into later ticks for both player and autonomous fire and let a geometric miss pass through a warbot bounding sphere. Checked Control.dll RVAs 0x1e9f0 and 0xd0c0 in-process with a sphere-only contact. The AutoDemo corpus covers a charged stop, a pierced field, and an unchanged hull on a miss. Ran the workspace suite and AutoDemo in the game window with Vulkan validation. --- crates/fparkan-runtime/src/projectile_damage.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'crates/fparkan-runtime/src/projectile_damage.rs') diff --git a/crates/fparkan-runtime/src/projectile_damage.rs b/crates/fparkan-runtime/src/projectile_damage.rs index 7214f636..308186b9 100644 --- a/crates/fparkan-runtime/src/projectile_damage.rs +++ b/crates/fparkan-runtime/src/projectile_damage.rs @@ -33,9 +33,9 @@ mod tests { #[ignore = "requires licensed corpus"] fn licensed_autodemo_contact_uses_the_loaded_protection() { use crate::{ - apply_projectile_contact, control_node_provider_row, create, load_gameplay_mission, + control_node_provider_row, create, load_gameplay_mission, loaded_mission_control_device_tables, EngineServices, MissionMode, MissionRequest, - MissionStartupInput, ProjectileContact, + MissionStartupInput, ProjectileContact, ProjectileImpact, }; use fparkan_vfs::DirectoryVfs; use fparkan_world::transform_state; @@ -81,8 +81,11 @@ mod tests { node: None, }; assert_eq!( - apply_projectile_contact(&mut engine, contact, 235.0).unwrap(), - Some((remaining, false)) + contact.apply_body_impact(&mut engine, 235.0).unwrap(), + ProjectileImpact::Damage { + remaining, + removed: false + } ); } } -- cgit v1.2.3