aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/player_fire.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-12-01 14:37:59 +0300
committerValentin Popov <valentin@popov.link>2026-12-01 14:37:59 +0300
commitf03b144907be8ad8cec2e1c7487b5d9e0a43f13e (patch)
tree219582ffa8178775ead715b45f9cdee6d578a4a1 /apps/fparkan-game/src/player_fire.rs
parent06df070ba0d7bd2435b8b1313019278090889d09 (diff)
downloadfparkan-f03b144907be8ad8cec2e1c7487b5d9e0a43f13e.tar.xz
fparkan-f03b144907be8ad8cec2e1c7487b5d9e0a43f13e.zip
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.
Diffstat (limited to 'apps/fparkan-game/src/player_fire.rs')
-rw-r--r--apps/fparkan-game/src/player_fire.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/fparkan-game/src/player_fire.rs b/apps/fparkan-game/src/player_fire.rs
index 20873500..8a04d04f 100644
--- a/apps/fparkan-game/src/player_fire.rs
+++ b/apps/fparkan-game/src/player_fire.rs
@@ -143,7 +143,8 @@ impl StaticVulkanApp {
draw.speed,
draw.lifetime_ms,
clock_ms,
- );
+ )
+ .map(|flight| flight.with_volume(draw.volume));
instance.shooter = Some(cockpit.handle);
if let Some(flight) = &instance.flight {
launch_sounds = &draw.launch_sounds;