diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 21:39:52 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 21:39:52 +0100 |
| commit | 385f5f2799c8b1e22603aee3b78fbf0fbf46607b (patch) | |
| tree | e035525f205507a3d91616dc66ada927f7ca0009 | |
| parent | Item ESP: raise max distance default to 5000 units (diff) | |
| download | hl2h-385f5f2799c8b1e22603aee3b78fbf0fbf46607b.tar.gz hl2h-385f5f2799c8b1e22603aee3b78fbf0fbf46607b.zip | |
Item ESP: always tag supply crates regardless of distance
Diffstat (limited to '')
| -rw-r--r-- | src/esp.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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) { | |||
| 1703 | if (idx == active_idx || item_weapon_is_owned(ent)) | 1703 | if (idx == active_idx || item_weapon_is_owned(ent)) |
| 1704 | continue; | 1704 | continue; |
| 1705 | } | 1705 | } |
| 1706 | if (g_item_max_dist > 0 && dist > (float)g_item_max_dist) | 1706 | // Crates are rare and always worth knowing about; the distance slider |
| 1707 | // filters the common ammo/health clutter. | ||
| 1708 | if (kind != IK_CRATE && g_item_max_dist > 0 && | ||
| 1709 | dist > (float)g_item_max_dist) | ||
| 1707 | continue; | 1710 | continue; |
| 1708 | 1711 | ||
| 1709 | ItemTarget &t = g_item_targets[g_nitems++]; | 1712 | ItemTarget &t = g_item_targets[g_nitems++]; |
