Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. EntityManager = (DWORD*)((DWORD)GetModuleHandle(NULL) + (DWORD)0x1785AB4);
  2. //printf("EntityManager At : 0x%X\n", EntityManager);
  3.  
  4. if (localPlayer != 0 && *localPlayer != 0){
  5. D3DXVECTOR3 pPos = *reinterpret_cast<D3DXVECTOR3*>(*localPlayer + (DWORD)0x1EC);
  6. if (pPos != D3DXVECTOR3(0, 0, 0)){
  7. DrawText(1, (menuItems * 15) + 30, Gold, font14pt, ("Local Player Coords: " + std::to_string(pPos.x) + ", " + std::to_string(pPos.y) + ", " + std::to_string(pPos.z)).c_str());
  8. }
  9. //const D3DXMATRIX&
  10. viewMatrix = *reinterpret_cast<D3DXMATRIX*>(((DWORD)GetModuleHandle(NULL)) + (DWORD)0x17215CC);
  11. D3DXVECTOR3 origin = D3DXVECTOR3(0, 0, 0), originW2S;
  12. if (WorldToScreen(origin, originW2S)){
  13. DrawText(originW2S.x, originW2S.y, Red, font12pt, "Origin");
  14. }
  15.  
  16. DWORD * entList = (DWORD*)((*EntityManager) + 0x548);
  17. //DWORD nextObj = *(DWORD*)(EntityManager+0x548);
  18. //printf("Ent List points to : 0x%X\n", entList);
  19.  
  20. int entAmt=0;
  21. while (entList != 0 && entAmt <= 16)
  22. {
  23. DWORD * entPos = (DWORD*)((*entList) + (entAmt * 0x4));
  24. if (entPos != 0 && *entPos != 0){
  25. ListEnt obj = *(ListEnt*)(*entPos);
  26. DrawText(10,300+(entAmt*15),Red,font14pt,(std::to_string(obj.position.x)+", "+ std::to_string(obj.position.y)+", "+std::to_string(obj.position.z)).c_str());
  27. //printf("Object At 0x%X\n", (DWORD)*entPos);
  28. entAmt++;
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement