Corrected prefered hitbox

This commit is contained in:
Julian Rowe 2017-05-05 17:00:50 -05:00
parent 5c18ff3675
commit 73d1ea732f

View File

@ -30,7 +30,7 @@ static CatVar ignore_hoovy(CV_SWITCH, "aimbot_ignore_hoovy", "0", "Ignore Hoovie
int ClosestHitbox(CachedEntity* target) {
//If you can see the spine, no need to check for another hitbox
if (target->m_pHitboxCache->VisibilityCheck(hitbox_t::pelvis)) return hitbox_t::pelvis;
if (target->m_pHitboxCache->VisibilityCheck(hitbox_t::spine_1)) return hitbox_t::spine_1;
int closest = -1;
float closest_fov = 256;
for (int i = 0; i < target->m_pHitboxCache->GetNumHitboxes(); i++) {