mirror of
https://github.com/weyne85/DML.git
synced 2025-10-29 16:57:49 +00:00
Version 1.3.4
New Tacan Zone module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user