mirror of https://github.com/AxioDL/metaforce.git
Fill in remaining door properties
This commit is contained in:
parent
1ada86cc03
commit
3ceaa82035
|
@ -20,11 +20,11 @@ struct DoorArea : IScriptObject
|
||||||
Value<atVec3f> orbitPos;
|
Value<atVec3f> orbitPos;
|
||||||
Value<atVec3f> collisionExtent;
|
Value<atVec3f> collisionExtent;
|
||||||
Value<atVec3f> collisionOffset;
|
Value<atVec3f> collisionOffset;
|
||||||
Value<bool> unknown4;
|
Value<bool> active;
|
||||||
Value<bool> unknown5;
|
Value<bool> open;
|
||||||
Value<bool> unknown6;
|
Value<bool> projectilesCollide;
|
||||||
Value<float> unknown7;
|
Value<float> animationLength;
|
||||||
Value<bool> unknown8;
|
Value<bool> isMorphballDoor;
|
||||||
|
|
||||||
void addCMDLRigPairs(PAKRouter<PAKBridge>& pakRouter,
|
void addCMDLRigPairs(PAKRouter<PAKBridge>& pakRouter,
|
||||||
std::unordered_map<UniqueID32, std::pair<UniqueID32, UniqueID32>>& addTo) const
|
std::unordered_map<UniqueID32, std::pair<UniqueID32, UniqueID32>>& addTo) const
|
||||||
|
|
|
@ -481,7 +481,7 @@ CEntity* ScriptLoader::LoadDoor(CStateManager& mgr, CInputStream& in, int propCo
|
||||||
|
|
||||||
bool active = in.readBool();
|
bool active = in.readBool();
|
||||||
bool open = in.readBool();
|
bool open = in.readBool();
|
||||||
bool b3 = in.readBool();
|
bool projectilesCollide = in.readBool();
|
||||||
float animationLength = in.readFloatBig();
|
float animationLength = in.readFloatBig();
|
||||||
|
|
||||||
zeus::CAABox aabb = GetCollisionBox(mgr, info.GetAreaId(), collisionExtent, offset);
|
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();
|
isMorphballDoor = in.readBool();
|
||||||
|
|
||||||
return new CScriptDoor(mgr.AllocateUniqueId(), head.x0_name, info, head.x10_transform, std::move(mData), actParms,
|
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)
|
CEntity* ScriptLoader::LoadTrigger(CStateManager& mgr, CInputStream& in, int propCount, const CEntityInfo& info)
|
||||||
|
|
Loading…
Reference in New Issue