#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:
Applevangelist
2022-10-07 14:29:54 +02:00
parent 6a22e03689
commit ff194b4425
2 changed files with 167 additions and 69 deletions

View File

@@ -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