aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/projectile.rs
Commit message (Collapse)AuthorAgeFilesLines
* test(ui): verify targeter sphere stays stable across damage stagesValentin Popov2 days1-0/+5
|
* fix(ui): show live damage stages in cockpit miniaturesValentin Popov2 days1-0/+8
|
* fix(combat): converge manual shots on the authored sight rayValentin Popov4 days1-0/+5
| | | | | | Read the ray origin and axis from the turret CTL rows. Match the Control sight query and its minimum convergence distance for compatible projectile profiles. Free look keeps using the same turret ray. Checked Control.dll RVA 0x2a610 with near, far, and clear rays. Used the stock firing range window for the changed launch vectors and replayed ordinary player inputs from the normal start through victory.
* fix(combat): continue projectile flight after piercing shieldsValentin Popov4 days1-21/+82
| | | | | | 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(combat): use building damage stages for projectile contactsValentin Popov4 days1-0/+19
| | | | AniMesh resolves the current node stage for its segment query. Select the same variant for projectile contacts in FParkan and verify a ray through the damaged factory roof on stock assets.
* fix(render): show building damage stages after projectile hitsValentin Popov4 days1-7/+45
| | | | 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): let projectiles destroy mounted warbot partsValentin Popov4 days1-8/+122
| | | | Resolve mounted model triangles through the sampled socket chain and publish the damage to the assembled Control provider. Remove the damaged geometry, stop weapons whose provider was depleted, and preserve already separated ranges when the chassis later dies. Confirmed with a licensed AutoDemo ray query and two frames around a controlled hit in the Vulkan window.
* fix(combat): propagate the loss of a warbot chassis sectionValentin Popov4 days1-4/+25
| | | | Reuse the Control provider traversal after a lethal chassis hit so attached links disappear with the failed section. The GOG Control oracle and a controlled AutoDemo hit confirm the subtree behavior. All 29 missions reached 900 simulated seconds.
* fix(combat): apply critical damage on the Control resource tickValentin Popov4 days1-15/+5
| | | | Use the alarm entry amount for sequential wear and disable the onboard repair device before recomputing motion limits. Match the Control.dll alarm and recovery vector. In the stock AutoDemo the affected warbot now loses its remaining movement instead of keeping its last limit. Alarm effects and the full native node cascade remain approximate.
* fix(audio): attach the engine loop to the player's missileValentin Popov8 days1-0/+5
| | | | | | | | | | 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(combat): recognize hits absorbed by shieldsValentin Popov9 days1-2/+48
| | | | | | 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.
* feat(player): lower the communicator field on captureValentin Popov9 days1-9/+14
| | | | 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.
* fix(combat): use authored range for autonomous weaponsValentin Popov9 days1-0/+3
|
* feat(combat): spend directional shield charge before hull damageValentin Popov9 days1-0/+14
| | | | Resolve the nearest sector in the target basis and apply the Control 9/21 capacity before the hull modifiers. Verify power queries and depletion with the original Control DLL, then check live AutoDemo and Two Fortresses encounters from stock starts.
* feat(render): throw detached chassis nodes as fragmentsValentin Popov9 days1-2/+5
| | | | Pass the depleted node to an authored Op10 with a built-in mesh request. Reuse its existing draw ranges for the flight and keep the hull alive. The fixed-camera fixture shows the heavy track section separate and rotate after impact.
* feat(render): hide exhausted chassis geometryValentin Popov9 days1-0/+1
| | | | Use provider depletion and the node visibility flag to suppress the projected Vulkan ranges of a failed chassis part. The matching camera fixture shows the heavy warbot losing one track section after a hit while the rest of the hull remains visible.
* feat(combat): apply projectile hits to chassis nodesValentin Popov9 days1-87/+139
| | | | Use prepared chassis triangles to choose a loaded NDP node. Exhausted ordinary parts play their authored EXPL independently of root death. Unresolved mounted geometry keeps a sphere contact on exit. A stock side-shot fixture exhausts a heavy chassis part while the hull survives.
* feat(combat): enable the authored weapons of hostile animalsValentin Popov9 days1-1/+1
| | | | The armed Constructor creatures use the shared enemy search and fire their CTL weapon from Gun_Y. The stock start is outside range. The close encounter fixture shows the projectile in the Vulkan window and leaves the hero at 30 percent after one hit.
* feat(combat): reduce damage with Control protection coefficientsValentin Popov9 days1-8/+12
| | | | Keep the two damage coefficients in the existing tag-27 owner cache and apply the native quadratic clamp to projectile contacts. The calculation matches live GOG damage samples at single precision, and the AutoDemo window reaches combat and replacement after the change.
* feat(combat): play explosions for depleted building partsValentin Popov9 days1-0/+72
| | | | Use the EXPL referenced by the struck NDP row once the part runs out of capacity. Queue the blast at contact and keep the rest of the structure alive. The renderer shows the stock bunker effect in the Vulkan damage fixture.
* fix(combat): let projectiles damage animalsValentin Popov9 days1-1/+65
| | | | Verify the placed Constructor animal can be reached by a projectile segment, wounded and removed. The stock mission also starts in the Vulkan window.
* feat(combat): play the referenced explosion on chassis destructionValentin Popov9 days1-0/+4
| | | | | | Read the version-one EXPL reference from the depleted NDP root. Retain the death position across slot reuse and show the authored billboard, light and sound after the mesh is removed. Verified the explosion sprite after a stock AutoDemo kill, with Vulkan validation clean. Node detachment, debris particles and building destruction remain open.
* fix(combat): aim at exposed unit hullsValentin Popov2026-11-141-1/+1
|
* feat(combat): damage the building part struck by a projectileValentin Popov2026-11-141-7/+120
|
* feat(runtime): board and drive allied warbotsValentin Popov2026-11-141-1/+2
|
* feat(runtime): engage hostile robots in AutoDemoValentin Popov2026-11-141-13/+29
|
* feat(game): damage and remove units hit by player projectilesValentin Popov2026-11-141-4/+119
|
* feat(game): render player projectiles in flightValentin Popov2026-11-141-0/+168