mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
#PLAYERRECCE
* Added setting of laser distance as camera sight calc is a no-starter * Added specific laser zone of 20mxlength to catch targets to lase * Reworked detection of hit on lased target
This commit is contained in:
@@ -69,6 +69,7 @@ TARGET = {
|
||||
casualties = {},
|
||||
threatlevel0 = 0,
|
||||
conditionStart = {},
|
||||
TStatus = 30,
|
||||
}
|
||||
|
||||
|
||||
@@ -146,7 +147,7 @@ _TARGETID=0
|
||||
|
||||
--- TARGET class version.
|
||||
-- @field #string version
|
||||
TARGET.version="0.5.2"
|
||||
TARGET.version="0.5.3"
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
-- TODO list
|
||||
@@ -185,6 +186,7 @@ function TARGET:New(TargetObject)
|
||||
-- Defaults.
|
||||
self:SetPriority()
|
||||
self:SetImportance()
|
||||
self.TStatus = 30
|
||||
|
||||
-- Log ID.
|
||||
self.lid=string.format("TARGET #%03d | ", _TARGETID)
|
||||
@@ -570,7 +572,7 @@ function TARGET:onafterStatus(From, Event, To)
|
||||
|
||||
-- Update status again in 30 sec.
|
||||
if self:IsAlive() then
|
||||
self:__Status(-30)
|
||||
self:__Status(-self.TStatus)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user