From 7398a34262d08aa1f26fb72ad23e47d297e1ed94 Mon Sep 17 00:00:00 2001 From: Matt Chu Date: Tue, 9 Jan 2024 00:19:19 -0800 Subject: [PATCH] Fixed 2B multi-mesh issue seen in chapter 11.1 --- dllmain.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dllmain.cpp b/dllmain.cpp index 2c3558f..6a78a02 100644 --- a/dllmain.cpp +++ b/dllmain.cpp @@ -708,9 +708,10 @@ __int64 __fastcall HkManageMeshVisibilites(NieR::PlayerModelInfo* pPlayerModelIn } else { - NieR::SetDrawBasePlayerMeshes((NieR::CModelWork*)(&pPlayerModelInfo->gap0[0x390]), 1); + // This section is entered when playing as 2B during chapter 11 if ((pPlayerModelInfo->dword178E0) == 0) { + NieR::SetDrawBasePlayerMeshes((NieR::CModelWork*)(&pPlayerModelInfo->gap0[0x390]), 1); SetMeshInvisible(pPlayerModelInfo, "Armor_Head"); SetMeshInvisible(pPlayerModelInfo, "DLC_Body"); SetMeshInvisible(pPlayerModelInfo, "DLC_Skirt"); @@ -736,7 +737,7 @@ __int64 __fastcall HkManageMeshVisibilites(NieR::PlayerModelInfo* pPlayerModelIn } else { - NieR::SetDrawBasePlayerMeshes((NieR::CModelWork*)(&pPlayerModelInfo->gap0[0x390]), 1); + NieR::SetDrawBasePlayerMeshes((NieR::CModelWork*)(&pPlayerModelInfo->gap0[0x390]), 0); SetMeshVisible(pPlayerModelInfo, "Armor_Body"); SetMeshVisible(pPlayerModelInfo, "Armor_Head"); }