• Birlikte RealityCheatsi yönetebilecek ekip arkadaşları arıyoruz — fikirlerin, tecrübelerin,merakın ve enerjinle katkıda bulunmak istersen seni bekliyoruz!

Counter Strike Global Offensive ESP CODE

s1mples

s1mples
Super Member
Katılım
16 Ağu 2022
Konular
57
Mesajlar
224
Tepkime puanı
139
RC Point
0
Merhabalar bugün sizlere csgo da kullanılan esp kodunu size vereceğim kodların üzerinde değişiklik yapıp kendinize özgüde yapabilirsiniz.
Cs 2 de işe yararmı bilmiyorum maalesef.
:notlar:
İşte kodlar:


Code:
  1. #include "include.h"
  2. bool WorldToScreen(Vector3 pos, Vector2& screen, float Matrix[16])
  3. {
  4. int width = GetSystemMetrics(SM_CXSCREEN);
  5. int height = GetSystemMetrics(SM_CYSCREEN);
  6. Vector4 ClipCoords;
  7. ClipCoords.x = pos.x * Matrix[0] + pos.y * Matrix[1] * pos.z * Matrix[2] + Matrix[3];
  8. ClipCoords.y = pos.x * Matrix[4] + pos.y * Matrix[5] * pos.z * Matrix[6] + Matrix[7];
  9. ClipCoords.z = pos.x * Matrix[8] + pos.y * Matrix[9] * pos.z * Matrix[10] + Matrix[11];
  10. ClipCoords.w = pos.x * Matrix[12] + pos.y * Matrix[13] * pos.z * Matrix[14] + Matrix[15];
  11. if (ClipCoords.w < 0.1f)
  12. return false;
  13. Vector3 NDC;
  14. NDC.x = ClipCoords.x / ClipCoords.w;
  15. NDC.y = ClipCoords.y / ClipCoords.w;
  16. NDC.z = ClipCoords.z / ClipCoords.w;
  17. screen.x = (width / 2 * NDC.x) + (NDC.x + width / 2);
  18. screen.y = -(height / 2 * NDC.y) + (NDC.y + height / 2);
  19. return true;
  20. }
ESP Code
Code:
  1. if (Settings.EnableBoxEsp)
  2. {
  3. if (PlayerController.Exists())
  4. {
  5. Vector2 StartLocation = { windowWidth / 2, windowHeight };
  6. if (Settings.TraceFromFeet)
  7. {
  8. float Matrix[16];
  9. memcpy(&Matrix, (PBYTE*)(Global_GameModule + dwViewMatrix), sizeof(Matrix));
  10. WorldToScreen(PlayerController.GetLocation(), StartLocation, Matrix);
  11. }
  12. Vector2 EndLocation;
  13. for (int i = 1; i < 32; i++)
  14. {
  15. uintptr_t Entity = *(uintptr_t*)(Global_GameModule + dwEntityList + (i * 0x10));
  16. if (Entity != NULL)
  17. {
  18. int EntityHealth = EntityController.GetHealth(Entity);
  19. if (EntityHealth > 0 && EntityHealth < 101)
  20. {
  21. EndLocation = EntityController.GetBonePositionScreen(Entity, Settings.TracerBone);
  22. Vector3 BaseLocation = EntityController.GetBonePosition(Entity, 1);
  23. Vector3 HeadLocation = EntityController.GetBonePosition(Entity, 8);
  24. HeadLocation.z += 15;
  25. Vector2 Head;
  26. Vector2 Base;
  27. float Matrix[16];
  28. memcpy(&Matrix, (PBYTE*)(Global_GameModule + dwViewMatrix), sizeof(Matrix));
  29. WorldToScreen(HeadLocation, Head, Matrix);
  30. WorldToScreen(BaseLocation, Base, Matrix);
  31. if (EndLocation.x != 0 && EndLocation.y != 0)
  32. {
  33. D3DCOLOR BoxColor;
  34. int Height = Head.Distance(Base);
  35. int PlayerTeam = PlayerController.GetTeam();
  36. int EntityTeam = EntityController.GetTeam(Entity);
  37. if (PlayerTeam != EntityTeam)
  38. {
  39. if (Settings.EnableBoxEsp)
  40. {
  41. DrawBoundingBox(
  42. Base.x,
  43. Base.y,
  44. Height* Settings.BoxWidth,
  45. Height,
  46. Settings.BoxThickness,
  47. Settings.Global_Antialias,
  48. BoxColor
  49. );
  50. }
  51. }
  52. else
  53. {
  54. if (Settings.EnableBoxEsp)
  55. {
  56. DrawBoundingBox(
  57. Base.x,
  58. Base.y,
  59. Height * Settings.BoxWidth,
  60. Height,
  61. Settings.BoxThickness,
  62. Settings.Global_Antialias,
  63. BoxColor
  64. );
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }
  71. }
  72. }
Drawing Code
Code:
  1. #include "include.h"
  2. void DrawFilledRect(int x, int y, int w, int h, D3DCOLOR col)
  3. {
  4. D3DRECT rect = { x, y, x + w, y + h };
  5. pDevice->Clear(1, &rect, D3DCLEAR_TARGET, col, 0, 0);
  6. }
  7. void DrawLine(int x1, int y1, int x2, int y2, int thickness, bool antialias, D3DCOLOR col)
  8. {
  9. ID3DXLine* lineL;
  10. D3DXCreateLine(pDevice, &lineL);
  11. D3DXVECTOR2 Line[2];
  12. Line[0] = D3DXVECTOR2(x1, y1);
  13. Line[1] = D3DXVECTOR2(x2, y2);
  14. lineL->SetWidth(thickness);
  15. lineL->SetAntialias(antialias);
  16. lineL->Draw(Line, 2, col);
  17. lineL->Release();
  18. }
  19. void DrawBoundingBox(int baseX, int baseY, int width, int height, int thickness, bool antialias, D3DCOLOR color)
  20. {
  21. DrawLine(baseX - width / 2, baseY, baseX + width / 2, baseY, thickness, antialias, color);
  22. DrawLine(baseX - width / 2, baseY - height, baseX - width / 2, baseY, thickness, antialias, color);
  23. DrawLine(baseX + width / 2, baseY - height, baseX + width / 2, baseY, thickness, antialias, color);
  24. DrawLine(baseX - width / 2, baseY - height, baseX + width / 2, baseY - height, thickness, antialias, color);
  25. }
 

Dodwq

Confirmed Memb.
Katılım
8 Kas 2021
Konular
2
Mesajlar
147
Tepkime puanı
5
RC Point
0
ADAMSIĞNNNNNNNNNNNN
 

hilecimamo

Super Member
Katılım
29 Ocak 2023
Konular
8
Mesajlar
166
Tepkime puanı
1
RC Point
0
wolfun envanter codeları lazım og dövmesi süper takla vs. yeni çıkan şeyleri ekleyin wolftüye
 
Üst