mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Updates
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,5 @@
|
||||
|
||||
local FACGroup = GROUP:FindByName( "FAC Group" )
|
||||
|
||||
local FACDetection = DETECTION_BASE:New( FACGroup, 1000, 250 )
|
||||
local FACDetection = DETECTION_BASE:New( FACGroup, 1000, 250 ):InitDetectIRST( true )
|
||||
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,63 @@
|
||||
|
||||
local FACGroup = GROUP:FindByName( "FAC Group Lase" )
|
||||
|
||||
local FACDetection = DETECTION_BASE:New( FACGroup, 1000, 250 )
|
||||
|
||||
|
||||
local LaseScheduler = SCHEDULER:New(nil,
|
||||
--- @param Group#GROUP FACGroup
|
||||
-- @param Detection#DETECTION_BASE FACDetection
|
||||
function( FACGroup, FACDetection )
|
||||
if FACDetection:GetDetectionUnitSetCount() > 0 then
|
||||
local DetectedUnitSet = FACDetection:GetDetectionUnitSet(1)
|
||||
if DetectedUnitSet then
|
||||
FACDetection:E( { "I have a unit set ", DetectedUnitSet } )
|
||||
local FACUnit = FACGroup:GetUnit(1)
|
||||
if FACUnit then
|
||||
FACDetection:E( FACUnit )
|
||||
local FACDCSUnit = FACUnit:GetDCSUnit()
|
||||
local FACUnitController = FACDCSUnit:getController()
|
||||
DetectedUnitSet:ForEachUnit(
|
||||
--- @param Unit#UNIT DetectedUnit
|
||||
function( DetectedUnit, FACDCSUnit )
|
||||
FACDetection:E( DetectedUnit:GetDCSUnit() )
|
||||
FACDetection:E( FACDCSUnit )
|
||||
local JTAC = Spot.createInfraRed( FACDCSUnit, {x = 0, y = 2.0, z = 0}, DetectedUnit:GetPointVec3(), 1337)
|
||||
end, FACDCSUnit
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end, { FACGroup, FACDetection },
|
||||
30
|
||||
)
|
||||
|
||||
local LaseScheduler2 = SCHEDULER:New(nil,
|
||||
--- @param Group#GROUP FACGroup
|
||||
-- @param Detection#DETECTION_BASE FACDetection
|
||||
function( FACGroup, FACDetection )
|
||||
if FACDetection:GetDetectionUnitSetCount() > 0 then
|
||||
local DetectedUnitSet = FACDetection:GetDetectionUnitSet(1)
|
||||
if DetectedUnitSet then
|
||||
FACDetection:E( { "I have a unit set ", DetectedUnitSet } )
|
||||
local FACUnit = FACGroup:GetUnit(1)
|
||||
if FACUnit then
|
||||
FACDetection:E( FACUnit )
|
||||
local FACDCSUnit = FACUnit:GetDCSUnit()
|
||||
local FACUnitController = FACDCSUnit:getController()
|
||||
DetectedUnitSet:ForEachUnit(
|
||||
--- @param Unit#UNIT DetectedUnit
|
||||
function( DetectedUnit, FACDCSUnit )
|
||||
FACDetection:E( DetectedUnit:GetDCSUnit() )
|
||||
FACDetection:E( FACDCSUnit )
|
||||
local TargetIsDetected, TargetIsVisible, TargetLastTime, TargetKnowType, TargetKnowDistance, TargetLastPos, TargetLastVelocity
|
||||
= FACUnitController:isTargetDetected( DetectedUnit:GetDCSUnit(), Controller.Detection.IRST )
|
||||
FACDetection:E( { TargetIsDetected, TargetIsVisible, TargetLastTime, TargetKnowType, TargetKnowDistance, TargetLastPos, TargetLastVelocity } )
|
||||
end, FACDCSUnit
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end, { FACGroup, FACDetection },
|
||||
40
|
||||
)
|
||||
Binary file not shown.
@@ -18,6 +18,7 @@ do
|
||||
:MenuSmoke()
|
||||
:MenuReportTargets( 60, 20 )
|
||||
:MenuResumeMission()
|
||||
:MenuROE()
|
||||
:MenuAssistedAttack()
|
||||
|
||||
local EscortGroupArtillery = SpawnEscortArtillery:ReSpawn(1)
|
||||
|
||||
Binary file not shown.
8
Moose Test Missions/Moose_Test_FAC/Moose_Test_FAC.lua
Normal file
8
Moose Test Missions/Moose_Test_FAC/Moose_Test_FAC.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
local FACGroup = GROUP:FindByName( "FAC Group" )
|
||||
|
||||
local FACDetection = DETECTION_BASE:New( FACGroup, 1000, 250 )
|
||||
local FACClientSet = SET_CLIENT:New():FilterCoalitions( "blue" ):FilterStart()
|
||||
|
||||
local FACReporting = FAC_BASE:New( FACClientSet, FACDetection )
|
||||
BIN
Moose Test Missions/Moose_Test_FAC/Moose_Test_FAC.miz
Normal file
BIN
Moose Test Missions/Moose_Test_FAC/Moose_Test_FAC.miz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user