@jtff/miztemplate-lib 3.4.14 → 3.4.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,6 @@ AirBossConfig = {
4
4
  srs = {
5
5
  useSRS = true,
6
6
  path = "C:\\SRS",
7
- port = 5002
8
7
  },
9
8
  carriername = 'CSG-1 CVN-71-1',
10
9
  alias = 'roosevelt',
@@ -68,7 +67,6 @@ AirBossConfig = {
68
67
  srs = {
69
68
  useSRS = true,
70
69
  path = "C:\\SRS",
71
- port = 5002
72
70
  },
73
71
  carriername = 'CSG-2 CVN-73',
74
72
  alias = 'washington',
@@ -6,7 +6,6 @@ TrainingRangeConfig = {
6
6
  srs = {
7
7
  useSRS = true,
8
8
  path = "C:\\SRS",
9
- port = 5002
10
9
  },
11
10
  instructionradio = {
12
11
  unitname = "toto",
@@ -1181,7 +1181,11 @@ for index, airbossconfig in ipairs(AirBossConfig) do
1181
1181
  objAirboss:SetCarrierControlledArea(airbossconfig.controlarea)
1182
1182
  objAirboss:SetStaticWeather(true)
1183
1183
  objAirboss:SetRespawnAI(false)
1184
- objAirboss:SetRecoveryCase(getCaseTypeFromWeather(nil, nil, nil))
1184
+ objAirboss:SetRecoveryCase(getCaseTypeFromWeather(
1185
+ objAirboss:GetCoordinate(),
1186
+ timer.getAbsTime(),
1187
+ timer.getAbsTime() + 60
1188
+ ))
1185
1189
  objAirboss:SetEmergencyLandings(true)
1186
1190
  objAirboss:SetMaxLandingPattern(airbossconfig.maxpatterns)
1187
1191
  objAirboss:SetMaxSectionSize(4)
@@ -44,7 +44,7 @@ for index, atisconfig in ipairs(AtisConfig) do
44
44
  end
45
45
  end
46
46
  if (atisconfig.srs) then
47
- objAtis:SetSRS(atisconfig.srs.path, "male", "en-US")
47
+ objAtis:SetSRS(atisconfig.srs.path, "male", "en-US", nil, serverSRSPort or 5002)
48
48
  end
49
49
  objAtis.customconfig = atisconfig
50
50
  ATISArray[compteur] = objAtis
@@ -20,7 +20,7 @@ for index, traingingrangeconfig in ipairs(TrainingRangeConfig) do
20
20
  trainingRange:SetTargetSheet(traingingrangeconfig.targetsheetpath)
21
21
  if ( type(traingingrangeconfig.srs) ~= nil ) then
22
22
  if ( traingingrangeconfig.srs.useSRS == true) then
23
- trainingRange:SetSRS(traingingrangeconfig.srs.path, traingingrangeconfig.srs.port, coalition.side.BLUE)
23
+ trainingRange:SetSRS(traingingrangeconfig.srs.path, serverSRSPort or 5002, coalition.side.BLUE)
24
24
  else
25
25
  trainingRange:SetSoundfilesPath(soundFilesPrefix .. 'RANGE/Range Soundfiles/')
26
26
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.4.14",
3
+ "version": "3.4.16",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [