OldSchoolHack

Registrieren / Anmelden Deutsch

(C++) bräuchte ein wenig hilfe mit sourcecode OSHeCoD6

icon Thema: (C++) bräuchte ein wenig hilfe mit sourcecode OSHeCoD6

Anmeldungsdatum: Dez 2011

Beiträge: 6

hi kn4cker!

hier kommt die funktion:

CPP Code:
  1. while(true)
  2. {
  3. ReadProcessMemory(process,(PVOID)0x8FF090,&IsInGame,4,NULL); //k ISINGAME
  4.  
  5. if(IsInGame)
  6. {
  7. ReadProcessMemory(process,(PVOID)(0x8FF080),&localclientnum,4,NULL); //k CG
  8. ReadProcessMemory(process,(PVOID)(0x96A200+0x10),&fov,8,NULL); //k REFDEF
  9. ReadProcessMemory(process,(PVOID)(0x96A200+0x18),&mypos,12,NULL); //k REFDEF
  10. ReadProcessMemory(process,(PVOID)(0x96A200+0x3F90),&viewangles,12,NULL); //k REFDEF
  11. for(int i = 0; i < 18; i++)
  12. {
  13. ReadProcessMemory(process,(PVOID)(0xA085B0+i*0x204+0xE0),&typ,4,NULL); //k Entity?
  14. if(typ != 1)
  15. continue;
  16. ReadProcessMemory(process,(PVOID)(0xA085B0+i*0x204+0x2),&valid,4,NULL); //k Entity
  17. ReadProcessMemory(process,(PVOID)(0xA085B0+i*0x204+0x1DC),&alive,4,NULL); //k Entity
  18. ReadProcessMemory(process,(PVOID)(0xA085B0+i*0x204+0xDC),&clientnum,4,NULL); //k Entity
  19. if(valid && alive && (localclientnum != clientnum))
  20. {
  21. ReadProcessMemory(process,(PVOID)(0x9FC6C8+i*0x52C+0x1C),&team,4,NULL); //k ClientInfo
  22. if(team == 1)
  23. info.color = RGB(255,0,0);
  24. else if(team == 2)
  25. info.color = RGB(0,0,255);
  26. else
  27. info.color = RGB(255,255,255);
  28. ReadProcessMemory(process,(PVOID)(0xA085B0+i*0x204+0x18),&info.pos,12,NULL); //k Entity
  29. ReadProcessMemory(process,(PVOID)(0x9FC6C8+i*0x52C+0xC),&info.name,16,NULL); //k ClientInfo
  30.  
  31. dist = (mypos-info.pos).length()/48;
  32. if(WorldToScreen(info.pos,&ScreenX,&ScreenY))
  33. {
  34. drawx = 400.0/dist;
  35. drawy = 700.0/dist;
  36.  
  37. DrawBox(ScreenX-(drawx/2),ScreenY-drawy,drawx,drawy,info.color);
  38. DrawString(ScreenX-(drawx/2),ScreenY,info.color,true,info.name);
  39. }
  40. }
  41. }
  42. }
  43. Sleep(1);
  44. }

hab als comment hintergeschrieben als was ich die alten offsets gefunden habe. kann ja sein das ich mich irgendwie vergoogelt habe ^^

vielen dank fürs drüberschauen!  


gruß