aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/main.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat(ui): show the original mission loading screenValentin Popov5 days1-24/+23
|
* feat(ui): show installed warbot weapons in the cockpitValentin Popov5 days1-0/+5
| | | | Resolve each selected mount through the original objects.dlb short name and render the live weapon bank after boarding. On a stock Fireline start the medium warbot shows the laser and both separate missile racks. Firing the selected rack reduces its ammunition from 18 to 17 while the other still reads 18.
* feat(ui): restore the original cockpit radar dialValentin Popov5 days1-1/+1
| | | | Use the mirrored source atlas halves and show the installed sensor range with the original font. The stock Fireline cockpit reads 300 and the Two Fortresses cockpit reads 400. The range query agrees with the original libraries for both inactive and missing devices.
* feat(ui): plot local detections on the cockpit radarValentin Popov5 days1-19/+35
| | | | Draw each current detection from the occupied unit sensor in camera-relative coordinates, with the original range scale, clan color and screen-pixel marks. Check stock Two Fortresses before and after a free-look turn and exercise the native rectangle and line callbacks.
* feat(ui): display cockpit view bearings and apertureValentin Popov5 days1-0/+1
| | | | Read the visible cockpit camera to draw the original front and rear markers and field-of-view sector from the installed UI atlases. Check the indicator on a stock Fireline start and a separate Shift look with the weapon aim held.
* feat(ui): show cockpit altitude above mission sea levelValentin Popov5 days1-0/+1
|
* feat(ui): show live weapon readings in the hero cockpitValentin Popov5 days1-70/+20
|
* fix(ui): draw interface above cockpit geometryValentin Popov5 days1-5/+6
|
* feat(ui): draw selected warbot routes on the satellite mapValentin Popov5 days1-2/+5
|
* feat(ui): show owned buildings on the satellite mapValentin Popov5 days1-9/+17
| | | | Use the original landscape projection and building sprites. Resolve ownership from live registered objects so a captured building appears at its existing location. Checked the original DLL and verified the factory and storage icons in the stock Field Camp window.
* feat(ui): open the authored mission satellite mapValentin Popov5 days1-1/+28
| | | | Read the minimap archive binding from mission.cfg and resolve the compass through the original UI atlas key and crop. M toggles the overlay and Ctrl+M retains the current mine command. Checked show/hide in the Constructor window and the original DLL.
* feat(player): announce vehicle capture when the hero stays outsideValentin Popov5 days1-0/+1
| | | | Restore the original warbot and mobile command centre acknowledgement bank. A capture that also seats the hero remains silent. The bank and non-repeat selection were checked against the native DLL, and a walk from the normal Teleport start queued the authored voice before the objective notice.
* fix(control): board a captured warbot on the same EnterValentin Popov5 days1-21/+22
| | | | The native Enter branch transfers the neutral owner before requesting a cockpit switch when the pilot device works. The firing-range window captured and boarded each of its two warbots on one press, and Teleport still credited the mobile HQ without boarding.
* fix(ui): toggle the current mission hint with F2Valentin Popov5 days1-0/+12
|
* feat(startup): show mission loading progress in a windowValentin Popov5 days1-1/+31
|
* fix(control): select authored drive states for mobile power demandValentin Popov5 days1-1/+1
|
* feat(control): switch onboard self-repair from the cockpitValentin Popov5 days1-24/+12
|
* fix(combat): continue projectile flight after piercing shieldsValentin Popov5 days1-57/+41
| | | | | | Resolve shield sphere entrances before the first physical hit. Carry leftover volume into later ticks for both player and autonomous fire and let a geometric miss pass through a warbot bounding sphere. Checked Control.dll RVAs 0x1e9f0 and 0xd0c0 in-process with a sphere-only contact. The AutoDemo corpus covers a charged stop, a pierced field, and an unchanged hull on a miss. Ran the workspace suite and AutoDemo in the game window with Vulkan validation.
* fix(audio): play flamer sound from the firing nodeValentin Popov5 days1-2/+16
| | | | Feed initial node-attached Op2 rows from the same Control blends as their firing nodes. Keep them separate from projectile one-shots and opcode 10 wind-up sounds. The original Effect.dll confirmed the strict 0.01 threshold. The Constructor replay ordered and boarded the stock warbot, played the heavy flamer before projectile release, and captured the hangar.
* fix(render): draw laser trails as authored Op5 segmentsValentin Popov5 days1-8/+3
|
* fix(render): use visible building stages for sun glareValentin Popov5 days1-1/+2
|
* fix(render): preserve building damage ranges when inserting skyValentin Popov5 days1-0/+10
|
* fix(movement): use visible building stages for collisionValentin Popov6 days1-259/+79
| | | | Share building stage selection with the renderer and query the current slot for floor and wall contacts. Verify the same floor probe against the intact and damaged factory in a validated stock mission window.
* fix(render): show building damage stages after projectile hitsValentin Popov6 days1-4/+55
| | | | Update the contacted provider with the native stage rule. Upload the authored variants with their original material and pose, and draw the active stage only. The Two Fortresses plant switches in a validated before/after capture.
* fix(combat): charge the drive before refilling weaponsValentin Popov6 days1-0/+1
| | | | Read the resource multiplier from CTL when all authored states agree and price the latest local motion in the existing Control budget. A licensed AutoDemo flyer charges its weapons more slowly when the drive is drawing from the same supply. Control.dll oracle vectors, the AutoDemo window, and all 29 mission startup sweeps pass.
* fix(fx): switch warbot smoke with the damage alarmValentin Popov6 days1-6/+41
| | | | Resolve the matching enable and disable selectors from authored CTL alarm groups. Render node-attached smoke and light only while the live Control alarm is active. Verify the native selector against both DLLs and inspect two Vulkan frames around an ordinary AutoDemo alarm. Independent mode-14 triggers and the damage stage cascade remain open.
* fix(audio): play engine loops for autonomous missilesValentin Popov6 days1-2/+4
| | | | Keep one spatial Op2 source per flight while it moves, with separate identities from manual and scene emitters. Confirm the original mode 5 phase and verify launch, overlap and teardown on the GOG AutoDemo. Flight-speed changes and a listening comparison with the original remain open.
* fix(render): drive manual firing flashes from linked barrel nodesValentin Popov10 days1-26/+15
| | | | | | Use the current authored barrel blend as Effect mode 4 input when Control links the effect to that node. Leave projectile release and direct shot audio on their existing clocks. Verified the bound node and phase flags against GOG AniMesh and Effect, covered the stock Constructor cannon, and compared the flash at two phases in a validation-clean mission window.
* fix(combat): show muzzle flashes for manual fireValentin Popov10 days1-13/+10
| | | | Send the player's linked Control row through the existing firing flash sampler. On the stock Constructor start, the 25 mm cannon emits the authored sprite and a light at the muzzle from an external camera. Full node-driven mode-4 phase remains open.
* fix(combat): keep shots aligned with the sights during free lookValentin Popov10 days1-4/+12
| | | | | | Preserve the turret aim before applying cockpit look offsets. On a stock Firing Range start the view turns under Shift while the cannon keeps the same projectile heading. The Constructor camera regression checks the same separation with a pitched turret. Control and Ngi32 confirm the CPT direction transform. The original choice of world matrix for the barrel remains open.
* feat(camera): render the authored cockpit geometryValentin Popov10 days1-9/+31
| | | | | | Sample state 0, group 4 from the active camera component. Keep its moving model attached to the unit and apply the CTLD camera projection only to those draw ranges. Checked in the Constructor at the stock start and while looking sideways, plus the first cockpit in AutoDemo with Vulkan validation. The native depth ordering and matched warbot comparison remain open.
* feat(camera): free look with left Shift from the cockpitValentin Popov10 days1-1/+39
| | | | 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 Popov10 days1-6/+5
| | | | 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(input): match the original hero mouse turn scaleValentin Popov10 days1-1/+2
| | | | 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 Popov10 days1-5/+1
| | | | | | | | | | 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(audio): attach the engine loop to the player's missileValentin Popov10 days1-3/+7
| | | | | | | | | | Prepare velocity-driven Op2 sounds with the projectile's CTL attachment. Move their source with the active flight and stop it when the flight ends or its slot is reused. Keep launch as a separate one-shot. The GOG phase function confirms the missile's 0 to 1 phase range. In the stock Firing Line window the engine loop began at the tail and stopped on terrain contact.
* fix(audio): start node-attached laser sounds during wind-upValentin Popov10 days1-8/+25
| | | | | | | | | | | Use the weapon descriptor's Control group to select the mode-1 sound rows. Update them through the existing FX clock and spatial Op2 playback for both manual and autonomous weapons. The GOG Control/Effect entry points confirm the selector, epoch and phase threshold, including retriggering after a sample at the exact phase peak. The stock Two Fortresses helicopter started the original sound at both weapon nodes in a Vulkan window.
* fix(audio): play projectile launch soundsValentin Popov10 days1-6/+2
| | | | | | | | | | Read phase-zero one-shot sounds from the projectile's initial Control effect group. Reuse the decoded effects for trails and play the launch sounds when the weapon creates a projectile. The native mode-1 phase probe and the licensed hero missile fixture both pass. A replayed trigger at the stock Firing Line start queued H_fire_missile.wav once and Vulkan validation was clean.
* fix(combat): recognize hits absorbed by shieldsValentin Popov10 days1-5/+12
| | | | | | Use the same impact result for manual fire and autonomous weapons. A shield that spends its charge and absorbs a whole shot completes the impact without reporting an unavailable target. Keep the existing hull damage API for callers that only need remaining health. Checked in a window on the stock Two Fortresses map. The laser first ended at the shield and then reduced hull health after the sector was depleted. At 180 seconds of AutoDemo the false unavailable reports disappear and the destruction sequence is identical.
* fix(terrain): cut basements when scripted buildings finishValentin Popov10 days1-5/+40
| | | | | | Use the authored footprint to rebuild the window terrain, floor support and shadow receivers together. Keep terrain draw slots stable across the rebuild, and publish the corrected building height in the construction frame. Verified in a stock Single.02 window with Vulkan validation while the clan built a plant. Headless terrain and native overlap and removal semantics remain open.
* refactor(terrain): share BAS projection for live building posesValentin Popov10 days1-100/+8
| | | | Move the authored contour projection out of the app so the same geometry can be prepared from an initial root or a live construction pose. The licensed stock Third Part construction test builds the real factory foundation and verifies that the original ground surface drops out beneath it. Constructor's normal Vulkan start retains clean validation.
* fix(render): reveal buildings when scripted construction endsValentin Popov10 days1-0/+6
| | | | Publish completed constructions with the same fresh world snapshot that the render tick consumes. Activate their prepared render roots and collision bindings through the existing spawn path. An unmodified Third Part start shows the actual factory appearing on the site between two Vulkan frames. Terrain rebuilding for a new basement remains open.
* feat(factory): order schemes with selected internal partsValentin Popov10 days1-3/+19
| | | | On the stock Constructor map, walk to the factory communicator, claim it, order the revised scheme, and walk back outside. The released custom robot advances the production objective. Check that an unresearched part prevents a new custom order before it uses the free quota.
* fix(player): use the Control forward limit for walkingValentin Popov10 days1-1/+1
| | | | 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 Popov10 days1-0/+10
| | | | 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.
* feat(player): bob the cockpit view when walkingValentin Popov10 days1-1/+5
| | | | Use the 0.45 second vertical cycle observed in the GOG hero camera. The stock Firing Range window shows lift on an accepted walk and settles on release. The body and muzzle still use their own poses.
* feat(player): lower the communicator field on captureValentin Popov10 days1-4/+16
| | | | Drive the original CTLD type-13 tracks from the local capture. The Constructor window replay shows the raised and lowered field and four player projectiles stop at the mesh. Leaving resumes the authored open pose. Motion timing and exit trigger remain approximate.
* feat(player): announce a successful building captureValentin Popov10 days1-6/+7
| | | | Resolve the neutral or enemy cue through the original voice table. In a stock Constructor window replay the factory capture queues vc_nb_capt.wav before the objective notice.
* fix(ai): follow capture passages through building doorsValentin Popov10 days1-0/+13
| | | | A stock Two Fortresses run now takes the generator after the capturer descends its authored hallway. Symmetric Res17 door links drive the CTLD animation and unsupported routes retain explicit coverage. Checked the approach and descent in the game window with Vulkan validation and verified the owner transfer in a licensed test.
* fix(ai): route capturers to authored building entrancesValentin Popov10 days1-0/+4
|