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: for(int i = 0; i < 4; i++) { //LocalPlayer ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(localid*0x140)+0x60), &players[localid].x, 4, 0); ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(localid*0x140)+0x64), &players[localid].y, 4, 0); ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(localid*0x140)+0x68), &players[localid].z, 4, 0); ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(localid*0x140)+0x70), &players[localid].yaw, 4, 0); ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(localid*0x140)+0x5C), &players[localid].hp, 4, 0); mapplayers[localid].x = ((players[localid].x-players[localid].x)/12)+CenterX; //960 mapplayers[localid].y = (players[localid].y-players[localid].y)/12*-1+105; //105 //Player i ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(i*0x140)+0x60), &players[i].x, 4, 0); ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(i*0x140)+0x64), &players[i].y, 4, 0); ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(i*0x140)+0x68), &players[i].z, 4, 0); ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(i*0x140)+0x70), &players[i].yaw, 4, 0); ReadProcessMemory(gProcess.hProcess, (LPCVOID)(RadarBase+(i*0x140)+0x5C), &players[i].hp, 4, 0); if(!(i == localid) && players[i].hp <= 100 && players[i].hp > 0) { int tmpx, tmpy; tmpx = ((players[localid].x-players[i].x)/12)+CenterX; tmpy = (players[localid].y-players[i].y)/12*-1+105; tmpx -= mapplayers[localid].x; tmpy -= mapplayers[localid].y; mapplayers[i].x = tmpx * (float) cos((long double) RadToDeg(players[localid].yaw)) - tmpy * sin((long double) RadToDeg(players[localid].yaw)) + CenterX; mapplayers[i].y = tmpx * (float) sin((long double) RadToDeg(players[localid].yaw)) + tmpy * cos((long double) RadToDeg(players[localid].yaw)) + 105; if(mapplayers[i].x > CenterX-100 && mapplayers[i].x < CenterX+100 && mapplayers[i].y > 5 && mapplayers[i].y < 200) { this->DrawRect(pDevice, mapplayers[i].x, mapplayers[i].y, 2, 2, Blue); } } }
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
|