Skip to content

Commit

Permalink
Merge pull request #5 from mpchu/2b-chapter-11-1-mesh-fix
Browse files Browse the repository at this point in the history
Fixed 2B multi-mesh issue seen in chapter 11.1
  • Loading branch information
xxk-i authored Jan 9, 2024
2 parents 124df72 + 7398a34 commit 417670f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
}
Expand Down

0 comments on commit 417670f

Please sign in to comment.