changes to targeting humans again

This commit is contained in:
christian 2021-04-20 23:04:45 +02:00
parent c72d96a714
commit 4df7bfd842

View File

@ -712,8 +712,8 @@ public int GetClosestClient_option1(int targeteam, int client)
dist_target += 7500;
else if (admins[i] || vips[i] || i == target_enemy[client])
dist_target /= 5;
if (i == targethuman[client])
dist_target /= 5;
if (i == targethuman[client] && dist_target < 500 && !is_bot_player(i))
return targethuman[client];
if (nearestdistance < 0 || dist_target < nearestdistance)
{
nearest = i;