mirror of
https://github.com/iTracerFacer/DCS_MissionDev.git
synced 2025-12-03 04:14:46 +00:00
.
This commit is contained in:
parent
aa249a6a36
commit
2266965416
Binary file not shown.
@ -494,7 +494,7 @@ local function OnEnterGuarded(ZoneCapture, From, Event, To)
|
|||||||
-- Update zone visual markers to BLUE (captured)
|
-- Update zone visual markers to BLUE (captured)
|
||||||
ZoneCapture:UndrawZone()
|
ZoneCapture:UndrawZone()
|
||||||
local color = ZONE_COLORS.BLUE_CAPTURED
|
local color = ZONE_COLORS.BLUE_CAPTURED
|
||||||
ZoneCapture:DrawZone(-1, color, 0.5, color, 0.2, 2, true)
|
ZoneCapture:DrawZone(-1, {0, 0, 0}, 1, color, 0.2, 2, true)
|
||||||
US_CC:MessageTypeToCoalition( string.format( "%s is under protection of the USA", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
US_CC:MessageTypeToCoalition( string.format( "%s is under protection of the USA", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
||||||
RU_CC:MessageTypeToCoalition( string.format( "%s is under protection of the USA", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
RU_CC:MessageTypeToCoalition( string.format( "%s is under protection of the USA", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
||||||
else
|
else
|
||||||
@ -502,7 +502,7 @@ local function OnEnterGuarded(ZoneCapture, From, Event, To)
|
|||||||
-- Update zone visual markers to RED (captured)
|
-- Update zone visual markers to RED (captured)
|
||||||
ZoneCapture:UndrawZone()
|
ZoneCapture:UndrawZone()
|
||||||
local color = ZONE_COLORS.RED_CAPTURED
|
local color = ZONE_COLORS.RED_CAPTURED
|
||||||
ZoneCapture:DrawZone(-1, color, 0.5, color, 0.2, 2, true)
|
ZoneCapture:DrawZone(-1, {0, 0, 0}, 1, color, 0.2, 2, true)
|
||||||
RU_CC:MessageTypeToCoalition( string.format( "%s is under protection of Russia", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
RU_CC:MessageTypeToCoalition( string.format( "%s is under protection of Russia", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
||||||
US_CC:MessageTypeToCoalition( string.format( "%s is under protection of Russia", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
US_CC:MessageTypeToCoalition( string.format( "%s is under protection of Russia", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
||||||
end
|
end
|
||||||
@ -516,7 +516,7 @@ local function OnEnterEmpty(ZoneCapture)
|
|||||||
-- Update zone visual markers to GREEN (neutral/empty)
|
-- Update zone visual markers to GREEN (neutral/empty)
|
||||||
ZoneCapture:UndrawZone()
|
ZoneCapture:UndrawZone()
|
||||||
local color = ZONE_COLORS.EMPTY
|
local color = ZONE_COLORS.EMPTY
|
||||||
ZoneCapture:DrawZone(-1, color, 0.5, color, 0.2, 2, true)
|
ZoneCapture:DrawZone(-1, {0, 0, 0}, 1, color, 0.2, 2, true)
|
||||||
US_CC:MessageTypeToCoalition( string.format( "%s is unprotected, and can be captured!", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
US_CC:MessageTypeToCoalition( string.format( "%s is unprotected, and can be captured!", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
||||||
RU_CC:MessageTypeToCoalition( string.format( "%s is unprotected, and can be captured!", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
RU_CC:MessageTypeToCoalition( string.format( "%s is unprotected, and can be captured!", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.CAPTURE_MESSAGE_DURATION )
|
||||||
-- Create/update tactical information marker
|
-- Create/update tactical information marker
|
||||||
@ -538,7 +538,7 @@ local function OnEnterAttacked(ZoneCapture)
|
|||||||
RU_CC:MessageTypeToCoalition( string.format( "%s is under attack by the USA", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.ATTACK_MESSAGE_DURATION )
|
RU_CC:MessageTypeToCoalition( string.format( "%s is under attack by the USA", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.ATTACK_MESSAGE_DURATION )
|
||||||
US_CC:MessageTypeToCoalition( string.format( "We are attacking %s", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.ATTACK_MESSAGE_DURATION )
|
US_CC:MessageTypeToCoalition( string.format( "We are attacking %s", ZoneCapture:GetZoneName() ), MESSAGE.Type.Information, MESSAGE_CONFIG.ATTACK_MESSAGE_DURATION )
|
||||||
end
|
end
|
||||||
ZoneCapture:DrawZone(-1, color, 0.5, color, 0.2, 2, true)
|
ZoneCapture:DrawZone(-1, {0, 0, 0}, 1, color, 0.2, 2, true)
|
||||||
-- Create/update tactical information marker
|
-- Create/update tactical information marker
|
||||||
CreateTacticalInfoMarker(ZoneCapture)
|
CreateTacticalInfoMarker(ZoneCapture)
|
||||||
end
|
end
|
||||||
@ -681,7 +681,7 @@ local function OnEnterCaptured(ZoneCapture)
|
|||||||
-- Update zone visual markers to BLUE (captured)
|
-- Update zone visual markers to BLUE (captured)
|
||||||
ZoneCapture:UndrawZone()
|
ZoneCapture:UndrawZone()
|
||||||
local color = ZONE_COLORS.BLUE_CAPTURED
|
local color = ZONE_COLORS.BLUE_CAPTURED
|
||||||
ZoneCapture:DrawZone(-1, color, 0.5, color, 0.2, 2, true)
|
ZoneCapture:DrawZone(-1, {0, 0, 0}, 1, color, 0.2, 2, true)
|
||||||
|
|
||||||
-- Enhanced messaging for critical bases
|
-- Enhanced messaging for critical bases
|
||||||
if isCriticalBase then
|
if isCriticalBase then
|
||||||
@ -695,7 +695,7 @@ local function OnEnterCaptured(ZoneCapture)
|
|||||||
-- Update zone visual markers to RED (captured)
|
-- Update zone visual markers to RED (captured)
|
||||||
ZoneCapture:UndrawZone()
|
ZoneCapture:UndrawZone()
|
||||||
local color = ZONE_COLORS.RED_CAPTURED
|
local color = ZONE_COLORS.RED_CAPTURED
|
||||||
ZoneCapture:DrawZone(-1, color, 0.5, color, 0.2, 2, true)
|
ZoneCapture:DrawZone(-1, {0, 0, 0}, 1, color, 0.2, 2, true)
|
||||||
|
|
||||||
-- Enhanced messaging for critical bases
|
-- Enhanced messaging for critical bases
|
||||||
if isCriticalBase then
|
if isCriticalBase then
|
||||||
@ -754,7 +754,7 @@ for i, zoneCapture in ipairs(zoneCaptureObjects) do
|
|||||||
-- Initialize zone borders with initial RED color (all zones start as RED coalition)
|
-- Initialize zone borders with initial RED color (all zones start as RED coalition)
|
||||||
local drawSuccess, drawError = pcall(function()
|
local drawSuccess, drawError = pcall(function()
|
||||||
local color = ZONE_COLORS.RED_CAPTURED
|
local color = ZONE_COLORS.RED_CAPTURED
|
||||||
zone:DrawZone(-1, color, 0.5, color, 0.2, 2, true)
|
zone:DrawZone(-1, {0, 0, 0}, 1, color, 0.2, 2, true)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if not drawSuccess then
|
if not drawSuccess then
|
||||||
@ -898,7 +898,7 @@ local ZoneColorVerificationScheduler = SCHEDULER:New( nil, function()
|
|||||||
|
|
||||||
-- Force redraw the zone with correct color based on CURRENT STATE
|
-- Force redraw the zone with correct color based on CURRENT STATE
|
||||||
zoneCapture:UndrawZone()
|
zoneCapture:UndrawZone()
|
||||||
zoneCapture:DrawZone(-1, zoneColor, 0.5, zoneColor, 0.2, 2, true)
|
zoneCapture:DrawZone(-1, {0, 0, 0}, 1, zoneColor, 0.2, 2, true)
|
||||||
|
|
||||||
-- Log the color assignment for debugging
|
-- Log the color assignment for debugging
|
||||||
local colorName = "UNKNOWN"
|
local colorName = "UNKNOWN"
|
||||||
@ -959,7 +959,7 @@ local function RefreshAllZoneColors()
|
|||||||
zoneCapture:UndrawZone()
|
zoneCapture:UndrawZone()
|
||||||
|
|
||||||
-- Redraw with correct color
|
-- Redraw with correct color
|
||||||
zoneCapture:DrawZone(-1, zoneColor, 0.5, zoneColor, 0.2, 2, true)
|
zoneCapture:DrawZone(-1, {0, 0, 0}, 1, zoneColor, 0.2, 2, true)
|
||||||
|
|
||||||
-- Log the color assignment for debugging
|
-- Log the color assignment for debugging
|
||||||
local colorName = "UNKNOWN"
|
local colorName = "UNKNOWN"
|
||||||
|
|||||||
@ -272,7 +272,7 @@ CTLD.Config = {
|
|||||||
|
|
||||||
-- Dynamic Drop Zone settings
|
-- Dynamic Drop Zone settings
|
||||||
DropZoneRadius = 250, -- meters: radius used when creating a Drop Zone via the admin menu at player position
|
DropZoneRadius = 250, -- meters: radius used when creating a Drop Zone via the admin menu at player position
|
||||||
MinDropZoneDistanceFromPickup = 10000, -- meters: minimum distance from nearest Pickup Zone required to create a dynamic Drop Zone (0 to disable)
|
MinDropZoneDistanceFromPickup = 2000, -- meters: minimum distance from nearest Pickup Zone required to create a dynamic Drop Zone (0 to disable)
|
||||||
MinDropDistanceActivePickupOnly = true, -- when true, only ACTIVE pickup zones are considered for the minimum distance check
|
MinDropDistanceActivePickupOnly = true, -- when true, only ACTIVE pickup zones are considered for the minimum distance check
|
||||||
|
|
||||||
-- Attack/Defend AI behavior for deployed troops and built vehicles
|
-- Attack/Defend AI behavior for deployed troops and built vehicles
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user