From 3cc3db073cc0661cfdd4116923ae4e312b64ec16 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 15:53:30 +0400 Subject: feat(mission): open the main teleporter's lower passage Use the authored Res17 entry and destination markers for an unboarded hero at an owned main teleporter. The original Behavior.dll entry callback at RVA 0x18ac0 checks the owner, hero and generators, then transfers to the marked destination. Original SHA-256 ddfbdbde07832358fe6e35e01c8dba9b58e7313789498b6049ed51d4ed9baf99. Verified with the licensed transfer regression and a Vulkan input replay from the untouched Teleport mission start through the capture, transfer and lower passage. Generator selection and the hero contact point remain approximate. --- crates/fparkan-runtime/src/mission_events.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/fparkan-runtime/src/mission_events.rs') diff --git a/crates/fparkan-runtime/src/mission_events.rs b/crates/fparkan-runtime/src/mission_events.rs index 2c817314..fc02236d 100644 --- a/crates/fparkan-runtime/src/mission_events.rs +++ b/crates/fparkan-runtime/src/mission_events.rs @@ -16,7 +16,7 @@ use fparkan_world::{ use std::collections::{HashMap, HashSet}; const MOBILE_HQ_CLASS: u32 = 0x0101_0000; -const MAIN_TELEPORT_CLASS: u32 = 0x8000_0200; +pub(super) const MAIN_TELEPORT_CLASS: u32 = 0x8000_0200; /// First encounter with an uncovered periodic script instruction. #[derive(Clone, Debug, Eq, PartialEq)] @@ -1025,7 +1025,7 @@ impl LoadedMissionState { } } -fn inside_exit_volume([x, y, z]: [f32; 3], [px, py, pz]: [f32; 3]) -> bool { +pub(super) fn inside_exit_volume([x, y, z]: [f32; 3], [px, py, pz]: [f32; 3]) -> bool { (pz - z).abs() <= 3.0 && (px - x).powi(2) + (py - y).powi(2) <= 25.0 } -- cgit v1.2.3