diff options
Diffstat (limited to '')
| -rw-r--r-- | src/esp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/esp.cpp b/src/esp.cpp index 3db25e6..5683704 100644 --- a/src/esp.cpp +++ b/src/esp.cpp | |||
| @@ -541,7 +541,7 @@ static bool select_aim_target(const QAngle &view, unsigned bone_mask, | |||
| 541 | continue; | 541 | continue; |
| 542 | if (f >= best) | 542 | if (f >= best) |
| 543 | continue; | 543 | continue; |
| 544 | if (vischeck && !is_visible(g_cam_eye, pts[i])) | 544 | if (vischeck && !is_visible(g_cam_eye, pts[i], local_ent, ent)) |
| 545 | continue; | 545 | continue; |
| 546 | best = f; | 546 | best = f; |
| 547 | best_pt = pts[i]; | 547 | best_pt = pts[i]; |
| @@ -1061,7 +1061,7 @@ bool melee_aimbot_apply(CUserCmd *cmd) { | |||
| 1061 | float pd = vec_dist(g_cam_eye, pts[i]); | 1061 | float pd = vec_dist(g_cam_eye, pts[i]); |
| 1062 | if (pd > MELEE_RANGE || pd >= bestd) | 1062 | if (pd > MELEE_RANGE || pd >= bestd) |
| 1063 | continue; | 1063 | continue; |
| 1064 | if (!is_visible(g_cam_eye, pts[i])) | 1064 | if (!is_visible(g_cam_eye, pts[i], local_ent, tent)) |
| 1065 | continue; | 1065 | continue; |
| 1066 | bestd = pd; | 1066 | bestd = pd; |
| 1067 | aim = pts[i]; | 1067 | aim = pts[i]; |
| @@ -1083,7 +1083,7 @@ bool melee_aimbot_apply(CUserCmd *cmd) { | |||
| 1083 | if (ad > MELEE_RANGE) | 1083 | if (ad > MELEE_RANGE) |
| 1084 | aim = c.closest; | 1084 | aim = c.closest; |
| 1085 | } | 1085 | } |
| 1086 | if (!is_visible(g_cam_eye, aim)) | 1086 | if (!is_visible(g_cam_eye, aim, local_ent, tent)) |
| 1087 | continue; | 1087 | continue; |
| 1088 | } | 1088 | } |
| 1089 | 1089 | ||
