From 6cf06d42d9c8e33cd620f37c605f6b75f760710d Mon Sep 17 00:00:00 2001 From: David Vogel Date: Tue, 19 Jul 2022 18:27:31 +0200 Subject: [PATCH] Remove CameraBoundComponent from entites --- files/capture.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/capture.lua b/files/capture.lua index 7cf1253..ff992d0 100644 --- a/files/capture.lua +++ b/files/capture.lua @@ -42,6 +42,7 @@ local componentTypeNamesToDisable = { "CharacterPlatformingComponent", "WormComponent", "WormAIComponent", + "CameraBoundComponent", -- Disabling this component will prevent entites from being killed/reset when they go offscreen. If they are reset, the "MapCaptured" tag will be gone and we capture these entities multiple times. This has some side effects, like longleg.xml and zombie_weak.xml will respawn every revisit, as the spawner doesn't get deleted. --"PhysicsBodyCollisionDamageComponent", --"ExplodeOnDamageComponent", --"DamageModelComponent", @@ -83,7 +84,7 @@ local function captureEntities(entityFile, x, y, radius) local rootEntity = entity:GetRootEntity() -- Make sure to only export entities when they are encountered the first time. if not rootEntity:HasTag("MapCaptured") then - --print(rootEntity:GetFilename()) + --print(rootEntity:GetFilename(), "got captured!") -- Some hacky way to generate valid JSON that doesn't break when the game crashes. -- Well, as long as it does not crash between write and flush.