diff --git a/DataSpec/DNAMP1/ScriptObjects/DoorArea.hpp b/DataSpec/DNAMP1/ScriptObjects/DoorArea.hpp index 73b7ecc93..415a9d405 100644 --- a/DataSpec/DNAMP1/ScriptObjects/DoorArea.hpp +++ b/DataSpec/DNAMP1/ScriptObjects/DoorArea.hpp @@ -20,11 +20,11 @@ struct DoorArea : IScriptObject Value orbitPos; Value collisionExtent; Value collisionOffset; - Value unknown4; - Value unknown5; - Value unknown6; - Value unknown7; - Value unknown8; + Value active; + Value open; + Value projectilesCollide; + Value animationLength; + Value isMorphballDoor; void addCMDLRigPairs(PAKRouter& pakRouter, std::unordered_map>& addTo) const diff --git a/Runtime/World/ScriptLoader.cpp b/Runtime/World/ScriptLoader.cpp index 1f345c559..787767ce2 100644 --- a/Runtime/World/ScriptLoader.cpp +++ b/Runtime/World/ScriptLoader.cpp @@ -481,7 +481,7 @@ CEntity* ScriptLoader::LoadDoor(CStateManager& mgr, CInputStream& in, int propCo bool active = in.readBool(); bool open = in.readBool(); - bool b3 = in.readBool(); + bool projectilesCollide = in.readBool(); float animationLength = in.readFloatBig(); zeus::CAABox aabb = GetCollisionBox(mgr, info.GetAreaId(), collisionExtent, offset); @@ -504,7 +504,7 @@ CEntity* ScriptLoader::LoadDoor(CStateManager& mgr, CInputStream& in, int propCo isMorphballDoor = in.readBool(); return new CScriptDoor(mgr.AllocateUniqueId(), head.x0_name, info, head.x10_transform, std::move(mData), actParms, - orbitPos, aabb, active, open, b3, animationLength, isMorphballDoor); + orbitPos, aabb, active, open, projectilesCollide, animationLength, isMorphballDoor); } CEntity* ScriptLoader::LoadTrigger(CStateManager& mgr, CInputStream& in, int propCount, const CEntityInfo& info)