From 58cb0118b4a889488659d9143829a14074ad0d80 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Tue, 19 Jul 2022 09:34:40 +0200 Subject: [PATCH] AWACS - added option for custom TTS callsigns --- Moose Development/Moose/Ops/Awacs.lua | 37 ++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/Moose Development/Moose/Ops/Awacs.lua b/Moose Development/Moose/Ops/Awacs.lua index 93a29dcca..9b9c14acb 100644 --- a/Moose Development/Moose/Ops/Awacs.lua +++ b/Moose Development/Moose/Ops/Awacs.lua @@ -252,7 +252,7 @@ do -- testawacs:SetAwacsDetails(CALLSIGN.AWACS.Wizard) -- -- And start as GCI using a group name "Blue EWR" as main EWR station -- testawacs:SetAsGCI(GROUP:FindByName("Blue EWR"),2) --- -- Set Custom Callsigns for use with TTS +-- -- Set Custom CAP Flight Callsigns for use with TTS -- testawacs:SetCustomCallsigns({ -- Devil = 'Bengal', -- Snake = 'Winder', @@ -866,7 +866,7 @@ function AWACS:New(Name,AirWing,Coalition,AirbaseName,AwacsOrbit,OpsZone,Station self.OrbitZone = ZONE:New(AwacsOrbit) -- Core.Zone#ZONE end self.BorderZone = nil - self.CallSign = CALLSIGN.AWACS.Darkstar -- #number + self.CallSign = CALLSIGN.AWACS.Magic -- #number self.CallSignNo = 1 -- #number self.NoHelos = true self.AIRequested = 0 @@ -1276,10 +1276,19 @@ function AWACS:ZipLip() return self end ---- [User] Replace ME callsigns with user-defined callsigns for use with TTS and on-screen messaging +--- [User] For CAP flights: Replace ME callsigns with user-defined callsigns for use with TTS and on-screen messaging -- @param #AWACS self --- @param #table table with DCS callsigns as keys and replacements as values +-- @param #table translationTable with DCS callsigns as keys and replacements as values -- @return #AWACS self +-- @usage +-- -- Set Custom CAP Flight Callsigns for use with TTS +-- testawacs:SetCustomCallsigns({ +-- Devil = 'Bengal', +-- Snake = 'Winder', +-- Colt = 'Camelot', +-- Enfield = 'Victory', +-- Uzi = 'Evil Eye' +-- }) function AWACS:SetCustomCallsigns(translationTable) self.callsignTranslations = translationTable end @@ -1615,6 +1624,26 @@ function AWACS:SetAwacsDetails(CallSign,CallSignNo,Angels,Speed,Heading,Leg) return self end +--- [User] Set AWACS custom callsigns for TTS +-- @param #AWACS self +-- @param #table CallsignTable Table of custom callsigns to use with TTS +-- @return #AWACS self +-- @usage +-- You can overwrite the standard AWACS callsign for TTS usage with your own naming, e.g. like so: +-- testawacs:SetCustomAWACSCallSign({ +-- [1]="Overlord", -- Overlord +-- [2]="Bookshelf", -- Magic +-- [3]="Wizard", -- Wizard +-- [4]="Focus", -- Focus +-- [5]="Darkstar", -- Darkstar +-- }) +-- The default callsign used in AWACS is "Magic". With the above change, the AWACS will call itself "Bookshelf" over TTS instead. +function AWACS:SetCustomAWACSCallSign(CallsignTable) + self:T(self.lid.."SetCustomAWACSCallSign") + self.CallSignClear = CallsignTable + return self +end + --- [User] Add a radar GROUP object to the INTEL detection SET_GROUP -- @param #AWACS self -- @param Wrapper.Group#GROUP Group The GROUP to be added. Can be passed as SET_GROUP.