#PLAYERTASK

* Speak "BR" as "Bee, Arr"
This commit is contained in:
Applevangelist 2022-08-20 09:45:09 +02:00
parent 8aec463eb4
commit f6b56735b6

View File

@ -830,7 +830,7 @@ do
-- INTERCEPTTS = "intercept", -- INTERCEPTTS = "intercept",
-- BOMBRUNWAYTTS = "bomb runway", -- BOMBRUNWAYTTS = "bomb runway",
-- HAVEACTIVETASK = "You already have one active task! Complete it first!", -- HAVEACTIVETASK = "You already have one active task! Complete it first!",
-- PILOTJOINEDTASK = "%s, pilot %s joined task %03d", -- PILOTJOINEDTASK = "%s, %s joined task %03d",
-- TASKNAME = "%s Task ID %03d", -- TASKNAME = "%s Task ID %03d",
-- TASKNAMETTS = "%s Task ID %03d", -- TASKNAMETTS = "%s Task ID %03d",
-- THREATHIGH = "high", -- THREATHIGH = "high",
@ -986,7 +986,7 @@ PLAYERTASKCONTROLLER.Messages = {
INTERCEPTTS = "intercept", INTERCEPTTS = "intercept",
BOMBRUNWAYTTS = "bomb runway", BOMBRUNWAYTTS = "bomb runway",
HAVEACTIVETASK = "You already have one active task! Complete it first!", HAVEACTIVETASK = "You already have one active task! Complete it first!",
PILOTJOINEDTASK = "%s, pilot %s joined task %03d", PILOTJOINEDTASK = "%s, %s joined task %03d",
TASKNAME = "%s Task ID %03d", TASKNAME = "%s Task ID %03d",
TASKNAMETTS = "%s Task ID %03d", TASKNAMETTS = "%s Task ID %03d",
THREATHIGH = "high", THREATHIGH = "high",
@ -1035,7 +1035,7 @@ PLAYERTASKCONTROLLER.Messages = {
INTERCEPTTS = "Abfangen", INTERCEPTTS = "Abfangen",
BOMBRUNWAYTTS = "Startbahn Bombardieren", BOMBRUNWAYTTS = "Startbahn Bombardieren",
HAVEACTIVETASK = "Du hast einen aktiven Auftrag! Beende ihn zuerst!", HAVEACTIVETASK = "Du hast einen aktiven Auftrag! Beende ihn zuerst!",
PILOTJOINEDTASK = "%s, Pilot %s hat Auftrag %03d angenommen", PILOTJOINEDTASK = "%s, %s hat Auftrag %03d angenommen",
TASKNAME = "%s Auftrag ID %03d", TASKNAME = "%s Auftrag ID %03d",
TASKNAMETTS = "%s Auftrag ID %03d", TASKNAMETTS = "%s Auftrag ID %03d",
THREATHIGH = "hoch", THREATHIGH = "hoch",
@ -1752,6 +1752,9 @@ function PLAYERTASKCONTROLLER:_ActiveTaskInfo(Group, Client)
clienttxt=string.gsub(clienttxt,", $",".") clienttxt=string.gsub(clienttxt,", $",".")
text = text .. clienttxt text = text .. clienttxt
if self.UseSRS then if self.UseSRS then
if string.find(CoordText," BR, ") then
CoordText = string.gsub(CoordText," BR, "," Bee, Arr, ")
end
local ThreatLocaleTextTTS = self.gettext:GetEntry("THREATTEXTTTS",self.locale) local ThreatLocaleTextTTS = self.gettext:GetEntry("THREATTEXTTTS",self.locale)
local ttstext = string.format(ThreatLocaleTextTTS,self.MenuName or self.Name,playername,ttstaskname,ThreatLevelText, targets, CoordText) local ttstext = string.format(ThreatLocaleTextTTS,self.MenuName or self.Name,playername,ttstaskname,ThreatLevelText, targets, CoordText)
--local ttstext = string.format("%s, %s. Target information for %s. Threat level %s. Targets left %d. Target location %s.",self.MenuName or self.Name,playername,ttstaskname,ThreatLevelText, targets, CoordText) --local ttstext = string.format("%s, %s. Target information for %s. Threat level %s. Targets left %d. Target location %s.",self.MenuName or self.Name,playername,ttstaskname,ThreatLevelText, targets, CoordText)