

if(beastmode)
{
if(*(int*)0x3783D350 == 1)
*(int*)0x3783D350 = -5;
}
else
{
if(*(int*)0x3783D350 == -5)
*(int*)0x3783D350 = 1;
}
DWORD dwTmpPlayerStat = gFind.FindPattern( (DWORD)cvar.m_iCShell.lpBaseOfDll, cvar.m_iCShell.SizeOfImage, (PBYTE)"\x8B\x42\x00\x6A\x00\x8B\x00\xFF\x00\x0F\xB6\x00\x89\x4C", "xx?x?x?x?xx?xx")+0x12;//8B42??6A??8B??FF??0FB6??894C +12 ++0x30
DWORD dwPlayerStatus = NULL;
//in a loop or endscene:
if( dwPlayerStatus == NULL )
{
if( dwTmpPlayerStat > 0x12 )
{
//dwPlayerStatus = 0x37801CC4;//EU
//dwPlayerStatus = 0x37802C64;//NA
DWORD dwPtr = *(DWORD*)dwTmpPlayerStat;
dwPtr = *(DWORD*)dwPtr;
if( dwPtr )
{
dwPtr += 0x30;
dwPlayerStatus = dwPtr;
}
}
} else {
if( cvar.invisible.flValue )
{
if(*(long*) dwPlayerStatus == 1)
*(long*) dwPlayerStatus = - 5;
}else{
if(*(long*) dwPlayerStatus == -5)
*(long*) dwPlayerStatus = 1;
}
}
