aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/lib.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-12-01 20:55:38 +0300
committerValentin Popov <valentin@popov.link>2026-12-01 20:55:38 +0300
commitd154efdd050e730c4072e5f53843cf3610651d00 (patch)
treefdd0c56d5232dd958f529d6faefb0f585944057e /crates/fparkan-runtime/src/lib.rs
parent697241b84fb0446af5feba8eb1f78b3b04cdd5a4 (diff)
downloadfparkan-d154efdd050e730c4072e5f53843cf3610651d00.tar.xz
fparkan-d154efdd050e730c4072e5f53843cf3610651d00.zip
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.
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
-rw-r--r--crates/fparkan-runtime/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs
index 0cc01d72..0f2b7e49 100644
--- a/crates/fparkan-runtime/src/lib.rs
+++ b/crates/fparkan-runtime/src/lib.rs
@@ -18023,6 +18023,7 @@ mod tests {
let entry = enter_vehicle(&mut engine, cockpit, None).unwrap();
assert_eq!(entry.captured, Some(OriginalObjectId(0)));
assert_eq!(entry.cockpit, None);
+ assert_eq!(entry.capture_notice(), Some(MissionNotice::VehicleCaptured));
assert_eq!(
mission_object_handle(&engine, OriginalObjectId(0)),
Some(hq)