@jtff/miztemplate-lib 3.4.7 → 3.4.8

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.
@@ -42,6 +42,7 @@ function startCapWarZone(objCapWarZone)
42
42
  15*60,
43
43
  45*60
44
44
  )
45
+ objCapWarZone.objDispatcher:SetDefaultOverhead(objCapWarZone.customconfig.overhead or 1)
45
46
  for indexbase, capbaseconfig in ipairs(objCapWarZone.customconfig.CAPBases) do
46
47
  jtff_log.info(string.format("Activating all Squadrons stationed at %s...", capbaseconfig.baseName),"CAP_WAR_ZONE")
47
48
  for indexcapsqn, capsqnconfig in ipairs(capbaseconfig.patrolSquadrons) do
@@ -77,6 +78,10 @@ function startCapWarZone(objCapWarZone)
77
78
  UTILS.FeetToMeters(20000)
78
79
  )
79
80
  end
81
+ if ( capsqnconfig.overhead > 0) then
82
+ objCapWarZone.objDispatcher:SetSquadronOverhead(CAPSquadronName, capsqnconfig.overhead)
83
+ end
84
+ objCapWarZone.objDispatcher:SetSquadronOverhead(CAPSquadronName, capsqnconfig.overhead or 1)
80
85
  function objCapWarZone.objDispatcher:OnEventBirth(eventData)
81
86
  local unit = UNIT:Find(eventData.initiator)
82
87
  if (objCapWarZone.customconfig.fireRange) then
@@ -162,6 +167,9 @@ function startCapWarZone(objCapWarZone)
162
167
  )
163
168
  end
164
169
  jtff_log.info(string.format("Assigned Squadron %s to GCI mission...", interceptSquadronName),"CAP_WAR_ZONE")
170
+ if ( interceptsqnconfig.overhead > 0) then
171
+ objCapWarZone.objDispatcher:SetSquadronOverhead(interceptSquadronName, interceptsqnconfig.overhead)
172
+ end
165
173
  objCapWarZone.objDispatcher:SetSquadronGci(
166
174
  interceptSquadronName,
167
175
  UTILS.KnotsToKmph(objCapWarZone.customconfig.capParameters.minEngageSpeed) or UTILS.KnotsToKmph(200),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.4.7",
3
+ "version": "3.4.8",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [