Unlock All Mutants.
Code:
void unlockallmutants(bool Enabled,DWORD CShell)
{
//Offset GameUi
//AOB: 8B 81 ?? ?? ?? ?? 85 C0 74 50
//Offset NanoPVScreen
//AOB: 8B 8E ?? ?? ?? ?? 8B 01 8B 50 ?? FF D2 8B 8E ?? ?? ?? ?? 3B CB 74 05
//Offset Mutant
//AOB: 89 8C 87 ?? ?? ?? ?? 89 4C 24 10
//Address OpenMutantScreen
//AOB: 74 35 D9 05 ?? ?? ?? ?? C6 87 94 01 00 00 01
DWORD pLTClientShell = *(DWORD*)(CShell + aLTClientShell);
DWORD pGameUI = *(DWORD*)(pLTClientShell + oGameUi);
if (pGameUI)
{
DWORD pNanoPVScreen = *(DWORD*)(pGameUI + oNanoPVScreen);
if (pNanoPVScreen)
{
if (Enabled)
{
for (int x = 0; x <= 6; x++)
{
*(DWORD*)(pNanoPVScreen + oMutant + (4 * x)) = 1;
}
memcpy((void*)(CShell + aOpenMutantScreen), "\x90\x90", 2);
}
else
{
memcpy((void*)(CShell + aOpenMutantScreen), "\x74\x35", 2);
}
}
}
}


