CUserCmd
Hello, I've sitten many hours now and i can't get my usercmd to work, i've tried many different sources and they either crash or doesn't work at all.
Here's some different methods i've tried but there are more :P
This is how i tried to get m_pInput, it's probably an outdated pattern but whatever.
This simply just doesn't work.
and not this either.
So does anybody know how to make it work?
EDIT: Got it half-working, i can read pCmd->viewangles.x and .y but i cannot change them same with tick_count. I belive it's an easy fix so if anybody got time to answer i'd be very nice.
Here's some different methods i've tried but there are more :P
Code:
m_pInput = *(CInput**)(PatternScan("client.dll", "B9 ?? ?? ?? ?? FF 75 08 E8 ?? ?? ?? ?? 8B 06") + 1);
if (!m_pInput)
{
std::cout << "Trying method 2" << std::endl;
uintptr_t* pVmt = *(uintptr_t**)Engine::Interface::m_pClient;
m_pInput = *(CInput**)(pVmt[21] + 0x5F);
}
if (!m_pInput)
std::cout << "Didn't get m_pInput!" << std::endl;
Code:
CUserCmd* cmdlist = *(CUserCmd**)((DWORD)m_pInput + 0xEC); CUserCmd* pCmd = &cmdlist[sequence_number % 150]; CVerifiedUserCmd* verifiedlist = *(CVerifiedUserCmd**)((DWORD)m_pInput + 0xF0); CVerifiedUserCmd* verified = &verifiedlist[sequence_number % 150];
Code:
CUserCmd* pCmd = m_pInput->GetUserCmd(sequence_number)
So does anybody know how to make it work?
EDIT: Got it half-working, i can read pCmd->viewangles.x and .y but i cannot change them same with tick_count. I belive it's an easy fix so if anybody got time to answer i'd be very nice.
