diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/esp.cpp | 4 | ||||
| -rw-r--r-- | src/hl2h.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/esp.cpp b/src/esp.cpp index e62c9b0..b29a0fb 100644 --- a/src/esp.cpp +++ b/src/esp.cpp | |||
| @@ -1680,7 +1680,7 @@ static void items_collect(int local_idx) { | |||
| 1680 | float dz = origin.z - g_cam_eye.z; | 1680 | float dz = origin.z - g_cam_eye.z; |
| 1681 | float dist = sqrtf(dx * dx + dy * dy + dz * dz); | 1681 | float dist = sqrtf(dx * dx + dy * dy + dz * dz); |
| 1682 | 1682 | ||
| 1683 | if (propish && prop_logs < 24) { | 1683 | if (propish && dist < 1500.0f && prop_logs < 40) { |
| 1684 | prop_logs++; | 1684 | prop_logs++; |
| 1685 | logf("item prop: idx=%d cls=%s model=%s kind=%d dist=%.0f " | 1685 | logf("item prop: idx=%d cls=%s model=%s kind=%d dist=%.0f " |
| 1686 | "origin=(%.0f %.0f %.0f)", | 1686 | "origin=(%.0f %.0f %.0f)", |
| @@ -1689,7 +1689,7 @@ static void items_collect(int local_idx) { | |||
| 1689 | } | 1689 | } |
| 1690 | bool crateish = item_icontains(cls, "crate") || | 1690 | bool crateish = item_icontains(cls, "crate") || |
| 1691 | item_icontains(model, "crate"); | 1691 | item_icontains(model, "crate"); |
| 1692 | if (crateish && crate_logs < 16) { | 1692 | if (crateish && dist < 1500.0f && crate_logs < 40) { |
| 1693 | crate_logs++; | 1693 | crate_logs++; |
| 1694 | logf("item crate seen: idx=%d cls=%s model=%s kind=%d dist=%.0f " | 1694 | logf("item crate seen: idx=%d cls=%s model=%s kind=%d dist=%.0f " |
| 1695 | "origin=(%.0f %.0f %.0f)", | 1695 | "origin=(%.0f %.0f %.0f)", |
diff --git a/src/hl2h.cpp b/src/hl2h.cpp index c51d35e..8c6b5db 100644 --- a/src/hl2h.cpp +++ b/src/hl2h.cpp | |||
| @@ -893,7 +893,7 @@ static void *setup_thread(void *) { | |||
| 893 | __attribute__((constructor)) static void hl2hake_load() { | 893 | __attribute__((constructor)) static void hl2hake_load() { |
| 894 | if (!is_hl2_process()) | 894 | if (!is_hl2_process()) |
| 895 | return; | 895 | return; |
| 896 | logf("loaded (pid %d)", getpid()); | 896 | logf("loaded (pid %d) build %s %s", getpid(), __DATE__, __TIME__); |
| 897 | pthread_t t; | 897 | pthread_t t; |
| 898 | if (pthread_create(&t, nullptr, setup_thread, nullptr) == 0) | 898 | if (pthread_create(&t, nullptr, setup_thread, nullptr) == 0) |
| 899 | pthread_detach(t); | 899 | pthread_detach(t); |
