From b64fec455724bf659a3ed9418f144d2c21b8f26a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 14:53:08 +0400 Subject: feat(player): carry inertia across manual flight inputs Use the current Control linear limits and the acceleration ramp exercised through the GOG Control DLL at RVA 0x153c0. On the stock Teleport map, walk to the helicopter, board, climb and move forward, release the controls to coast into a hover, then descend. --- crates/fparkan-runtime/src/boarding.rs | 2 ++ 1 file changed, 2 insertions(+) (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 7992aaf7..cb15f420 100644 --- a/crates/fparkan-runtime/src/boarding.rs +++ b/crates/fparkan-runtime/src/boarding.rs @@ -16,6 +16,7 @@ pub(super) struct Boarding { pub(super) hero: StartingCockpit, pub(super) can_fly: bool, pub(super) ground: Option, + pub(super) flight_velocity: [f32; 3], } /// The vehicle cockpit while the player is aboard. @@ -138,6 +139,7 @@ pub fn board_friendly_warbot( hero, can_fly, ground, + flight_velocity: [0.0; 3], }); mission.player_pitch_bits = 0; } -- cgit v1.2.3