void tAimbot::tAimbotFunctions::Tick()

{

if (pGlobalVars.AimbotSettings.Enabled)

{

if (GetAsyncKeyState(pGlobalVars.AimbotSettings.ActivationKey) < 0)

{

pLocalPlayerEntity.Functions.GetLocalPlayerEntityInfo(&pAimbot.LocalPlayerEntityInfo);

if (pAimbot.LocalPlayerEntityInfo.Valid && pAimbot.LocalPlayerEntityInfo.ShotsFired >= pGlobalVars.AimbotSettings.IgnoreShotCount)

{

if (pAimbot.CurrentTargetIndex != -1)

{

pGeneralPlayerEntity.Functions.GetGeneralPlayerEntityInfo(&pAimbot.GeneralPlayerEntityInfo, pAimbot.CurrentTargetIndex);

if (pAimbot.GeneralPlayerEntityInfo.Valid && pAimbot.GeneralPlayerEntityInfo.TeamNumber != pAimbot.LocalPlayerEntityInfo.TeamNumber)

{

if (!pGlobalVars.AimbotSettings.TargetJumpingPlayers && pGeneralPlayerEntity.Functions.IsJumping(pAimbot.GeneralPlayerEntityInfo.Flags))

{

return;

}

if (pGlobalVars.AimbotSettings.EnableTimeout && pAimbot.Timer > pGlobalVars.AimbotSettings.Timeout)

{

return;

}

if (pGlobalVars.AimbotSettings.EnableFire && !(GetAsyncKeyState(VK_LBUTTON) < 0))

{

mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);

}

float YawRecoilReductionFactor, PitchRecoilReductionFactor;

if (pGlobalVars.AimbotSettings.EnableRandomYawRecoilReductionFactor)

{

YawRecoilReductionFactor = GetRandomFloat(pGlobalVars.AimbotSettings.MinRandomYaw, pGlobalVars.AimbotSettings.MaxRandomYaw);

}

else

{

YawRecoilReductionFactor = pGlobalVars.AimbotSettings.StaticYaw;

}

if (pGlobalVars.AimbotSettings.EnableRandomPitchRecoilReductionFactor)

{

PitchRecoilReductionFactor = GetRandomFloat(pGlobalVars.AimbotSettings.MinRandomPitch, pGlobalVars.AimbotSettings.MaxRandomPitch);

}

else

{

PitchRecoilReductionFactor = pGlobalVars.AimbotSettings.StaticPitch;

}

pLocalPlayerEntity.Functions.SetViewAngle(pAimbot.LocalPlayerEntityInfo.ClientStateBaseAddress, pGlobalVars.Offsets.m_dwViewAngle, SmoothAngle(pAimbot.LocalPlayerEntityInfo.ViewAngle, CalcAngle(pAimbot.LocalPlayerEntityInfo.Origin, pGeneralPlayerEntity.Functions.GetBonePosition(&pAimbot.GeneralPlayerEntityInfo.BoneMatrix, pGlobalVars.AimbotSettings.TargetBone), pAimbot.LocalPlayerEntityInfo.PunchAngle, pAimbot.LocalPlayerEntityInfo.ViewOffset, YawRecoilReductionFactor, PitchRecoilReductionFactor), pGlobalVars.AimbotSettings.SmoothPercent - (pAimbot.Timer / 100.f)));

pAimbot.Timer++;

return;

}

else

{

pAimbot.Timer = 0.f;

pLocalPlayerEntity.Functions.GetLocalPlayerEntityInfo(&pAimbot.LocalPlayerEntityInfo);

pAimbot.CurrentTargetIndex = GetNewTarget();

}

}

else

{

pAimbot.Timer = 0.f;

pLocalPlayerEntity.Functions.GetLocalPlayerEntityInfo(&pAimbot.LocalPlayerEntityInfo);

pAimbot.CurrentTargetIndex = GetNewTarget();

}


}

}

else

{

if (pGlobalVars.AimbotSettings.EnableFire && GetAsyncKeyState(VK_LBUTTON) < 0)

{

mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);

}

pAimbot.Timer = 0.f;

pAimbot.CurrentTargetIndex = -1;

}

}

}


if if if if if if if


아 씨발 머리 깨지겠다...

짠새끼 존나 머하는놈이지 ㅅㅍ

이거 간략화할 방법은 없을까 형들...