if (Menu::Window.VisualsTab.OtherNoVisualRecoil.GetState() && (DWORD)(_ReturnAddress()) == Offsets::Functions::dwCalcPlayerView)
if (Menu::Window.VisualsTab.OtherNoVisualRecoil.GetState() && (DWORD)(_ReturnAddress()) == Offsets::Functions::dwCalcPlayerView)
{
IClientEntity* pLocalEntity = NULL;
float* m_LocalViewAngles = NULL;
__asm
{
MOV pLocalEntity, ESI
MOV m_LocalViewAngles, EBX
}
Vector viewPunch = pLocalEntity->localPlayerExclusive()->GetViewPunchAngle();
Vector aimPunch = pLocalEntity->localPlayerExclusive()->GetAimPunchAngle();
m_LocalViewAngles[0] -= (viewPunch[0] + (aimPunch[0] * 2 * 0.4499999f));
m_LocalViewAngles[1] -= (viewPunch[1] + (aimPunch[1] * 2 * 0.4499999f));
m_LocalViewAngles[2] -= (viewPunch[2] + (aimPunch[2] * 2 * 0.4499999f));
return true;
}
return result;
}
