From 85082a1c829050f375ad688d9ed563d753b3727b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 1 Dec 2026 15:01:30 +0400 Subject: feat(movement): migrate animals between authored sites Select shared migration sites on the ArealMap cadence and feed them to the common route follower with the animal flight clearance and Control climb limit. In The Constructor, both medusas lift off and travel around the selected site from their stock positions. The window showed the change at a fixed viewpoint with clean Vulkan validation. Path details and threat acquisition remain approximate. --- crates/fparkan-runtime/src/lib.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'crates/fparkan-runtime/src/lib.rs') diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index adff6d00..3f60eb42 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -40,6 +40,7 @@ use std::collections::HashMap; use std::num::NonZeroUsize; use std::sync::Arc; +mod animal_migration; mod attack_target; mod autodemo; mod behavior_clock; @@ -2721,6 +2722,19 @@ node_provider_distribution_suspended: false, && object_drafts[..reserve_start] .iter() .any(|draft| draft.unit_dat_header_flags == Some(projectile::ANIMAL_UNIT_CLASS)); + if animals { + let migration = animal_migration::AnimalMigration::from_mission( + &new_runtime_world, + &mission, + &object_drafts[..reserve_start], + &handles[..reserve_start], + ); + if !migration.is_empty() { + unit_patrol + .get_or_insert_with(unit_patrol::UnitPatrol::scripted) + .set_animal_migration(migration); + } + } let autodemo_combat = (unit_patrol.is_some() || guard_clans.contains(&true) || periodic_ai || animals).then( || { -- cgit v1.2.3