Code:
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;
void cHacks::FixCamera(int iGhostMode,int iTeleKill ,int iHide)
{
if( !esp->local.bDead && iGhostMode || iTeleKill || iHide)
{
if(*(long*)ADDR_PLAYERSTATUS == 1)
*(long*)ADDR_PLAYERSTATUS = -5;
} else {
if(*(long*)ADDR_PLAYERSTATUS == -5)
*(long*)ADDR_PLAYERSTATUS = 1;
}
}
void cHacks::GhostMode(bool GhostMode)
{
if( !esp->local.bDead && GhostMode )
{
cPlayerMgr* pPlayerManager;
pPlayerManager= *(cPlayerMgr**)ADDR_PLAYERMANAGER;
float PlayerPitch = pPlayerManager->Pitch;
float PlayerYaw = pPlayerManager->Yaw;
bool Forward = (GetAsyncKeyState('I') & 0x8000) != 0;
bool Backward = (GetAsyncKeyState('K') & 0x8000) != 0;
bool Left = (GetAsyncKeyState('J') & 0x8000) != 0;
bool Right = (GetAsyncKeyState('L') & 0x8000) != 0;
if( Forward || Backward || Left || Right )
{
if( Forward || Backward )
{
float Sign = (Forward ? 1.0f : -1.0f);
Pos.x += Sign * 15.0f * sinf(PlayerYaw);
Pos.y += Sign * 15.0f * sinf(-PlayerPitch);
Pos.z += Sign * 15.0f * cosf(PlayerYaw);
}
if( Left )
{
Pos.x += 15.0f * sinf(PlayerYaw - (MATH_PI / 2.0f));
Pos.y += 0;
Pos.z += 15.0f * cosf(PlayerYaw - (MATH_PI / 2.0f));
}
if( Right )
{
Pos.x += 15.0f * sinf(PlayerYaw + (MATH_PI / 2.0f));
Pos.y += 0;
Pos.z += 15.0f * cosf(PlayerYaw + (MATH_PI / 2.0f));
}
}
SetarPosicaoLocal( Pos );
}
else if( !esp->local.bDead && GhostMode == 0 )
{
Pos = GetLocalPlayerPosition( Pos );
}
}
on present :
Code:
hacks->GhostMode(menu->cBox[150].OnOff);
hacks->FixCamera(menu->cBox[150].OnOff,menu->cBox[151].OnOff,menu->cBox[152].OnOff);
Credits :