aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/lib.rs
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 /crates/fparkan-runtime/src/lib.rs
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 'crates/fparkan-runtime/src/lib.rs')
-rw-r--r--crates/fparkan-runtime/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs
index 24341ef6..0a7ed48b 100644
--- a/crates/fparkan-runtime/src/lib.rs
+++ b/crates/fparkan-runtime/src/lib.rs
@@ -102,6 +102,7 @@ mod player_weapon;
mod production;
mod projectile;
mod projectile_damage;
+mod projectile_parts;
mod repair_zone;
mod research;
mod resource_distribution;
@@ -157,7 +158,7 @@ pub use production::{
};
pub use projectile::{
apply_projectile_contact, apply_projectile_hit, load_player_projectile, projectile_terrain_hit,
- projectile_unit_hit, PlayerProjectile, ProjectileAssets, ProjectileContact,
+ projectile_unit_hit, PlayerProjectile, ProjectileAssets, ProjectileContact, ProjectileNode,
};
pub use research::order_lab_research;
pub use unit_combat::{AutoDemoCombatEvent, AutoDemoProjectileType, FiringEffectInstance};