@jtff/miztemplate-lib 3.4.7 → 3.4.9

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,9 @@ function startCapWarZone(objCapWarZone)
77
78
  UTILS.FeetToMeters(20000)
78
79
  )
79
80
  end
81
+ if ( (capsqnconfig.overhead or 0 ) > 0) then
82
+ objCapWarZone.objDispatcher:SetSquadronOverhead(CAPSquadronName, capsqnconfig.overhead)
83
+ end
80
84
  function objCapWarZone.objDispatcher:OnEventBirth(eventData)
81
85
  local unit = UNIT:Find(eventData.initiator)
82
86
  if (objCapWarZone.customconfig.fireRange) then
@@ -162,6 +166,9 @@ function startCapWarZone(objCapWarZone)
162
166
  )
163
167
  end
164
168
  jtff_log.info(string.format("Assigned Squadron %s to GCI mission...", interceptSquadronName),"CAP_WAR_ZONE")
169
+ if ( ( interceptsqnconfig.overhead or 0 ) > 0) then
170
+ objCapWarZone.objDispatcher:SetSquadronOverhead(interceptSquadronName, interceptsqnconfig.overhead)
171
+ end
165
172
  objCapWarZone.objDispatcher:SetSquadronGci(
166
173
  interceptSquadronName,
167
174
  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.9",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [