mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
FlightMode
This commit is contained in:
@@ -366,7 +366,7 @@ function AI_ESCORT:onafterStart( EscortGroupSet )
|
|||||||
self:_InitEscortMenus( EscortGroup )
|
self:_InitEscortMenus( EscortGroup )
|
||||||
self:_InitEscortRoute( EscortGroup )
|
self:_InitEscortRoute( EscortGroup )
|
||||||
|
|
||||||
self:ModeFormation( EscortGroup )
|
self:SetFlightModeFormation( EscortGroup )
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -1305,7 +1305,7 @@ function AI_ESCORT:_HoldPosition( OrbitGroup, EscortGroup, OrbitHeight, OrbitSec
|
|||||||
|
|
||||||
local OrbitUnit = OrbitGroup:GetUnit(1) -- Wrapper.Unit#UNIT
|
local OrbitUnit = OrbitGroup:GetUnit(1) -- Wrapper.Unit#UNIT
|
||||||
|
|
||||||
self:ModeMission( EscortGroup )
|
self:SetFlightModeMission( EscortGroup )
|
||||||
|
|
||||||
local PointFrom = {}
|
local PointFrom = {}
|
||||||
local GroupVec3 = EscortGroup:GetUnit(1):GetVec3()
|
local GroupVec3 = EscortGroup:GetUnit(1):GetVec3()
|
||||||
@@ -1366,7 +1366,7 @@ function AI_ESCORT:_JoinUp( EscortGroup )
|
|||||||
|
|
||||||
local EscortUnit = self.PlayerUnit
|
local EscortUnit = self.PlayerUnit
|
||||||
|
|
||||||
self:ModeFormation( EscortGroup )
|
self:SetFlightModeFormation( EscortGroup )
|
||||||
|
|
||||||
EscortGroup:MessageTypeToGroup( "Joining up!", MESSAGE.Type.Information, EscortUnit:GetGroup() )
|
EscortGroup:MessageTypeToGroup( "Joining up!", MESSAGE.Type.Information, EscortUnit:GetGroup() )
|
||||||
end
|
end
|
||||||
@@ -1591,7 +1591,7 @@ function AI_ESCORT:_ResumeMission( EscortGroup, WayPoint )
|
|||||||
|
|
||||||
--self.FollowScheduler:Stop( self.FollowSchedule )
|
--self.FollowScheduler:Stop( self.FollowSchedule )
|
||||||
|
|
||||||
self:ModeMission( EscortGroup )
|
self:SetFlightModeMission( EscortGroup )
|
||||||
|
|
||||||
local WayPoints = EscortGroup.MissionRoute
|
local WayPoints = EscortGroup.MissionRoute
|
||||||
self:T( WayPoint, WayPoints )
|
self:T( WayPoint, WayPoints )
|
||||||
@@ -1615,7 +1615,7 @@ function AI_ESCORT:_AttackTarget( EscortGroup, DetectedItem )
|
|||||||
|
|
||||||
local EscortUnit = self.PlayerUnit
|
local EscortUnit = self.PlayerUnit
|
||||||
|
|
||||||
self:ModeAttack( EscortGroup )
|
self:SetFlightModeAttack( EscortGroup )
|
||||||
|
|
||||||
if EscortGroup:IsAir() then
|
if EscortGroup:IsAir() then
|
||||||
EscortGroup:OptionROEOpenFire()
|
EscortGroup:OptionROEOpenFire()
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ function AI_ESCORT_REQUEST:SpawnEscort()
|
|||||||
LeaderEscort:MessageTypeToGroup( Report:Text(), MESSAGE.Type.Information, self.PlayerUnit )
|
LeaderEscort:MessageTypeToGroup( Report:Text(), MESSAGE.Type.Information, self.PlayerUnit )
|
||||||
|
|
||||||
if self.SpawnMode == self.__Enum.Mode.Formation then
|
if self.SpawnMode == self.__Enum.Mode.Formation then
|
||||||
self:ModeFormation( EscortGroup )
|
self:SetFlightModeFormation( EscortGroup )
|
||||||
end
|
end
|
||||||
|
|
||||||
self:_InitFlightMenus()
|
self:_InitFlightMenus()
|
||||||
|
|||||||
@@ -957,7 +957,7 @@ end
|
|||||||
-- @param #AI_FORMATION self
|
-- @param #AI_FORMATION self
|
||||||
-- @param Wrapper.Group#GROUP FollowGroup FollowGroup.
|
-- @param Wrapper.Group#GROUP FollowGroup FollowGroup.
|
||||||
-- @return #AI_FORMATION
|
-- @return #AI_FORMATION
|
||||||
function AI_FORMATION:ModeMission( FollowGroup )
|
function AI_FORMATION:SetFlightModeMission( FollowGroup )
|
||||||
|
|
||||||
if FollowGroup then
|
if FollowGroup then
|
||||||
FollowGroup:SetState( FollowGroup, "PreviousMode", FollowGroup:GetState( FollowGroup, "Mode" ) )
|
FollowGroup:SetState( FollowGroup, "PreviousMode", FollowGroup:GetState( FollowGroup, "Mode" ) )
|
||||||
@@ -981,7 +981,7 @@ end
|
|||||||
-- @param #AI_FORMATION self
|
-- @param #AI_FORMATION self
|
||||||
-- @param Wrapper.Group#GROUP FollowGroup FollowGroup.
|
-- @param Wrapper.Group#GROUP FollowGroup FollowGroup.
|
||||||
-- @return #AI_FORMATION
|
-- @return #AI_FORMATION
|
||||||
function AI_FORMATION:ModeAttack( FollowGroup )
|
function AI_FORMATION:SetFlightModeAttack( FollowGroup )
|
||||||
|
|
||||||
if FollowGroup then
|
if FollowGroup then
|
||||||
FollowGroup:SetState( FollowGroup, "PreviousMode", FollowGroup:GetState( FollowGroup, "Mode" ) )
|
FollowGroup:SetState( FollowGroup, "PreviousMode", FollowGroup:GetState( FollowGroup, "Mode" ) )
|
||||||
@@ -1005,7 +1005,7 @@ end
|
|||||||
-- @param #AI_FORMATION self
|
-- @param #AI_FORMATION self
|
||||||
-- @param Wrapper.Group#GROUP FollowGroup FollowGroup.
|
-- @param Wrapper.Group#GROUP FollowGroup FollowGroup.
|
||||||
-- @return #AI_FORMATION
|
-- @return #AI_FORMATION
|
||||||
function AI_FORMATION:ModeFormation( FollowGroup )
|
function AI_FORMATION:SetFlightModeFormation( FollowGroup )
|
||||||
|
|
||||||
if FollowGroup then
|
if FollowGroup then
|
||||||
FollowGroup:SetState( FollowGroup, "PreviousMode", FollowGroup:GetState( FollowGroup, "Mode" ) )
|
FollowGroup:SetState( FollowGroup, "PreviousMode", FollowGroup:GetState( FollowGroup, "Mode" ) )
|
||||||
|
|||||||
Reference in New Issue
Block a user