Corrected prefered hitbox
This commit is contained in:
parent
5c18ff3675
commit
73d1ea732f
@ -30,7 +30,7 @@ static CatVar ignore_hoovy(CV_SWITCH, "aimbot_ignore_hoovy", "0", "Ignore Hoovie
|
|||||||
|
|
||||||
int ClosestHitbox(CachedEntity* target) {
|
int ClosestHitbox(CachedEntity* target) {
|
||||||
//If you can see the spine, no need to check for another hitbox
|
//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;
|
int closest = -1;
|
||||||
float closest_fov = 256;
|
float closest_fov = 256;
|
||||||
for (int i = 0; i < target->m_pHitboxCache->GetNumHitboxes(); i++) {
|
for (int i = 0; i < target->m_pHitboxCache->GetNumHitboxes(); i++) {
|
||||||
|
Reference in New Issue
Block a user