Version 1.3.4

New Tacan Zone module
This commit is contained in:
Christian Franz
2023-07-06 13:18:45 +02:00
parent 3f0de87b07
commit a231673292
7 changed files with 647 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
cloneZones = {}
cloneZones.version = "1.7.1"
cloneZones.version = "1.7.3"
cloneZones.verbose = false
cloneZones.requiredLibs = {
"dcsCommon", -- always
@@ -94,6 +94,8 @@ cloneZones.respawnOnGroupID = true
1.7.1 - useDelicates handOff for delicates
- forcedRespawn passes zone instead of verbose
1.7.2 - onPerimeter attribute
1.7.3 - declutter option
--]]--
@@ -256,6 +258,9 @@ function cloneZones.createClonerWithZone(theZone) -- has "Cloner"
end
end
-- declutter
theZone.declutter = cfxZones.getBoolFromZoneProperty(theZone, "declutter", false)
-- watchflags
theZone.cloneTriggerMethod = cfxZones.getStringFromZoneProperty(theZone, "triggerMethod", "change")
@@ -1543,6 +1548,14 @@ function cloneZones.spawnWithCloner(theZone)
cloneZones.invokeCallbacks(theZone, "wiped", {})
end
-- declutter?
if theZone.declutter then
cfxZones.declutterZone(theZone)
if theZone.verbose then
trigger.action.outText("+++clnZ: cloner <" .. theZone.name .. "> declutter complete.", 30)
end
end
local theClones, theStatics = cloneZones.spawnWithTemplateForZone(templateZone, theZone)
-- reset hasClones so we know our spawns are full and we can
-- detect complete destruction