OldSchoolHack

Register / Login English

[TUT] CSS Extern Radar + bunnyhop

icon Thread: [TUT] CSS Extern Radar + bunnyhop

Join Date: Apr 2012

Posts: 18

Hey,

Erstmal danke für das Tut.
Hab ein kleines Problem mit dem Koordinaten anpassen zu den Yaw's des Localen Spielers.
Mein Code:
CPP Code:
  1.  
  2. for(int i = 0; i < 4; i++)
  3. {
  4. //LocalPlayer
  5. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(localid*0x140)+0x60), &players[localid].x, 4, 0);
  6. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(localid*0x140)+0x64), &players[localid].y, 4, 0);
  7. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(localid*0x140)+0x68), &players[localid].z, 4, 0);
  8. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(localid*0x140)+0x70), &players[localid].yaw, 4, 0);
  9. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(localid*0x140)+0x5C), &players[localid].hp, 4, 0);
  10. mapplayers[localid].x = ((players[localid].x-players[localid].x)/12)+CenterX; //960
  11. mapplayers[localid].y = (players[localid].y-players[localid].y)/12*-1+105; //105
  12. //Player i
  13. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(i*0x140)+0x60), &players[i].x, 4, 0);
  14. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(i*0x140)+0x64), &players[i].y, 4, 0);
  15. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(i*0x140)+0x68), &players[i].z, 4, 0);
  16. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(i*0x140)+0x70), &players[i].yaw, 4, 0);
  17. ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(i*0x140)+0x5C), &players[i].hp, 4, 0);
  18. if(!(i == localid) && players[i].hp <= 100 && players[i].hp > 0)
  19. {
  20. int tmpx, tmpy;
  21.  
  22. tmpx = ((players[localid].x-players[i].x)/12)+CenterX;
  23. tmpy = (players[localid].y-players[i].y)/12*-1+105;
  24.  
  25. tmpx -= mapplayers[localid].x;
  26. tmpy -= mapplayers[localid].y;
  27.  
  28. mapplayers[i].x = tmpx * (float) cos((long double) RadToDeg(players[localid].yaw)) - tmpy * sin((long double) RadToDeg(players[localid].yaw)) + CenterX;
  29. mapplayers[i].y = tmpx * (float) sin((long double) RadToDeg(players[localid].yaw)) + tmpy * cos((long double) RadToDeg(players[localid].yaw)) + 105;
  30. if(mapplayers[i].x > CenterX-100 && mapplayers[i].x < CenterX+100 && mapplayers[i].y > 5 && mapplayers[i].y < 200)
  31. {
  32. this->DrawRect(pDevice, mapplayers[i].x, mapplayers[i].y, 2, 2, Blue);
  33. }
  34. }
  35. }
  36.  
Das Radar wird bei CenterX = ScreenWidth/2 - 100 und y = 5 gedrawt. Ist ein 200x200 großes Radar
Im Radar sind die Positionen dann aber anders:
Only registered and activated users can see links.

Vielen Dank schonmal für die Hilfe