aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-26 08:24:02 +0300
committerValentin Popov <valentin@popov.link>2026-11-26 08:24:02 +0300
commitce4fdc768602efe7c621e631c1390d8d76248505 (patch)
tree9a5908319ea16bebe3e3bd17c4f23c72edaf89ef /apps/fparkan-game
parent25f0b76a10dbd5ac2cfabd5354f621ae82cf19b4 (diff)
downloadfparkan-ce4fdc768602efe7c621e631c1390d8d76248505.tar.xz
fparkan-ce4fdc768602efe7c621e631c1390d8d76248505.zip
feat(combat): apply projectile hits to chassis nodes
Use prepared chassis triangles to choose a loaded NDP node. Exhausted ordinary parts play their authored EXPL independently of root death. Unresolved mounted geometry keeps a sphere contact on exit. A stock side-shot fixture exhausts a heavy chassis part while the hull survives.
Diffstat (limited to 'apps/fparkan-game')
-rw-r--r--apps/fparkan-game/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs
index 844c260f..f33505bb 100644
--- a/apps/fparkan-game/src/main.rs
+++ b/apps/fparkan-game/src/main.rs
@@ -10644,7 +10644,7 @@ impl StaticVulkanApp {
"sim_coverage player_projectile_target_stub=1 target={} result={outcome:?}", hit.handle.slot,
),
}
- if hit.building_node.is_some() {
+ if hit.building_node().is_some() {
"building"
} else {
"unit"