From bb8b13b512d1b9bbe8f78cb8d64eba5479fbd540 Mon Sep 17 00:00:00 2001 From: boris Date: Fri, 7 Dec 2018 11:42:40 +1300 Subject: eeeeeeeeeeeeee --- cheat/internal_rewrite/process_packet.cpp | 62 +++++++++++++++---------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'cheat/internal_rewrite/process_packet.cpp') diff --git a/cheat/internal_rewrite/process_packet.cpp b/cheat/internal_rewrite/process_packet.cpp index ee321a7..9f7e021 100644 --- a/cheat/internal_rewrite/process_packet.cpp +++ b/cheat/internal_rewrite/process_packet.cpp @@ -3,37 +3,37 @@ bool __fastcall hooks::process_packet(void *ecx, void *, void *packet, bool has_header) { bool result = process_packet_o(ecx, nullptr, packet, has_header); - auto *cl = g_csgo.m_global_state->get_client_state(); - - if (!g_csgo.m_engine()->IsInGame() || !cl) - return result; - - // new events could be coming in - uint32_t v3 = *(uint32_t*)cl + 19948; - - if (!v3) - return result; - - for (; !!v3; ) { - float &v8 = *(float *)((uint32_t)v3 + 4); - - if (v8 > 0.0f) - v8 = 0.0f; - - uint32_t v11 = *(uint32_t *)((uint32_t)v3 + 56); - v3 = v11; - } - - //printf("yea\n"); - - // CL_FireEvents will make sure the events are triggered instantly - // i honestly can't wait for you to call me a retard for this :DDDDDDDDDDDDD - // 55 8B EC 83 EC 08 53 8B 1D ? ? ? ? 56 57 83 BB ? ? ? ? ? 74 12 8D 8B ? ? ? ? E8 - static auto fire_events = pattern::first_code_match< void(*)() >( - g_csgo.m_engine.dll(), - xors("55 8B EC 83 EC 08 53 8B 1D ? ? ? ? 56 57 83 BB ? ? ? ? ? 74 12 8D 8B ? ? ? ? E8") - ); - fire_events(); + //auto *cl = g_csgo.m_global_state->get_client_state(); + // + //if (!g_csgo.m_engine()->IsInGame() || !cl) + // return result; + // + //// new events could be coming in + //uint32_t v3 = *(uint32_t*)cl + 19948; + // + //if (!v3) + // return result; + // + //for (; !!v3; ) { + // float &v8 = *(float *)((uint32_t)v3 + 4); + // + // if (v8 > 0.0f) + // v8 = 0.0f; + // + // uint32_t v11 = *(uint32_t *)((uint32_t)v3 + 56); + // v3 = v11; + //} + // + ////printf("yea\n"); + // + //// CL_FireEvents will make sure the events are triggered instantly + //// i honestly can't wait for you to call me a retard for this :DDDDDDDDDDDDD + //// 55 8B EC 83 EC 08 53 8B 1D ? ? ? ? 56 57 83 BB ? ? ? ? ? 74 12 8D 8B ? ? ? ? E8 + //static auto fire_events = pattern::first_code_match< void(*)() >( + // g_csgo.m_engine.dll(), + // xors("55 8B EC 83 EC 08 53 8B 1D ? ? ? ? 56 57 83 BB ? ? ? ? ? 74 12 8D 8B ? ? ? ? E8") + //); + //fire_events(); return result; } \ No newline at end of file -- cgit v1.2.3