mirror of
https://github.com/iTracerFacer/DCS_MissionDev.git
synced 2025-12-03 04:14:46 +00:00
Official Release of Insurgent Sandstorm 2.0 - Ripped out all of the old CTLD, put in all of my new scripts, updating those where needed for bugs and portability.
This commit is contained in:
@@ -201,8 +201,9 @@ end
|
||||
-- ==========================================
|
||||
|
||||
-- Storage for all zone capture objects and metadata
|
||||
local zoneCaptureObjects = {}
|
||||
local zoneNames = {}
|
||||
-- NOTE: These are exported as globals for plugin compatibility (e.g., Moose_DynamicGroundBattle_Plugin.lua)
|
||||
zoneCaptureObjects = {} -- Global: accessible by other scripts
|
||||
zoneNames = {} -- Global: accessible by other scripts
|
||||
local zoneMetadata = {} -- Stores coalition ownership info
|
||||
|
||||
-- Function to initialize all zones from configuration
|
||||
@@ -1054,7 +1055,9 @@ end
|
||||
local function SetupZoneStatusCommands()
|
||||
-- Add F10 radio menu commands for BLUE coalition
|
||||
if US_CC then
|
||||
local USMenu = MENU_COALITION:New( coalition.side.BLUE, "Zone Control" )
|
||||
-- Use MenuManager to create zone control menu under Mission Options
|
||||
local USMenu = MenuManager and MenuManager.CreateCoalitionMenu(coalition.side.BLUE, "Zone Control")
|
||||
or MENU_COALITION:New( coalition.side.BLUE, "Zone Control" )
|
||||
MENU_COALITION_COMMAND:New( coalition.side.BLUE, "Get Zone Status Report", USMenu, BroadcastZoneStatus )
|
||||
|
||||
MENU_COALITION_COMMAND:New( coalition.side.BLUE, "Check Victory Progress", USMenu, function()
|
||||
@@ -1086,7 +1089,9 @@ local function SetupZoneStatusCommands()
|
||||
|
||||
-- Add F10 radio menu commands for RED coalition
|
||||
if RU_CC then
|
||||
local RUMenu = MENU_COALITION:New( coalition.side.RED, "Zone Control" )
|
||||
-- Use MenuManager to create zone control menu under Mission Options
|
||||
local RUMenu = MenuManager and MenuManager.CreateCoalitionMenu(coalition.side.RED, "Zone Control")
|
||||
or MENU_COALITION:New( coalition.side.RED, "Zone Control" )
|
||||
MENU_COALITION_COMMAND:New( coalition.side.RED, "Get Zone Status Report", RUMenu, BroadcastZoneStatus )
|
||||
|
||||
MENU_COALITION_COMMAND:New( coalition.side.RED, "Check Victory Progress", RUMenu, function()
|
||||
|
||||
Reference in New Issue
Block a user