Check preferred hitbox first in aimbot with backtrack

this is why i should not use old code
This commit is contained in:
BenCat07 2020-05-31 22:55:42 +02:00 committed by LightCat
parent a34416e9ec
commit d1eadb6999

View File

@ -1253,6 +1253,11 @@ int BestHitbox(CachedEntity *target)
if (data) if (data)
{ {
// First check preferred hitbox
if (IsEntityVectorVisible(target, (*data).hitboxes[preferred].center))
return preferred;
// Then check the rest
if (*backtrackVischeckAll) if (*backtrackVischeckAll)
for (int j = head; j < foot_R + 1; j++) for (int j = head; j < foot_R + 1; j++)
{ {