From bd7811533a348e56d2be9c7281d0533fc8c46024 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 18:33:49 +0400 Subject: feat(ui): follow mobile command posts with the strategic camera Connect captured command vehicles and follow their native orbit. Verify the sweep and acceleration against the original DLL. In a Teleport debug copy, verify Enter, edge rotation and Esc with Vulkan validation enabled. The stock start opens cleanly. The stock route and the original window comparison remain pending. --- crates/fparkan-runtime/src/boarding.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'crates/fparkan-runtime/src/boarding.rs') diff --git a/crates/fparkan-runtime/src/boarding.rs b/crates/fparkan-runtime/src/boarding.rs index c453b74e..95acc7e0 100644 --- a/crates/fparkan-runtime/src/boarding.rs +++ b/crates/fparkan-runtime/src/boarding.rs @@ -61,7 +61,7 @@ pub fn player_vehicle(engine: &Engine) -> Option { Some(engine.loaded.as_ref()?.boarding.as_ref()?.cockpit) } -/// Selects the friendly warbot under a line of sight supplied by the camera. +/// Selects an allied vehicle for boarding or a mobile command link. pub fn select_boarding_target( engine: &Engine, hero: StartingCockpit, @@ -79,14 +79,16 @@ pub fn select_boarding_target( { return None; } - let warbot = mission.object_drafts.iter().any(|draft| { - draft.unit_dat_header_flags == Some(WARBOT_CLASS) - && draft - .original_id - .and_then(|id| handle_by_original_id(&engine.world, id)) - == Some(target.handle) + let vehicle = mission.object_drafts.iter().any(|draft| { + matches!( + draft.unit_dat_header_flags, + Some(WARBOT_CLASS | crate::mission_events::MOBILE_HQ_CLASS) + ) && draft + .original_id + .and_then(|id| handle_by_original_id(&engine.world, id)) + == Some(target.handle) }); - (warbot + (vehicle && identity_metadata(&engine.world, target.handle) .ok()? .owner_id -- cgit v1.2.3