diff options
| -rw-r--r-- | src/esp.cpp | 5 | ||||
| -rw-r--r-- | src/hl2h.cpp | 6 | ||||
| -rw-r--r-- | src/menu.cpp | 15 |
3 files changed, 0 insertions, 26 deletions
diff --git a/src/esp.cpp b/src/esp.cpp index 40e00f6..405dea7 100644 --- a/src/esp.cpp +++ b/src/esp.cpp | |||
| @@ -932,11 +932,6 @@ static float vec_dist(const Vector &a, const Vector &b) { | |||
| 932 | bool melee_weapon_active(void *local_ent) { | 932 | bool melee_weapon_active(void *local_ent) { |
| 933 | if (!local_ent) | 933 | if (!local_ent) |
| 934 | return false; | 934 | return false; |
| 935 | static bool enter_logged = false; | ||
| 936 | if (!enter_logged) { | ||
| 937 | enter_logged = true; | ||
| 938 | logf("melee: enter"); | ||
| 939 | } | ||
| 940 | int local = engine_get_local_player(); | 935 | int local = engine_get_local_player(); |
| 941 | if (g_iface.engineserver) | 936 | if (g_iface.engineserver) |
| 942 | resolve_server_netvars(); | 937 | resolve_server_netvars(); |
diff --git a/src/hl2h.cpp b/src/hl2h.cpp index 84f9d0d..375cd5a 100644 --- a/src/hl2h.cpp +++ b/src/hl2h.cpp | |||
| @@ -584,7 +584,6 @@ static void do_move(int seq, float frametime) { | |||
| 584 | aimbot_reset_lock(); | 584 | aimbot_reset_lock(); |
| 585 | silentaim_reset_lock(); | 585 | silentaim_reset_lock(); |
| 586 | fullbright_invalidate(); | 586 | fullbright_invalidate(); |
| 587 | logf("do_move: post-local"); | ||
| 588 | } | 587 | } |
| 589 | 588 | ||
| 590 | if (feature_active(FEAT_SPREAD)) { | 589 | if (feature_active(FEAT_SPREAD)) { |
| @@ -697,12 +696,7 @@ static void do_move(int seq, float frametime) { | |||
| 697 | if (jumpbug_apply(cmd, localIdx, ent, flags, vel, frametime)) | 696 | if (jumpbug_apply(cmd, localIdx, ent, flags, vel, frametime)) |
| 698 | note_modified(cmd, flags, vel); | 697 | note_modified(cmd, flags, vel); |
| 699 | 698 | ||
| 700 | static bool melee_logged = false; | ||
| 701 | bool melee = feature_active(FEAT_MELEE) && melee_weapon_active(ent); | 699 | bool melee = feature_active(FEAT_MELEE) && melee_weapon_active(ent); |
| 702 | if (!melee_logged) { | ||
| 703 | melee_logged = true; | ||
| 704 | logf("do_move: after melee check (crowbar=%d)", (int)melee); | ||
| 705 | } | ||
| 706 | 700 | ||
| 707 | if (!feature_active(FEAT_AIMBOT) || !feature_has_bind(FEAT_AIMBOT) || melee) | 701 | if (!feature_active(FEAT_AIMBOT) || !feature_has_bind(FEAT_AIMBOT) || melee) |
| 708 | aimbot_reset_lock(); | 702 | aimbot_reset_lock(); |
diff --git a/src/menu.cpp b/src/menu.cpp index e48fee0..9a249f8 100644 --- a/src/menu.cpp +++ b/src/menu.cpp | |||
| @@ -699,24 +699,9 @@ void fullbright_update() { | |||
| 699 | // (see hkdDrawPrintText hook in hl2h.cpp): we wrap our draws in | 699 | // (see hkdDrawPrintText hook in hl2h.cpp): we wrap our draws in |
| 700 | // PushMakeCurrent/PopMakeCurrent so they are submitted with a clean clip. | 700 | // PushMakeCurrent/PopMakeCurrent so they are submitted with a clean clip. |
| 701 | void outer_draw() { | 701 | void outer_draw() { |
| 702 | static bool outer_enter = false; | ||
| 703 | if (!outer_enter) { | ||
| 704 | outer_enter = true; | ||
| 705 | logf("outer_draw: enter"); | ||
| 706 | } | ||
| 707 | poll_keyboard(); | 702 | poll_keyboard(); |
| 708 | fullbright_update(); | 703 | fullbright_update(); |
| 709 | static bool fb_done = false; | ||
| 710 | if (!fb_done) { | ||
| 711 | fb_done = true; | ||
| 712 | logf("outer_draw: after fullbright"); | ||
| 713 | } | ||
| 714 | gui_handle_input(); | 704 | gui_handle_input(); |
| 715 | static bool gui_done = false; | ||
| 716 | if (!gui_done) { | ||
| 717 | gui_done = true; | ||
| 718 | logf("outer_draw: after gui input"); | ||
| 719 | } | ||
| 720 | // HL2H_DRAW_TEST=1 draws a probe rect without needing the GUI open | 705 | // HL2H_DRAW_TEST=1 draws a probe rect without needing the GUI open |
| 721 | static bool draw_test = getenv("HL2H_DRAW_TEST") != nullptr; | 706 | static bool draw_test = getenv("HL2H_DRAW_TEST") != nullptr; |
| 722 | bool esp_on = feature_active(FEAT_ESP); | 707 | bool esp_on = feature_active(FEAT_ESP); |
