aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/player_fire.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat(game): cycle warbot cockpit control modesValentin Popov36 hours1-3/+21
|
* feat(ui): enable manual control from the bunker listValentin Popov2 days1-1/+5
| | | | | | 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-5/+6
|
* feat(ui): drive a strategic warbot with an automatic gunnerValentin Popov3 days1-3/+10
|
* feat(audio): announce exhausted weapon ammunitionValentin Popov4 days1-3/+8
|
* feat(audio): announce low cockpit weapon chargeValentin Popov4 days1-0/+13
|
* fix(combat): converge manual shots on the authored sight rayValentin Popov4 days1-10/+39
| | | | | | 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-1/+2
| | | | | | 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(gameplay): fire hero projectiles along the posed muzzleValentin Popov8 days1-6/+15
| | | | Use the CPT direction after the current node, component mount, and body transforms. Validate the raised barrel axis with the original Constructor resources.
* fix(combat): show muzzle flashes for manual fireValentin Popov8 days1-5/+11
| | | | 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 Popov8 days1-3/+4
| | | | | | 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.
* fix(audio): start node-attached laser sounds during wind-upValentin Popov8 days1-5/+15
| | | | | | | | | | | 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 Popov8 days1-2/+8
| | | | | | | | | | 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.
* feat(render): animate player weapon tracks during firingValentin Popov9 days1-0/+150
Sample the authored barrel tracks on the existing weapon clock before resolving the muzzle. Check Control phase interpolation against the original DLL and verify plasma rifle travel in a fixed-camera capture on the stock firing range.