From 385f5f2799c8b1e22603aee3b78fbf0fbf46607b Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 27 Oct 2026 21:39:52 +0100 Subject: Item ESP: always tag supply crates regardless of distance --- src/esp.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/esp.cpp') diff --git a/src/esp.cpp b/src/esp.cpp index 9b75c80..e62c9b0 100644 --- a/src/esp.cpp +++ b/src/esp.cpp @@ -1703,7 +1703,10 @@ static void items_collect(int local_idx) { if (idx == active_idx || item_weapon_is_owned(ent)) continue; } - if (g_item_max_dist > 0 && dist > (float)g_item_max_dist) + // Crates are rare and always worth knowing about; the distance slider + // filters the common ammo/health clutter. + if (kind != IK_CRATE && g_item_max_dist > 0 && + dist > (float)g_item_max_dist) continue; ItemTarget &t = g_item_targets[g_nitems++]; -- cgit v1.2.3