From 6c9fe794cda795b101825091aee4644efd9422f8 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 01:39:12 +0400 Subject: feat(ui): show installed warbot weapons in the cockpit Resolve each selected mount through the original objects.dlb short name and render the live weapon bank after boarding. On a stock Fireline start the medium warbot shows the laser and both separate missile racks. Firing the selected rack reduces its ammunition from 18 to 17 while the other still reads 18. --- apps/fparkan-game/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/fparkan-game/src/main.rs') diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs index bafc6051..023f84b0 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -9599,6 +9599,11 @@ fn run_static_vulkan_mode( mission, mission_engine.as_ref().filter(|_| demo_camera.is_none()), cockpit, + player_weapon_layouts + .values() + .map(|layout| layout.weapons.weapons().len()) + .max() + .unwrap_or_default(), &mut preview, ); let shadow_base_vertex = preview.mesh.vertices.len(); -- cgit v1.2.3