From 3d412a4b30a9f7c7f51ea6562e694315948bd3da Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 28 Nov 2018 16:00:02 +1300 Subject: cleaned up in short, the cheat and loader are now separate solutions. unused stuff was moved into the legacy solution in case anyone wants to compile it or whatever. i can change this back if you want to. also, i configured the loader to compile in x64, and have separate build types for linux and win64 --- internal_rewrite/send_datagram.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 internal_rewrite/send_datagram.cpp (limited to 'internal_rewrite/send_datagram.cpp') diff --git a/internal_rewrite/send_datagram.cpp b/internal_rewrite/send_datagram.cpp deleted file mode 100644 index 7a86842..0000000 --- a/internal_rewrite/send_datagram.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "mem.hpp" -#include "base_cheat.hpp" -#include "context.hpp" -#include "hooks.hpp" - -uintptr_t cl_sendmove = 0; - -int __fastcall hooks::send_datagram( INetChannel* channel, void* edx_, void* datagram ) { - if( g_csgo.m_panic || !g_settings.misc.net_fakelag || datagram ) { - return send_datagram_o( channel, 0, datagram ); - } - - auto cl = g_csgo.m_global_state->get_client_state( ); - if( !cl || cl->m_delta_tick <= 0 ) { - return send_datagram_o( channel, 0, datagram ); - } - - // There is no need to restore the reliable state sequence since - // we are not fucking with reliable state with 'proper' fake latency. - - int backup_sequence = channel->m_nInSequenceNr; - - g_cheat.m_extra.add_latency( channel ); - - auto nci = g_csgo.m_engine( )->GetNetChannelInfo( ); - - int ret = send_datagram_o( channel, 0, datagram ); - - channel->m_nInSequenceNr = backup_sequence; - - return ret; -} \ No newline at end of file -- cgit v1.2.3