#FG - let planes not limp around

This commit is contained in:
Applevangelist 2022-12-31 18:02:15 +01:00
parent 0340d17ab8
commit b769568df1

View File

@ -943,7 +943,7 @@ function FLIGHTGROUP:Status()
local DCSTask=mission:GetDCSMissionTask() --DCS#Task local DCSTask=mission:GetDCSMissionTask() --DCS#Task
-- Get task. -- Get task.
local Task=mission:GetGroupWaypointTask(self) local Task=self:GetTaskByID(mission.auftragsnummer)
-- Reset current orbit task. -- Reset current orbit task.
self.controller:resetTask() self.controller:resetTask()
@ -3773,9 +3773,16 @@ function FLIGHTGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Altitud
-- Set waypoint index. -- Set waypoint index.
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID) local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
-- Speed in knots. -- Speed in knots.
Speed=Speed or self:GetSpeedCruise() if not Speed or Speed < 10 then
local mission = self:GetMissionCurrent() -- Ops.Auftrag#AUFTRAG
local speed = mission.missionSpeed
Speed = speed or self:GetSpeedCruise()
end
--Speed=Speed or self:GetSpeedCruise()
-- Alt type default is barometric (ASL). For helos we use radar (AGL). -- Alt type default is barometric (ASL). For helos we use radar (AGL).
local alttype=COORDINATE.WaypointAltType.BARO local alttype=COORDINATE.WaypointAltType.BARO