Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EntityManager = (DWORD*)((DWORD)GetModuleHandle(NULL) + (DWORD)0x1785AB4);
- //printf("EntityManager At : 0x%X\n", EntityManager);
- if (localPlayer != 0 && *localPlayer != 0){
- D3DXVECTOR3 pPos = *reinterpret_cast<D3DXVECTOR3*>(*localPlayer + (DWORD)0x1EC);
- if (pPos != D3DXVECTOR3(0, 0, 0)){
- 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());
- }
- //const D3DXMATRIX&
- viewMatrix = *reinterpret_cast<D3DXMATRIX*>(((DWORD)GetModuleHandle(NULL)) + (DWORD)0x17215CC);
- D3DXVECTOR3 origin = D3DXVECTOR3(0, 0, 0), originW2S;
- if (WorldToScreen(origin, originW2S)){
- DrawText(originW2S.x, originW2S.y, Red, font12pt, "Origin");
- }
- DWORD * entList = (DWORD*)((*EntityManager) + 0x548);
- //DWORD nextObj = *(DWORD*)(EntityManager+0x548);
- //printf("Ent List points to : 0x%X\n", entList);
- int entAmt=0;
- while (entList != 0 && entAmt <= 16)
- {
- DWORD * entPos = (DWORD*)((*entList) + (entAmt * 0x4));
- if (entPos != 0 && *entPos != 0){
- ListEnt obj = *(ListEnt*)(*entPos);
- 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());
- //printf("Object At 0x%X\n", (DWORD)*entPos);
- entAmt++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement