mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-21 11:53:30 +00:00
xxx
This commit is contained in:
@@ -4612,6 +4612,16 @@ do -- SET_CLIENT
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Make the SET handle CA slots **only** (GROUND units used by any player). Needs active filtering with `FilterStart()`
|
||||||
|
-- @param #SET_CLIENT self
|
||||||
|
-- @return #SET_CLIENT self
|
||||||
|
function SET_CLIENT:HandleCASlots()
|
||||||
|
self:HandleEvent(EVENTS.PlayerEnterUnit,SET_CLIENT._EventPlayerEnterUnit)
|
||||||
|
self:HandleEvent(EVENTS.PlayerLeaveUnit,SET_CLIENT._EventPlayerLeaveUnit)
|
||||||
|
self:FilterFunction(function(client) if client and client:IsAlive() and client:IsGround() then return true else return false end end)
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
--- Handles the Database to check on an event (birth) that the Object was added in the Database.
|
--- Handles the Database to check on an event (birth) that the Object was added in the Database.
|
||||||
-- This is required, because sometimes the _DATABASE birth event gets called later than the SET_BASE birth event!
|
-- This is required, because sometimes the _DATABASE birth event gets called later than the SET_BASE birth event!
|
||||||
-- @param #SET_CLIENT self
|
-- @param #SET_CLIENT self
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ EASYGCICAP = {
|
|||||||
|
|
||||||
--- EASYGCICAP class version.
|
--- EASYGCICAP class version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
EASYGCICAP.version="0.1.16"
|
EASYGCICAP.version="0.1.17"
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
-- TODO list
|
-- TODO list
|
||||||
@@ -599,7 +599,7 @@ function EASYGCICAP:_AddAirwing(Airbasename, Alias)
|
|||||||
|
|
||||||
local TankerInvisible = self.TankerInvisible
|
local TankerInvisible = self.TankerInvisible
|
||||||
|
|
||||||
function CAP_Wing:OnAfterFlightOnMission(From, Event, To, Flightgroup, Mission)
|
function CAP_Wing:onbeforeFlightOnMission(From, Event, To, Flightgroup, Mission)
|
||||||
local flightgroup = Flightgroup -- Ops.FlightGroup#FLIGHTGROUP
|
local flightgroup = Flightgroup -- Ops.FlightGroup#FLIGHTGROUP
|
||||||
if DespawnAfterLanding then
|
if DespawnAfterLanding then
|
||||||
flightgroup:SetDespawnAfterLanding()
|
flightgroup:SetDespawnAfterLanding()
|
||||||
@@ -629,7 +629,7 @@ function EASYGCICAP:_AddAirwing(Airbasename, Alias)
|
|||||||
flightgroup:SetFuelLowRTB(true)
|
flightgroup:SetFuelLowRTB(true)
|
||||||
Intel:AddAgent(flightgroup)
|
Intel:AddAgent(flightgroup)
|
||||||
if DespawnAfterHolding then
|
if DespawnAfterHolding then
|
||||||
function flightgroup:OnAfterHolding(From,Event,To)
|
function flightgroup:onbeforeHolding(From,Event,To)
|
||||||
self:Despawn(1,true)
|
self:Despawn(1,true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -1327,7 +1327,7 @@ function EASYGCICAP:_StartIntel()
|
|||||||
self:_AssignIntercept(Cluster)
|
self:_AssignIntercept(Cluster)
|
||||||
end
|
end
|
||||||
|
|
||||||
function BlueIntel:OnAfterNewCluster(From,Event,To,Cluster)
|
function BlueIntel:onbeforeNewCluster(From,Event,To,Cluster)
|
||||||
AssignCluster(Cluster)
|
AssignCluster(Cluster)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -4310,7 +4310,7 @@ function CONTROLLABLE:OptionDisperseOnAttack( Seconds )
|
|||||||
end
|
end
|
||||||
|
|
||||||
--- Returns if the unit is a submarine.
|
--- Returns if the unit is a submarine.
|
||||||
-- @param #POSITIONABLE self
|
-- @param #CONTROLLABLE self
|
||||||
-- @return #boolean Submarines attributes result.
|
-- @return #boolean Submarines attributes result.
|
||||||
function CONTROLLABLE:IsSubmarine()
|
function CONTROLLABLE:IsSubmarine()
|
||||||
self:F2()
|
self:F2()
|
||||||
|
|||||||
Reference in New Issue
Block a user