diff options
| author | boris <wzn@moneybot.cc> | 2018-11-28 16:00:02 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-11-28 16:00:02 +1300 |
| commit | 3d412a4b30a9f7c7f51ea6562e694315948bd3da (patch) | |
| tree | 26d67dfd1f3e5fd12903ad13e85d0cb8bcf8f21c /tf2/clientmode_createmove.cpp | |
| parent | e4729e4393d90271a3814c7a79950a660c48325a (diff) | |
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
Diffstat (limited to 'tf2/clientmode_createmove.cpp')
| -rw-r--r-- | tf2/clientmode_createmove.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/tf2/clientmode_createmove.cpp b/tf2/clientmode_createmove.cpp deleted file mode 100644 index f86471e..0000000 --- a/tf2/clientmode_createmove.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#include "hooks.h" -#include "interfaces.h" -#include "search.h" -#include "base_cheat.h" -#include <intrin.h> -#include "mem.hpp" -#define get_baseptr( ) ( ( uintptr_t )( _AddressOfReturnAddress( ) ) - sizeof( uintptr_t ) ) -bool __fastcall hooks::create_move( void *ecx_, void *edx_, float input_sample_time, user_cmd_t *ucmd ) { - static auto create_move_o = cl.m_clientmode->get_old_function< decltype( hooks::create_move )* >( 21 ); - - if( cl.m_panic || !ucmd->m_cmd_nr || !ucmd->m_tick_count ) {
- return create_move_o( ecx_, edx_, input_sample_time, ucmd );
- }
-
- // call from CInput::CreateMove, mimic what the engine does.
- cl.m_engine( )->SetViewAngles( ucmd->m_viewangles );
-
- // random_seed isn't generated in ClientMode::CreateMove yet (since CInput::CreateMove handles that), we must generate it ourselves.
- ucmd->m_random_seed = math::md5_pseudorandom( ucmd->m_cmd_nr ) & 0x7fffffff;
-
- //get sendpacket off the stack
- stack_t stack( get_baseptr( ) );
- byte *send_packet = stack.next( ).local< byte* >( 0x1C );
-
- g_ctx.create_snapshot( ucmd );
-
- cl.m_engine( )->SetViewAngles( ucmd->m_viewangles );
- g_ctx.calculate_tickbase( );
-
- //bool* send_packet = ***get_ebp< bool**** >( ) - 0x1;
-
- if( g_ctx.run_frame( ) && g_ctx.m_local->is_alive( ) ) {
- static int last_frame = cl.m_globals->framecount;
- if( last_frame != cl.m_globals->framecount )
- g_ctx.m_has_fired_this_frame = false;
-
- last_frame = cl.m_globals->framecount;
-
- g_cheat.aim.sample_angle_data( ucmd->m_viewangles );
- //g_cheat.prediction.run_prediction( ucmd );
- g_cheat.movement.update( ucmd );
-
- g_cheat.aim.m_lagcomp( ucmd );
- g_cheat.aim.triggerbot( ucmd );
-
-
-
- }
-
- - ucmd->clamp( ); - return false; -}
\ No newline at end of file |
