diff --git a/Moose Development/Moose/Functional/Detection.lua b/Moose Development/Moose/Functional/Detection.lua index 2ec01a349..4ddf6ff9c 100644 --- a/Moose Development/Moose/Functional/Detection.lua +++ b/Moose Development/Moose/Functional/Detection.lua @@ -38,7 +38,8 @@ -- @image Detection.JPG do -- DETECTION_BASE - + + --- -- @type DETECTION_BASE -- @field Core.Set#SET_GROUP DetectionSetGroup The @{Core.Set} of GROUPs in the Forward Air Controller role. -- @field DCS#Distance DetectionRange The range till which targets are accepted to be detected. @@ -91,6 +92,11 @@ do -- DETECTION_BASE -- -- DetectionObject:FilterCategories( { Unit.Category.AIRPLANE, Unit.Category.HELICOPTER } ) -- + -- + -- ## Radar Blur - use to make the radar less exact, e.g. for WWII scenarios + -- + -- * @{DETECTION_BASE.SetRadarBlur}(): Set the radar blur to be used. + -- -- ## **DETECTION_ derived classes** group the detected units into a **DetectedItems[]** list -- -- DETECTION_BASE derived classes build a list called DetectedItems[], which is essentially a first later @@ -268,10 +274,12 @@ do -- DETECTION_BASE DetectedItems = {}, DetectedItemsByIndex = {}, } - + + --- -- @type DETECTION_BASE.DetectedObjects -- @list <#DETECTION_BASE.DetectedObject> + --- -- @type DETECTION_BASE.DetectedObject -- @field #string Name -- @field #boolean IsVisible @@ -283,7 +291,8 @@ do -- DETECTION_BASE -- @field #number LastTime -- @field #boolean LastPos -- @field #number LastVelocity - + + --- -- @type DETECTION_BASE.DetectedItems -- @list <#DETECTION_BASE.DetectedItem> @@ -723,7 +732,7 @@ do -- DETECTION_BASE local unit = UNIT:FindByName(DetectedObjectName) if unit and unit:IsAlive() then local AGL = unit:GetAltitude(true) - if AGL <= minheight and fheight > thresheight then DetectionAccepted = false end + if AGL <= minheight and fheight < thresheight then DetectionAccepted = false end if fblur > thresblur then DetectionAccepted = false end end end @@ -2262,7 +2271,8 @@ do -- DETECTION_UNITS end do -- DETECTION_TYPES - + + --- -- @type DETECTION_TYPES -- @extends Functional.Detection#DETECTION_BASE