aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/shot_sound.rs
Commit message (Collapse)AuthorAgeFilesLines
* fix(audio): play flamer sound from the firing nodeValentin Popov4 days1-7/+80
| | | | 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(audio): play warbot rocket launch soundsValentin Popov5 days1-13/+20
| | | | | | | | | | The two stock rack projectiles start gun_mis.wav through an Op2 row in their initial effect group. Accept the authored 0x6 effect flags after checking the phase and playback callback in the GOG Effect.dll. The licensed regression checks the launch event for the two racks and the hero missile. The stock Two Fortresses window also reaches rocket fire with clean Vulkan validation.
* fix(audio): attach the engine loop to the player's missileValentin Popov9 days1-1/+1
| | | | | | | | | | 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 Popov9 days1-1/+8
| | | | | | | | | | | 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 Popov9 days1-14/+83
| | | | | | | | | | 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(combat): play spatial sounds for autonomous weapon shotsValentin Popov10 days1-0/+46
Carry the firing effect and muzzle position on the shot event. Resolve single-gun effects by their matching muzzle point when there is no node link. Play each one-shot as its simulation frame arrives. Verified a stock gun sound enqueues a spatial voice with the flight starting position. AutoDemo ran with Vulkan validation clean and no playback errors. Comparison by ear with the original remains open.