diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-03 17:39:24 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-03 17:39:24 +0300 |
| commit | 4b9277258224ab846b84cafe1d6a3b91e29a05c5 (patch) | |
| tree | 4f830c515d6a202d87122f95741235be4e30e71d /apps/fparkan-game/src/main.rs | |
| parent | c85b69296f5349a728e28e308c7d71b367dc6ac1 (diff) | |
| download | fparkan-4b9277258224ab846b84cafe1d6a3b91e29a05c5.tar.xz fparkan-4b9277258224ab846b84cafe1d6a3b91e29a05c5.zip | |
feat(game): enable powered camouflage in the cockpit
Diffstat (limited to 'apps/fparkan-game/src/main.rs')
| -rw-r--r-- | apps/fparkan-game/src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs index 8b79543a..5202bcf6 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -8660,6 +8660,7 @@ struct StaticVulkanApp { player_build_pressed: bool, factory_menu: Option<FactoryMenu>, player_service_pressed: bool, + camouflage_announced: HashSet<ObjectHandle>, player_mine_pressed: bool, player_disembark_pressed: bool, boarded_hero_index: Option<usize>, @@ -8832,6 +8833,7 @@ impl StaticVulkanApp { player_build_pressed: false, factory_menu: None, player_service_pressed: false, + camouflage_announced: HashSet::new(), player_mine_pressed: false, player_disembark_pressed: false, boarded_hero_index: None, @@ -9494,6 +9496,7 @@ impl StaticVulkanApp { } } self.handle_player_service(control_clock_ms); + self.announce_player_camouflage(); if let Some(engine) = self.mission_engine.as_mut() { let mut deployed_mine = None; if let (true, Some(cockpit), false) = ( @@ -11123,6 +11126,9 @@ impl StaticVulkanApp { if self.demo_camera.is_none() && code == KeyCode::KeyN { self.toggle_night_vision(); } + if self.demo_camera.is_none() && code == KeyCode::KeyH { + self.toggle_player_camouflage(); + } if let Some(slot) = [ KeyCode::Digit0, KeyCode::Digit1, |
