From 79669d9a6966417fc12220aef01c9877eb35f8f8 Mon Sep 17 00:00:00 2001 From: jojom4n Date: Sun, 18 Sep 2022 19:04:40 +0200 Subject: [PATCH] Make AWACS SRS talk as own coalition; Typo (#1784) * Make AWACS SRS talk as own coalition Set MSRS coalition to make AWACS talk only to its coalition, not to spectators * Typo SetModernEraAgressive() function should be SetModernEraAggressive() (two 'g') --- Moose Development/Moose/Ops/Awacs.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Ops/Awacs.lua b/Moose Development/Moose/Ops/Awacs.lua index 471301b5e..c2bd973c9 100644 --- a/Moose Development/Moose/Ops/Awacs.lua +++ b/Moose Development/Moose/Ops/Awacs.lua @@ -327,7 +327,7 @@ do -- * @{#AWACS.SetRadarBlur}() : Set the radar blur faktor in percent. -- * @{#AWACS.SetColdWar}() : Set to cold war - no fill-ins, no EPLRS, VID as standard. -- * @{#AWACS.SetModernEraDefensive}() : Set to modern, EPLRS, BVR/IFF engagement, fill-ins. --- * @{#AWACS.SetModernEraAgressive}() : Set to modern, EPLRS, BVR/IFF engagement, fill-ins. +-- * @{#AWACS.SetModernEraAggressive}() : Set to modern, EPLRS, BVR/IFF engagement, fill-ins. -- * @{#AWACS.SetPolicingModern}() : Set to modern, EPLRS, VID engagement, fill-ins. -- * @{#AWACS.SetPolicingColdWar}() : Set to cold war, no EPLRS, VID engagement, no fill-ins. -- * @{#AWACS.SetInterceptTimeline}() : Set distances for TAC, Meld and Threat range calls. @@ -1714,7 +1714,7 @@ end --- [User] Set AWACS to Modern Era standards - ROE to BVR, ROT to return fire. Radar blur 15%. -- @param #AWACS self -- @return #AWACS self -function AWACS:SetModernEraAgressive() +function AWACS:SetModernEraAggressive() self.ModernEra = true self.AwacsROT = AWACS.ROT.RETURNFIRE self.AwacsROE = AWACS.ROE.BVR @@ -1900,6 +1900,7 @@ function AWACS:SetSRS(PathToSRS,Gender,Culture,Port,Voice,Volume,PathToGoogleKey self.Volume = Volume or 1.0 self.AwacsSRS = MSRS:New(self.PathToSRS,self.MultiFrequency,self.MultiModulation,self.Volume) + self.AwacsSRS:SetCoalition(self.coalition) self.AwacsSRS:SetGender(self.Gender) self.AwacsSRS:SetCulture(self.Culture) self.AwacsSRS:SetVoice(self.Voice)