mirror of https://github.com/AxioDL/metaforce.git
COmegaPirate: MSVC runtime fix for skeleton asset IDs
This commit is contained in:
parent
ab01cb5f1a
commit
8d2d5ef5d5
|
@ -120,10 +120,11 @@ void COmegaPirate::CFlash::Render(CStateManager& mgr) {
|
|||
|
||||
COmegaPirate::COmegaPirate(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
|
||||
CModelData&& mData, const CPatternedInfo& pInfo, const CActorParameters& actParms,
|
||||
CElitePirateData data, CAssetId w1, CAssetId w2, CAssetId w3)
|
||||
CElitePirateData data, CAssetId skeletonModelId, CAssetId skeletonSkinRulesId,
|
||||
CAssetId skeletonLayoutInfoId)
|
||||
: CElitePirate(uid, name, info, xf, std::move(mData), pInfo, actParms, data)
|
||||
, x9d0_initialScale(GetModelData()->GetScale())
|
||||
, x9f0_skeletonModel(*g_SimplePool, w1, w2, w3, 0, 0)
|
||||
, x9f0_skeletonModel(*g_SimplePool, skeletonModelId, skeletonSkinRulesId, skeletonLayoutInfoId, 0, 0)
|
||||
, xb70_thermalSpot(g_SimplePool->GetObj("Thermal_Spot_2"sv)) {
|
||||
x9a4_scriptWaypointPlatforms.reserve(3);
|
||||
x9b8_scriptEffects.reserve(24);
|
||||
|
|
|
@ -122,7 +122,7 @@ private:
|
|||
public:
|
||||
COmegaPirate(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
|
||||
CModelData&& mData, const CPatternedInfo& pInfo, const CActorParameters& actParms, CElitePirateData data,
|
||||
CAssetId w1, CAssetId w2, CAssetId w3);
|
||||
CAssetId skeletonModelId, CAssetId skeletonSkinRulesId, CAssetId skeletonLayoutInfoId);
|
||||
|
||||
void Think(float dt, CStateManager& mgr) override;
|
||||
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) override;
|
||||
|
|
|
@ -3659,11 +3659,14 @@ CEntity* ScriptLoader::LoadOmegaPirate(CStateManager& mgr, CInputStream& in, int
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
const CAssetId skeletonModelId{in};
|
||||
const CAssetId skeletonSkinRulesId{in};
|
||||
const CAssetId skeletonLayoutInfoId{in};
|
||||
CModelData mData(CAnimRes(pInfo.GetAnimationParameters().GetACSFile(), pInfo.GetAnimationParameters().GetCharacter(),
|
||||
actHead.x40_scale, pInfo.GetAnimationParameters().GetInitialAnimation(), true));
|
||||
|
||||
return new MP1::COmegaPirate(mgr.AllocateUniqueId(), actHead.x0_name, info, actHead.x10_transform, std::move(mData),
|
||||
pInfo, actParms, elitePirateData, CAssetId(in), CAssetId(in), CAssetId(in));
|
||||
pInfo, actParms, elitePirateData, skeletonModelId, skeletonSkinRulesId,
|
||||
skeletonLayoutInfoId);
|
||||
}
|
||||
|
||||
CEntity* ScriptLoader::LoadPhazonPool(CStateManager& mgr, CInputStream& in, int propCount, const CEntityInfo& info) {
|
||||
|
|
Loading…
Reference in New Issue