Skip to content

Commit

Permalink
A2 facial support
Browse files Browse the repository at this point in the history
  • Loading branch information
xxk-i committed Oct 26, 2022
1 parent 389b73e commit a8f1dc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ __int64 __fastcall HkManageMeshVisibilites(NieR::PlayerModelInfo* pPlayerModelIn
}


//A2
if (((pPlayerModelInfo->currentPlayer) != 0x10000 || ((pPlayerModelInfo->currentPlayer) == 0x10000 && (pPlayerModelInfo->dwordisDestructed) == 0)))
{
const char* extra = "";
Expand Down Expand Up @@ -659,22 +660,25 @@ __int64 __fastcall HkManageMeshVisibilites(NieR::PlayerModelInfo* pPlayerModelIn
set_mesh_invisible(pPlayerModelInfo, "Cloth");
set_mesh_invisible(pPlayerModelInfo, "DLC_Cloth");
set_mesh_invisible(pPlayerModelInfo, "NS_KIMONO_Cloth");
set_mesh_invisible(pPlayerModelInfo, "NS_2P_Cloth");
set_mesh_invisible(pPlayerModelInfo, "NS_P2_Cloth");
}
}

if ((pPlayerModelInfo->dwordisFacialNormal) == 1)
{
set_mesh_invisible(pPlayerModelInfo, "facial_normal");
set_mesh_invisible(pPlayerModelInfo, "NS_P2_Normal");
}

else
{
set_mesh_invisible(pPlayerModelInfo, "facial_serious");
set_mesh_invisible(pPlayerModelInfo, "NS_P2_Serious");
}
}
}

//9S
int temp_106 = (pPlayerModelInfo->currentPlayer);
const char* extra = "";
if (temp_106 == 0x10200 || temp_106 == 0x10203)
Expand Down

0 comments on commit a8f1dc4

Please sign in to comment.