Update comment on Aimbot changes

This commit is contained in:
Retarded-Skid 2017-07-13 18:49:49 -04:00
parent ce8412afb5
commit 48ea721a82

View File

@ -347,13 +347,12 @@ bool IsTargetStateGood(CachedEntity* entity) {
if (entity->m_flDistance > EffectiveTargetingRange()) return false;
}
IF_GAME (IsTF()) {
// If settings allow waiting for charge, and current charge cant kill target, dont aim
// If settings allow waiting for charge, and current charge cant kill target, dont aim unless at 100% and the player wants to fire at 100% anyways
if (wait_for_charge && g_pLocalPlayer->holding_sniper_rifle) {
if (!wait_for_charge_bypass || (wait_for_charge_bypass && g_pLocalPlayer->flZoomBegin <= 1.0f)) {
float bdmg = CE_FLOAT(g_pLocalPlayer->weapon(), netvar.flChargedDamage);
if (g_GlobalVars->curtime - g_pLocalPlayer->flZoomBegin <= 1.0f) bdmg = 50.0f;
if ((bdmg * 3) < (HasDarwins(entity) ? (entity->m_iHealth * 1.15) : entity->m_iHealth)) {
// If player has charge bypassing fire at 100% charge even if wont kill
return false;
}
}