From eca14ba80d98dcfc2bf3696ac24ddda37d01e3e4 Mon Sep 17 00:00:00 2001 From: Ambroise Garel <47314805+akaAgar@users.noreply.github.com> Date: Sat, 26 Jul 2025 19:49:11 +0200 Subject: [PATCH] Reorganized debug menu, added "send wingmen to marker" option --- Script/The Universal Mission/DebugMenu.lua | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Script/The Universal Mission/DebugMenu.lua b/Script/The Universal Mission/DebugMenu.lua index efd08da..a56f6ba 100644 --- a/Script/The Universal Mission/DebugMenu.lua +++ b/Script/The Universal Mission/DebugMenu.lua @@ -72,6 +72,10 @@ do timer.scheduleFunction(TUM.onEvent, landingEvent, timer.getTime() + 1) end + local function doSendWingmenToMarker() + TUM.wingmenTasking.commandGoToMapMarker(nil, false) + end + local function doKillWingman() local wingGroup = TUM.wingmen.getGroup() if not wingGroup then return end @@ -87,12 +91,13 @@ do if not TUM.DEBUG_MODE then return end local rootMenu = missionCommands.addSubMenu("[DEBUG]") - missionCommands.addCommand("Detonate \"boom\" map markers", rootMenu, doMarkersBoom, nil) - missionCommands.addCommand("Detonate aircraft near \"airboom\" map markers", rootMenu, doMarkersAirBoom, nil) - missionCommands.addCommand("Award 100 points and 1 objective", rootMenu, doAwardPointsAndObjectives, nil) - missionCommands.addCommand("Kill wingman", rootMenu, doKillWingman, nil) - missionCommands.addCommand("Simulate player takeoff", rootMenu, doSimulatePlayerTakeOff, nil) - missionCommands.addCommand("Simulate player landing", rootMenu, doSimulatePlayerLanding, nil) - missionCommands.addCommand("Reset player stats", rootMenu, TUM.playerCareer.reset, nil) + missionCommands.addCommand("Detonate - \"boom\" map markers", rootMenu, doMarkersBoom, nil) + missionCommands.addCommand("Detonate - \"airboom\" map markers", rootMenu, doMarkersAirBoom, nil) + missionCommands.addCommand("Wingman - kill", rootMenu, doKillWingman, nil) + missionCommands.addCommand("Wingman - go to \"flight\" marker", rootMenu, doSendWingmenToMarker, nil) + missionCommands.addCommand("Player - simulate takeoff", rootMenu, doSimulatePlayerTakeOff, nil) + missionCommands.addCommand("Player - simulate landing", rootMenu, doSimulatePlayerLanding, nil) + missionCommands.addCommand("Scoring - award 100 points and 1 objective", rootMenu, doAwardPointsAndObjectives, nil) + missionCommands.addCommand("Scoring - reset flight log", rootMenu, TUM.playerCareer.reset, nil) end end