Fixed charged shots not body aiming

This commit is contained in:
Julian Rowe 2017-05-05 16:31:24 -05:00
parent 2f8dbb3c2a
commit 5c18ff3675

View File

@ -606,7 +606,7 @@ int BestHitbox(CachedEntity* target) {
cdmg = (cdmg / 1.20) - 1; cdmg = (cdmg / 1.20) - 1;
} }
//If can headshot and if bodyshot kill from charge damage, or if crit boosted and they have 150 health, or if player isnt zoomed, or if the enemy has less than 40, due to darwins, and only if they have less than 150 health will it try to bodyshot //If can headshot and if bodyshot kill from charge damage, or if crit boosted and they have 150 health, or if player isnt zoomed, or if the enemy has less than 40, due to darwins, and only if they have less than 150 health will it try to bodyshot
if (CanHeadshot() && (cdmg > target->m_iHealth || IsPlayerCritBoosted(g_pLocalPlayer->entity) || !g_pLocalPlayer->bZoomed || target->m_iHealth < bdmg) && target->m_iHealth <= 150) { if (CanHeadshot() && (cdmg >= target->m_iHealth || IsPlayerCritBoosted(g_pLocalPlayer->entity) || !g_pLocalPlayer->bZoomed || target->m_iHealth <= bdmg) && target->m_iHealth <= 150) {
preferred = ClosestHitbox(target); preferred = ClosestHitbox(target);
headonly = false; headonly = false;
} }