Advertisement
bigjfdjew

Untitled

May 23rd, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. for (auto i = 1; i <= MAX_PLAYERS; i++)
  2. {
  3. auto ClientEntity = Ikaros.m_pEntlist->GetClientEntity(i);
  4.  
  5. if (!ClientEntity || ClientEntity->GetDormant())
  6. continue;
  7.  
  8. if (ClientEntity == Me())
  9. continue;
  10.  
  11. Ikaros.m_pConsole->OldSimulationTime[i] = ClientEntity->m_flSimulationTime();
  12.  
  13. auto records = Resolvers.m_arrInfos.at(ClientEntity->GetIndex()).m_sRecords;
  14.  
  15. cmd->tick_count = TIME_TO_TICKS(records.front().m_flSimulationTime + m_fLerpTime());
  16.  
  17. using SetAbsOriginFn = void(__thiscall*)(CPlayer* ent, const Vector &origin);
  18. static SetAbsOriginFn SetAbsOrigin;
  19. using SetAbsAnglesFn = void(__thiscall*)(CPlayer* ent, const QAngle &angles);
  20. static SetAbsAnglesFn SetAbsAngles;
  21.  
  22. if (!SetAbsOrigin)
  23. 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??"));
  24.  
  25. if (!SetAbsAngles)
  26. 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"));
  27.  
  28. SetAbsOrigin(ClientEntity, records.front().m_vecAbsOrigin);
  29. SetAbsAngles(ClientEntity, records.front().m_angAbsAngles);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement