the code you copied off ***** is outdated.
try this
Code:
void rcs(float* angles)
{
float MyPunch[2];
MyPunch[0] = local_player->getPunch()[0];
MyPunch[1] = local_player->getPunch()[1];
angles[0] = local_player->getAngles()[0] - (MyPunch[0] - old[0]) * 1.3f;
angles[1] = local_player->getAngles()[1] - (MyPunch[1] - old[1]) * 1.3f;
angles[2] = 0.0f;
engine->clampAngles(angles);
old[0] = MyPunch[0];
old[1] = MyPunch[1];
local_player->setAngles(angles);
Sleep(1);
}
Code:
float* CLocalPlayer::getPunch()
{
float punch[3];
ReadProcessMemory(mem->hProcess, (PBYTE*)(local + m_vecPunch), &punch, sizeof(float) * 3, 0);
return punch;
}
Code:
float* CLocalPlayer::getAngles()
{
float ang[3];
ReadProcessMemory(mem->hProcess, (PBYTE*)(getEnginePointer() + m_dwViewAngles), &ang, sizeof(float) * 3, 0);
return ang;
}
thats my code, go figure out your self how to add it to your own code.
its external btw.