aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/player_motion.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat(ui): show cockpit speed and Control limitValentin Popov37 hours1-0/+25
|
* feat(ui): enable manual control from the bunker listValentin Popov2 days1-0/+33
| | | | | | Use the active Control camera record and its separate CPT origin and direction for the fixed turret. The original hand control opens the cockpit, its two weapon slots and aim tracks while leaving the operator at the command post. Verified from the stock Two Fortresses start against the GOG cockpit with Vulkan validation. The licensed tests cover the native camera pose, mounted weapon selection and stationary bunker and operator.
* feat(ui): watch a warbot on autopilot from its cockpitValentin Popov3 days1-2/+11
|
* fix(gameplay): ground the hero when a warbot is destroyedValentin Popov4 days1-3/+8
| | | | | | | | | | | | | A passenger kept the destroyed chassis root height and carried that offset into walking. In Two Fortresses this left the hero above the entrance to the last bunker. Put the hero on the terrain at the last chassis position, and retain the current elevation when the chassis was on a building floor. The licensed chassis test reproduces the old height and verifies the ejection after projectile damage. The stock Two Fortresses replay confirms the height correction during combat. Workspace checks and a Vulkan validation run from the normal start passed. Native ejection placement and the flying vehicle case remain open.
* feat(camera): free look with left Shift from the cockpitValentin Popov8 days1-13/+28
| | | | Route shifted mouse samples to the independent Control camera phases, apply yaw then pitch at the existing cockpit point, and recenter on Shift release or right click. Original World3D dispatch and Control camera calls verified wrapping, clamping, recentering, and the transform. A stock Firing Range window showed the view move and return with hull yaw and turret pitch unchanged.
* fix(input): use the original hero turret elevation rangeValentin Popov8 days1-19/+26
| | | | Apply the World3D mouse Y filter and reverse setting, update the normalized turret request, and use the authored neutral and span to share pitch with the cockpit and elevation tracks. Original World3D dispatch and Control manual mode confirmed the gain and clamp. Stock Firing Range captures show both endpoints and the licensed Constructor test checks the camera and turret together.
* fix(movement): carry unfinished hero turns across ticksValentin Popov8 days1-17/+21
| | | | Use the angular limit in Control profile word 11 and preserve the unconsumed phase. The original Control read and write dispatch and orientation update delivered 0.5022847 then 0.4401929 radians at two 10 ms samples. The same steps changed the view in a Vulkan window from the stock Firing Range start.
* fix(input): match the original hero mouse turn scaleValentin Popov8 days1-8/+33
| | | | Use the stock relative X binding and control settings, filter once per input sample, and carry the filter across collision steps. World3D dispatch confirmed both directions, saturation and angle wrapping. Mission 2 was checked from a stock spawn in a Vulkan window with two view captures. The runtime still applies the requested rotation in one step.
* fix(movement): carry hero walking velocity between ticksValentin Popov8 days1-47/+67
| | | | | | | | | | Take both horizontal limits and acceleration from the active Control profile. Apply the measured slope braking after the input update and clear velocity on a blocking wall, teleport or boarding. Keep the terrain limit during geometric sweeps so momentum cannot skip a narrow cliff. In the stock Firing Line window the hero reached the slope, stopped at its foot, backed away, and coasted on key release.
* fix(movement): limit hero ascent using the Control slope profileValentin Popov8 days1-47/+82
| | | | | | | | | | | Use the normal of the same triangle that supplies terrain support, apply the walking profile's speed envelope, and resolve support again for the shortened step. The existing immediate-speed model still omits native braking inertia. The native Control call confirms the envelope and the downhill bypass. In the stock Firing Line window the hero stopped at the west slope and could walk back. The bridge and factory walkway corpus checks passed.
* fix(mission): recognize the exit from the teleporter floorValentin Popov9 days1-8/+13
| | | | | | Behavior.dll at 0x18310 evaluates the cylinder with a candidate position queried through 0x14b30. Reuse the authored hero spawn clearance for the floor-level walking probe. Keep the cylinder from the licensed DLL oracle and the asset's original center. The stock Teleport input replay captures the portal, transfers to the lower passage and renders the victory at the glowing exit. Correct the focused fixture to use the actual factory and laboratory communicator floors.
* feat(player): carry inertia across manual flight inputsValentin Popov9 days1-75/+88
| | | | 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.
* feat(player): drive boarded ground warbots with chassis limitsValentin Popov9 days1-2/+9
| | | | Check the stock Two Fortresses bunker exit, approach and boarding in the game window. Forward input uses the live cap and a chassis with a zero lateral cap holds its position on sideways input.
* fix(player): use the Control forward limit for walkingValentin Popov9 days1-12/+39
| | | | Read the live Control profile for walking along the body's heading. The stock Firing Range window advances at roughly 14 units per second while the key is held. Size collision sweeps from actual requested displacement so the stock factory entrance, passage and exit still work.
* feat(player): play footsteps on ground and building floorsValentin Popov9 days1-12/+37
| | | | Select the original step effects from the hero's Control rows. A footfall follows the accepted movement and the camera rhythm. The Firing Range window starts the ground sound on the step and stays quiet when the player stops.
* fix(player): drown on first supported step into waterValentin Popov9 days1-17/+152
| | | | Carry the terrain surface flags through the walking collision decision. A mesh floor over water remains safe. The first accepted wet step removes the hero and produces the normal mission failure event. Verified the surface flag in the original Control DLL and walked from the stock Constructor spawn to the lake in the Vulkan window.
* fix(player): walk through cut terrain into factory basementsValentin Popov9 days1-0/+14
| | | | Use the same BAS cut surfaces for the walking sweep and the scene. The hero can descend along the building mesh and recover ground support on the way back. The stock Constructor route passes in both directions, the Firing Range bridge retains clearance, and the walk replay completes in the Vulkan window.
* fix(patrol): use native cyclic PatrolPlace point batchesValentin Popov9 days1-22/+2
| | | | | | | | | | | | | | | | | | | | Generate 15-19 goals with Behavior's two random streams, reject candidates within 100 units of map edges, and retain the cyclic list until the native 20-second plus 10-second jitter timer expires. Draw coordinate and timer randomness from the shared Behavior CRT stream rather than a patrol-local copy. Cache chassis CanFly for autonomous checks and reuse the player parser. Keep per-object counts of batches, goals, approximate area checks and missing inputs. The generator's initial seed, owner update order, ground walkability and physical movement remain explicit approximations. Verified native Behavior.dll RVA 0x2dd90 by x86 invocation at CW 0x007f, including edge rejection, and captured a matching batch in live AutoDemo. Rust golden vectors match all goals, RNG states and deadlines. Workspace fmt/check/test and licensed patrol, combat and clan-clock regressions pass. All 29 stock missions reach --sim-report 900 with no script interruptions or new missing patrol inputs. Observed the change in a stock AutoDemo window. This does not establish full G7 chronology or G8 movement parity.
* fix(player): preserve clearance above bridge decksValentin Popov2026-11-141-18/+82
| | | | | | Resolve the preceding walking surface before switching between terrain and mesh floors. Preserve the outdoor spawn clearance across the deck while the lower bunker spawn keeps the existing near-floor behavior. The licensed Firing Range test walks from the stock spawn over both bridge sections and checks the ramp and return to terrain. The Two Fortresses bunker exit still passes. The stock Firing Range opens with Vulkan validation clean.
* fix(player): read flight capability from chassis profileValentin Popov2026-11-141-24/+36
|
* fix(player): resolve stairs during long framesValentin Popov2026-11-141-8/+67
|
* fix(player): walk through bunker doors onto terrainValentin Popov2026-11-141-3/+50
|
* feat(runtime): let the player fly warbotsValentin Popov2026-11-141-6/+79
|
* feat(runtime): capture neutral buildings at communicatorsValentin Popov2026-11-141-0/+44
|
* fix(game): count full simulation intervals for player movementValentin Popov2026-11-141-1/+6
|
* feat(game): tilt the cockpit view from vertical mouse inputValentin Popov2026-11-141-4/+27
|
* feat(game): drive the hero pose from player inputValentin Popov2026-11-141-0/+100