void CreateMove( const int nSequenceNumber, const float flInputSampleFrametime, const bool bIsActive )
{
typedef void( __thiscall* Fn )( void*, const int, const float, const bool );
static auto oCreateMove = DTR::CreateMoveProxy.GetOriginal<Fn>( );
oCreateMove( Interfaces::Client, nSequenceNumber, flInputSampleFrametime, bIsActive );
auto& cmd{ Interfaces::Input->pCommands[ nSequenceNumber % 150 ] };
auto& verifiedCmd{ Interfaces::Input->pVerifiedCommands[ nSequenceNumber % 150 ] };
const auto sameFrameCMD{ **( int** )Displacement::Sigs.numticks - **( int** )Displacement::Sigs.host_currentframetick > 0 };
# и
void __declspec( naked ) __fastcall Hooks::hkCreateMoveProxy( uint8_t* ecx, uint8_t*, int sequenceNumber, float inputSampleFrametime, bool active )
{
__asm
{
push ebp
mov ebp, esp
push eax
lea eax, [ecx]
pop eax
mov ctx.m_bSendPacket, bl
push ebx
push esi
push edi
}
CreateMove(sequenceNumber, inputSampleFrametime, active);
__asm {
pop edi
pop esi
pop ebx
mov bl, ctx.m_bSendPacket
mov esp, ebp
pop ebp
ret 0xC
}
}