-
Notifications
You must be signed in to change notification settings - Fork 42
/
is_paused.cpp
32 lines (25 loc) · 902 Bytes
/
is_paused.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "context.h"
#include <future>
decltype( hooked::original::o_is_paused ) hooked::original::o_is_paused;
std::vector<uintptr_t> printed_addresses;
bool __fastcall hooked::is_paused( void* ecx, void* edx )
{
if ( !ctx.m_local )
return hooked::original::o_is_paused( ecx, nullptr );
/*
void C_BaseEntity::InterpolateServerEntities()
// Enable extrapolation?
CInterpolationContext context;
context.SetLastTimeStamp( engine->GetLastTimeStamp() );
if ( cl_extrapolate.GetBool() && !engine->IsPaused() )
{
context.EnableExtrapolation( true );
}
*/
static uintptr_t extrapolation_call = memory::pattern::first_code_match( csgo.m_client.module( ), xors( "FF D0 A1 ? ? ? ? B9 ? ? ? ? D9 1D" ) );
if ( ctx.m_settings.rage_aimbot_enabled && uintptr_t( _ReturnAddress( ) ) == extrapolation_call )
{
return true;
}
return hooked::original::o_is_paused( ecx, nullptr );
}