changes to targeting humans again
This commit is contained in:
parent
c72d96a714
commit
4df7bfd842
@ -712,8 +712,8 @@ public int GetClosestClient_option1(int targeteam, int client)
|
|||||||
dist_target += 7500;
|
dist_target += 7500;
|
||||||
else if (admins[i] || vips[i] || i == target_enemy[client])
|
else if (admins[i] || vips[i] || i == target_enemy[client])
|
||||||
dist_target /= 5;
|
dist_target /= 5;
|
||||||
if (i == targethuman[client])
|
if (i == targethuman[client] && dist_target < 500 && !is_bot_player(i))
|
||||||
dist_target /= 5;
|
return targethuman[client];
|
||||||
if (nearestdistance < 0 || dist_target < nearestdistance)
|
if (nearestdistance < 0 || dist_target < nearestdistance)
|
||||||
{
|
{
|
||||||
nearest = i;
|
nearest = i;
|
||||||
|
Loading…
Reference in New Issue
Block a user