mirror of
https://github.com/iTracerFacer/Moose_DualCoalitionZoneCapture.git
synced 2026-08-23 19:45:19 +00:00
Wrong type of smoke marker added. Feature removed. Look into smoke effect instead.
This commit is contained in:
Binary file not shown.
@@ -290,9 +290,6 @@ local function SetupWarehouseEventHandlers()
|
|||||||
for _, warehouse in ipairs(allWarehouses) do
|
for _, warehouse in ipairs(allWarehouses) do
|
||||||
if warehouse then
|
if warehouse then
|
||||||
warehouse:HandleEvent(EVENTS.Dead, function(event)
|
warehouse:HandleEvent(EVENTS.Dead, function(event)
|
||||||
-- Add large smoke effect on destroyed warehouse
|
|
||||||
warehouse:Smoke(SMOKECOLOR.Red)
|
|
||||||
|
|
||||||
-- Remove markers for this warehouse from both coalitions
|
-- Remove markers for this warehouse from both coalitions
|
||||||
local name = warehouse:GetName()
|
local name = warehouse:GetName()
|
||||||
for _, coalition in ipairs({1, 2}) do
|
for _, coalition in ipairs({1, 2}) do
|
||||||
@@ -304,7 +301,7 @@ local function SetupWarehouseEventHandlers()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
env.info(string.format("[DGB PLUGIN] Warehouse %s destroyed - smoke applied, markers removed", name))
|
env.info(string.format("[DGB PLUGIN] Warehouse %s destroyed - markers removed", name))
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user