mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Change in defense reactivity and distance calculations.
This commit is contained in:
parent
f76b0dc7d3
commit
900a55614b
@ -397,6 +397,9 @@ do -- AI_A2G_DISPATCHER
|
|||||||
|
|
||||||
self.DefenderPatrolIndex = 0
|
self.DefenderPatrolIndex = 0
|
||||||
|
|
||||||
|
self:SetDefenseDistance()
|
||||||
|
self:SetDefenseReactivityMedium()
|
||||||
|
|
||||||
self:__Start( 5 )
|
self:__Start( 5 )
|
||||||
|
|
||||||
return self
|
return self
|
||||||
@ -519,19 +522,22 @@ do -- AI_A2G_DISPATCHER
|
|||||||
--- @param #AI_A2G_DISPATCHER self
|
--- @param #AI_A2G_DISPATCHER self
|
||||||
function AI_A2G_DISPATCHER:SetDefenseReactivityLow()
|
function AI_A2G_DISPATCHER:SetDefenseReactivityLow()
|
||||||
self.DefenseReactivity = 0.05
|
self.DefenseReactivity = 0.05
|
||||||
self.DefenseDistance = 20000
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--- @param #AI_A2G_DISPATCHER self
|
--- @param #AI_A2G_DISPATCHER self
|
||||||
function AI_A2G_DISPATCHER:SetDefenseReactivityMedium()
|
function AI_A2G_DISPATCHER:SetDefenseReactivityMedium()
|
||||||
self.DefenseReactivity = 0.15
|
self.DefenseReactivity = 0.15
|
||||||
self.DefenseDistance = 20000
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--- @param #AI_A2G_DISPATCHER self
|
--- @param #AI_A2G_DISPATCHER self
|
||||||
function AI_A2G_DISPATCHER:SetDefenseReactivityHigh()
|
function AI_A2G_DISPATCHER:SetDefenseReactivityHigh()
|
||||||
self.DefenseReactivity = 0.5
|
self.DefenseReactivity = 0.5
|
||||||
self.DefenseDistance = 20000
|
end
|
||||||
|
|
||||||
|
--- @param #AI_A2G_DISPATCHER self
|
||||||
|
-- @param #number DefensiveDistance The distance in meters from where the evaluation of defense reactivity will be calculated.
|
||||||
|
function AI_A2G_DISPATCHER:SetDefenseDistance( DefensiveDistance )
|
||||||
|
self.DefenseDistance = DefensiveDistance or 60000
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user