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
아 씨발 머리 깨지겠다...
짠새끼 존나 머하는놈이지 ㅅㅍ
이거 간략화할 방법은 없을까 형들...
갸아아악 구와아악
정신을 잃고 말았습니다...
니눈에서 간략화할꺼면 함수호출하셈 ㅎㅎ.
멀 이정도갖고 그러냐? 별로 복잡하지도 안구만
대박이네.-_-;;if조건을 같은걸 계속 체크를 계속 하고 있다..가장 먼저 중복되는 코드가 졸라 많다..extract method로 중복되는 코드부터 정리해야될듯..정리하고 순서대로 호출하면 될듯..근데 진짜 저런 조건에서 void return;까지 쓰면 만든넘도 모르겠다..저런건 만드는 순간만 돌아가는 코드임..
아 이때는 빠져나가되네..하면서 return;하고 이때는 이거가 아니면 else하면서 조건 추가하고..막 이지랄한거다..눈에 선하다..
땔깜이 짠 코드가 이렇게 해롭습니다
그림 그려보아요 그림 순서도
눈갱 오지네