bool CAimbot::IsEnable()
{
if (GetAsyncKeyState(Settings::Aimbot::aim_PanicKey) & 0x1)
{
m_pAim_KeyTrue2 = !m_pAim_KeyTrue2;
m_pAim_KeyTrueTime = GetTickCount64();
}
if (Settings::Aimbot::aim_OnKey && GetAsyncKeyState(Settings::Aimbot::aim_Key))
{
m_pAim_KeyTrue = true;
}
else
{
m_pAim_KeyTrue = false;
}
if (m_pAim_KeyTrue2)
return false;
if (Settings::Aimbot::aim_OnKey && !m_pAim_KeyTrue)
return false;
if (!m_pLocal || !m_pCmd)
return false;
if (!Settings::Aimbot::weapon_aim_settings[iWeaponID].aim_Active)
return false;
if (!m_pLocal->WeaponAmmo || m_pLocal->bInReload)
return false;
if (m_pLocal->WeaponType > WEAPON_TYPE_SNIPER)
return false;
if (g_pTriggerbot && g_pTriggerbot->bTriggerAttack)
return false;
return true;
}