From 298c569f93a47e65f8cd8826a39eda3e27e8ea7e Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Tue, 16 Jan 2024 15:09:51 +0100 Subject: [PATCH] #PLAYERTASK * Add a height of 2m on laser coordinates to ensure LOS test works --- Moose Development/Moose/Ops/PlayerTask.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Ops/PlayerTask.lua b/Moose Development/Moose/Ops/PlayerTask.lua index e251b1856..8ae53f1b1 100644 --- a/Moose Development/Moose/Ops/PlayerTask.lua +++ b/Moose Development/Moose/Ops/PlayerTask.lua @@ -98,7 +98,7 @@ PLAYERTASK = { --- PLAYERTASK class version. -- @field #string version -PLAYERTASK.version="0.1.22" +PLAYERTASK.version="0.1.23" --- Generic task condition. -- @type PLAYERTASK.Condition @@ -2609,6 +2609,7 @@ function PLAYERTASKCONTROLLER:_CheckPrecisionTasks() -- not done yet local dcoord = self.LasingDrone:GetCoordinate() local tcoord = task.Target:GetCoordinate() + tcoord.y = tcoord.y + 2 local dist = dcoord:Get2DDistance(tcoord) -- close enough? if dist < 3000 and not self.LasingDrone:IsLasing() then @@ -3192,7 +3193,7 @@ function PLAYERTASKCONTROLLER:_ActiveTaskInfo(Task, Group, Client) local islasing = self.LasingDrone:IsLasing() == true and yes or no local prectext = self.gettext:GetEntry("POINTERTARGETREPORT",self.locale) prectext = string.format(prectext,inreach,islasing) - text = text .. prectext + text = text .. prectext.."("..self.LaserCode..")" end end -- Buddylasing