-
Автор темы
- #1
Код:
bool __fastcall Hooked_WriteUserCmdDeltaToBuffer(void* ecx, void* edx, DWORD* buf, int from, int to, bool isnewcommand)
{
CUserCmd nullcmd, *pFrom, *pTo;
if (from == -1)
{
pFrom = &nullcmd;
}
else
{
pFrom = Globals.g_pInput->GetUserCmd(from);
if (!pFrom)
pFrom = &nullcmd;
}
pTo = Globals.g_pInput->GetUserCmd(to);
if (!pTo)
pTo = &nullcmd;
WriteUserCmd(buf, pTo, pFrom);
if (*(bool*)((DWORD)buf + 0x10))
return false;
if (CheatVars.m_bAirstuck)
{
return false;
}
else
{
return true;
}
}