mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
BugFix
This commit is contained in:
@@ -126,8 +126,8 @@ function ESCORT._HoldPosition( MenuParam )
|
||||
|
||||
routines.removeFunction( self.FollowScheduler )
|
||||
|
||||
EscortGroup:PushTask( EscortGroup:TaskHoldPosition( 300 ) )
|
||||
MESSAGE:New( "Holding Position at ... for 5 minutes.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/TaskHoldPosition" ):ToClient( EscortClient )
|
||||
EscortGroup:SetTask( EscortGroup:TaskHoldPosition( 300 ) )
|
||||
EscortGroup:MessageToClient( "Holding Position.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -163,8 +163,8 @@ function ESCORT._HoldPositionNearBy( MenuParam )
|
||||
|
||||
local Points = { PointFrom, PointTo }
|
||||
|
||||
EscortGroup:PushTask( EscortGroup:TaskRoute( Points ) )
|
||||
MESSAGE:New( "Rejoining to your location. Please hold at your location.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/HoldPositionNearBy" ):ToClient( EscortClient )
|
||||
EscortGroup:SetTask( EscortGroup:TaskRoute( Points ) )
|
||||
EscortGroup:MessageToClient( "Rejoining to your location. Please hold at your location.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -221,7 +221,7 @@ function ESCORT._ScanTargets30Seconds( MenuParam )
|
||||
EscortGroup:TaskCondition( nil, nil, nil, nil, 30, nil )
|
||||
)
|
||||
)
|
||||
MESSAGE:New( "Scanning targets for 30 seconds.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/ScanTargets30Seconds" ):ToClient( EscortClient )
|
||||
EscortGroup:MessageToClient( "Scanning targets for 30 seconds.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -240,7 +240,7 @@ function ESCORT._ScanTargets60Seconds( MenuParam )
|
||||
EscortGroup:TaskCondition( nil, nil, nil, nil, 60, nil )
|
||||
)
|
||||
)
|
||||
MESSAGE:New( "Scanning targets for 60 seconds.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/ScanTargets60Seconds" ):ToClient( EscortClient )
|
||||
EscortGroup:MessageToClient( "Scanning targets for 60 seconds.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -256,8 +256,9 @@ function ESCORT._AttackTarget( MenuParam )
|
||||
|
||||
EscortGroup:OptionROEOpenFire()
|
||||
EscortGroup:OptionROTVertical()
|
||||
EscortGroup:PushTask( EscortGroup:TaskAttackUnit( AttackUnit ) )
|
||||
MESSAGE:New( "Attacking Unit", MenuParam.ParamSelf.EscortName, 10, "ESCORT/AttackTarget" ):ToClient( EscortClient )
|
||||
|
||||
EscortGroup:SetTask( EscortGroup:TaskAttackUnit( AttackUnit ) )
|
||||
EscortGroup:MessageToClient( "Engaging Designated Unit!", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -268,7 +269,7 @@ function ESCORT._ROEHoldFire( MenuParam )
|
||||
local EscortClient = self.EscortClient
|
||||
|
||||
EscortGroup:OptionROEHoldFire()
|
||||
MESSAGE:New( "Holding weapons.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/ROEHoldFire" ):ToClient( EscortClient )
|
||||
EscortGroup:MessageToClient( "Holding weapons.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -279,7 +280,7 @@ function ESCORT._ROEReturnFire( MenuParam )
|
||||
local EscortClient = self.EscortClient
|
||||
|
||||
EscortGroup:OptionROEReturnFire()
|
||||
MESSAGE:New( "Returning enemy fire.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/ROEReturnFire" ):ToClient( EscortClient )
|
||||
EscortGroup:MessageToClient( "Returning enemy fire.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -290,7 +291,7 @@ function ESCORT._ROEOpenFire( MenuParam )
|
||||
local EscortClient = self.EscortClient
|
||||
|
||||
EscortGroup:OptionROEOpenFire()
|
||||
MESSAGE:New( "Open fire on ordered targets.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/ROEOpenFire" ):ToClient( EscortClient )
|
||||
EscortGroup:MessageToClient( "Open fire on ordered targets.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -301,7 +302,7 @@ function ESCORT._ROEWeaponFree( MenuParam )
|
||||
local EscortClient = self.EscortClient
|
||||
|
||||
EscortGroup:OptionROEWeaponFree()
|
||||
MESSAGE:New( "Engaging targets.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/ROEWeaponFree" ):ToClient( EscortClient )
|
||||
EscortGroup:MessageToClient( "Engaging nearby targets.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -312,7 +313,7 @@ function ESCORT._OptionROTNoReaction( MenuParam )
|
||||
local EscortClient = self.EscortClient
|
||||
|
||||
EscortGroup:OptionEvasionNoReaction()
|
||||
MESSAGE:New( "We'll fight until death.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/OptionEvasionNoReaction" ):ToClient( EscortClient )
|
||||
EscortGroup:MessageToClient( "We'll fight until death.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -323,7 +324,7 @@ function ESCORT._OptionROTPassiveDefense( MenuParam )
|
||||
local EscortClient = self.EscortClient
|
||||
|
||||
EscortGroup:OptionROTPassiveDefense()
|
||||
MESSAGE:New( "We will use flares, chaff and jammers.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/OptionROTPassiveDefense" ):ToClient( EscortClient )
|
||||
EscortGroup:MessageToClient( "We will use flares, chaff and jammers.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -334,7 +335,7 @@ function ESCORT._OptionROTEvadeFire( MenuParam )
|
||||
local EscortClient = self.EscortClient
|
||||
|
||||
EscortGroup:OptionROTEvadeFire()
|
||||
MESSAGE:New( "We'll evade enemy fire.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/OptionROTEvadeFire" ):ToClient( EscortClient )
|
||||
EscortGroup:MessageToClient( "We'll evade enemy fire.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -345,7 +346,7 @@ function ESCORT._OptionROTVertical( MenuParam )
|
||||
local EscortClient = self.EscortClient
|
||||
|
||||
EscortGroup:OptionROTVertical()
|
||||
MESSAGE:New( "We'll perform vertical evasive manoeuvres.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/OptionROTVertical" ):ToClient( EscortClient )
|
||||
EscortGroup:MessageToClient( "We'll perform vertical evasive manoeuvres.", 10, EscortClient )
|
||||
end
|
||||
|
||||
--- @param #MENUPARAM MenuParam
|
||||
@@ -367,9 +368,8 @@ function ESCORT._ResumeMission( MenuParam )
|
||||
table.remove( WayPoints, 1 )
|
||||
end
|
||||
|
||||
EscortGroup:PopCurrentTask()
|
||||
EscortGroup:PushTask( EscortGroup:TaskRoute( WayPoints ) )
|
||||
MESSAGE:New( "Resuming mission.", MenuParam.ParamSelf.EscortName, 10, "ESCORT/ResumeMission" ):ToClient( EscortClient )
|
||||
EscortGroup:SetTask( EscortGroup:TaskRoute( WayPoints ) )
|
||||
EscortGroup:MessageToClient( "Resuming mission from waypoint " .. WayPoint .. ".", 10, EscortClient )
|
||||
end
|
||||
|
||||
function ESCORT:RegisterRoute()
|
||||
|
||||
Reference in New Issue
Block a user