This commit is contained in:
julianacat 2017-07-21 13:50:05 -05:00
parent 5ae97a724f
commit 094c684549

View File

@ -389,9 +389,8 @@ bool IsTargetStateGood(CachedEntity* entity) {
if (IsPlayerInvisible(entity))
cdmg = (cdmg * .80) - 1;
// Check if player will die from headshot or if target has more health than normal overheal allows.
if ( !(entity->m_iHealth <= 150 || entity->m_iHealth <= cdmg || !g_pLocalPlayer->bZoomed || entity->m_iHealth > entity->m_iMaxHealth + (entity->m_iMaxHealth * 0.5) || maxCharge && entity->m_iHealth > 450.0F) ) {
// Check if player will die from headshot or if target has more than 450 health and sniper has max chage
if ( !(entity->m_iHealth <= 150.0F || entity->m_iHealth <= cdmg || !g_pLocalPlayer->bZoomed || maxCharge && entity->m_iHealth > 450.0F) ) {
return false;
}
}