diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-26 12:53:28 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-26 12:53:28 +0300 |
| commit | 5ad056292d91bd6a38299c5d890a975a435c8422 (patch) | |
| tree | 7eab6807a8af1502ec3dffdcc167a904b0720607 /crates/fparkan-runtime/src/unit_combat.rs | |
| parent | 16d25bd46e16d38e22cab7972ae6ac65196b3e0f (diff) | |
| download | fparkan-5ad056292d91bd6a38299c5d890a975a435c8422.tar.xz fparkan-5ad056292d91bd6a38299c5d890a975a435c8422.zip | |
feat(player): lower the communicator field on capture
Drive the original CTLD type-13 tracks from the local capture. The Constructor window replay shows the raised and lowered field and four player projectiles stop at the mesh. Leaving resumes the authored open pose. Motion timing and exit trigger remain approximate.
Diffstat (limited to 'crates/fparkan-runtime/src/unit_combat.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/unit_combat.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/fparkan-runtime/src/unit_combat.rs b/crates/fparkan-runtime/src/unit_combat.rs index c7d807cc..03bf5c8d 100644 --- a/crates/fparkan-runtime/src/unit_combat.rs +++ b/crates/fparkan-runtime/src/unit_combat.rs @@ -460,7 +460,9 @@ impl AutoDemoCombat { travelled = Some(clip_segment(segment, fraction)); Ok(ground.is_some() || contact.is_some()) }); - if let Some(hit) = contact { + if let Some(hit) = + contact.filter(|hit| hit.node != Some(crate::ProjectileNode::CaptureBarrier)) + { let data = &self.projectiles[flight.projectile]; // Capture the target before applying damage, which may remove it. let target = CombatObject::read(&engine.world, hit.handle); |
