From d154efdd050e730c4072e5f53843cf3610651d00 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 1 Dec 2026 21:55:38 +0400 Subject: feat(player): announce vehicle capture when the hero stays outside 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. --- apps/fparkan-game/src/audio.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/fparkan-game/src/audio.rs') diff --git a/apps/fparkan-game/src/audio.rs b/apps/fparkan-game/src/audio.rs index e4580707..90ddd6d7 100644 --- a/apps/fparkan-game/src/audio.rs +++ b/apps/fparkan-game/src/audio.rs @@ -21,6 +21,8 @@ use std::io::Cursor; use std::sync::{Arc, Mutex}; use std::time::{SystemTime, UNIX_EPOCH}; +mod capture_voice; + const SWAV_TYPE: u32 = u32::from_le_bytes(*b"SWAV"); const DEFAULT_MUSIC_TRACK: u8 = 2; const FIRST_MUSIC_TRACK: u8 = 2; @@ -636,6 +638,7 @@ pub(crate) struct GameAudio { music: Player, variations: Player, mission_voice: Player, + vehicle_capture_voice: capture_voice::VehicleCaptureVoice, mission_cfg: NormalizedPath, weather_loop: NativeSpatialPlayer, control_sounds: BTreeMap, @@ -683,6 +686,7 @@ impl GameAudio { music, variations, mission_voice, + vehicle_capture_voice: capture_voice::VehicleCaptureVoice::new(random_seed()), mission_cfg, weather_loop, control_sounds: BTreeMap::new(), -- cgit v1.2.3