Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (auto i = 1; i <= MAX_PLAYERS; i++)
- {
- auto ClientEntity = Ikaros.m_pEntlist->GetClientEntity(i);
- if (!ClientEntity || ClientEntity->GetDormant())
- continue;
- if (ClientEntity == Me())
- continue;
- Ikaros.m_pConsole->OldSimulationTime[i] = ClientEntity->m_flSimulationTime();
- auto records = Resolvers.m_arrInfos.at(ClientEntity->GetIndex()).m_sRecords;
- cmd->tick_count = TIME_TO_TICKS(records.front().m_flSimulationTime + m_fLerpTime());
- using SetAbsOriginFn = void(__thiscall*)(CPlayer* ent, const Vector &origin);
- static SetAbsOriginFn SetAbsOrigin;
- using SetAbsAnglesFn = void(__thiscall*)(CPlayer* ent, const QAngle &angles);
- static SetAbsAnglesFn SetAbsAngles;
- if (!SetAbsOrigin)
- SetAbsOrigin = (SetAbsOriginFn)(Ikaros.m_pUtilities->dwFindPattern((DWORD)GetModuleHandleA("client.dll"), 0xFFFFFF, (BYTE*)"\x55\x8B\xEC\x83\xE4\xF8\x51\x53\x56\x57\x8B\xF1\xE8\x00\x00", "xxxxxxxxxxxxx??"));
- if (!SetAbsAngles)
- SetAbsAngles = (SetAbsAnglesFn)(Ikaros.m_pUtilities->dwFindPattern((DWORD)GetModuleHandleA("client.dll"), 0xFFFFFF, (BYTE*)"\x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x64\x53\x56\x57\x8B\xF1\xE8", "xxxxxxxxxxxxxxx"));
- SetAbsOrigin(ClientEntity, records.front().m_vecAbsOrigin);
- SetAbsAngles(ClientEntity, records.front().m_angAbsAngles);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement