Merge branch 'FF/Ops' into FF/OpsDev

This commit is contained in:
Frank 2023-10-13 22:00:57 +02:00
commit ed23f11e4a
3 changed files with 33 additions and 4 deletions

View File

@ -6772,7 +6772,7 @@ function WAREHOUSE:_UnitDead(deadunit, deadgroup, request)
-- Dont trigger a Remove event for the group sets. -- Dont trigger a Remove event for the group sets.
local NoTriggerEvent=true local NoTriggerEvent=true
if not request.transporttype==WAREHOUSE.TransportType.SELFPROPELLED then if request.transporttype~=WAREHOUSE.TransportType.SELFPROPELLED then
--- ---
-- Complicated case: Dead unit could be: -- Complicated case: Dead unit could be:

View File

@ -2230,7 +2230,13 @@ function AUFTRAG:NewRECON(ZoneSet, Speed, Altitude, Adinfinitum, Randomly, Forma
mission:_TargetFromObject(ZoneSet) mission:_TargetFromObject(ZoneSet)
if ZoneSet:IsInstanceOf("SET_ZONE") then
mission.missionZoneSet = ZoneSet mission.missionZoneSet = ZoneSet
elseif ZoneSet:IsInstanceOf("ZONE_BASE") then
mission.missionZoneSet = SET_ZONE:New()
mission.missionZoneSet:AddZone(ZoneSet)
end
mission.missionTask=mission:GetMissionTaskforMissionType(AUFTRAG.Type.RECON) mission.missionTask=mission:GetMissionTaskforMissionType(AUFTRAG.Type.RECON)
@ -6699,8 +6705,6 @@ function AUFTRAG.CheckMissionCapabilityAll(MissionTypes, Capabilities)
return res return res
end end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

View File

@ -582,6 +582,17 @@ function MSRS:SetVoice(Voice)
return self return self
end end
--- Set to use a specific voice. Will override gender and culture settings.
-- @param #MSRS self
-- @param #string Voice Voice.
-- @return #MSRS self
function MSRS:SetDefaultVoice(Voice)
self.defaultVoice=Voice
return self
end
--- Set the coordinate from which the transmissions will be broadcasted. --- Set the coordinate from which the transmissions will be broadcasted.
-- @param #MSRS self -- @param #MSRS self
-- @param Core.Point#COORDINATE Coordinate Origin of the transmission. -- @param Core.Point#COORDINATE Coordinate Origin of the transmission.
@ -600,6 +611,20 @@ end
function MSRS:SetGoogle(PathToCredentials) function MSRS:SetGoogle(PathToCredentials)
self.google=PathToCredentials self.google=PathToCredentials
self.APIKey=PathToCredentials
self.provider = "gcloud"
return self
end
--- Use google text-to-speech.
-- @param #MSRS self
-- @param #string APIKey API Key, usually a string of length 40 with characters and numbers.
-- @return #MSRS self
function MSRS:SetGoogleAPIKey(APIKey)
self.APIKey=APIKey
self.provider = "gcloud"
return self return self
end end