g_pInputHook = new CVMTHookManager((PDWORD *)g_pInput); g_pInputHook->dwHookMethod((DWORD)Hooked_GetUserCmd, 8);
CUserCmd *__stdcall Hooked_GetUserCmd(int sequence_number)
{
static CUserCmd* pCommands = *(CUserCmd **)((DWORD)g_pInput + 0xC4);
CUserCmd *pCmd = &pCommands[sequence_number % 90];
if (pCmd != NULL)
{
pCmd->command_number = 2076615043;
pCmd->random_seed = 39;
}
return pCmd;
}
_asm {
mov eax, 0xDEADBEEF;
call eax;
}