Advertisement
allen343434

Untitled

Mar 12th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. void Esp(LPDIRECT3DDEVICE9 pDevice)
  2. {
  3. if (opt.esp.box || opt.esp.health || opt.esp.line || opt.esp.name || opt.esp.mode)
  4. {
  5. /*CPlayerBase* gBase = pClassManager.GetGameBase();
  6.  
  7. if (!gBase)
  8. return;
  9.  
  10. CPlayer *pMyInfo = pClassManager.GetPlayerByIndex(pClassManager.GetMyIndex());
  11.  
  12. for (int i = 0; i < 16; i++)
  13. {
  14. if (i == pClassManager.GetMyIndex())
  15. continue;
  16.  
  17. CPlayer *pInfo = pClassManager.GetPlayerByIndex(i);
  18. if (pInfo)
  19. {
  20. if (pInfo->Health - 625 < 1)
  21. continue;
  22.  
  23. if (!pInfo->IsAlive)
  24. continue;
  25.  
  26. if (!pInfo->IsAlive2)
  27. continue;
  28.  
  29. pDevice->GetViewport(&Tools.g_ViewPort);
  30.  
  31. DWORD ScreenCenterX = Tools.g_ViewPort.Width / 2;
  32. DWORD ScreenCenterY = Tools.g_ViewPort.Height / 2;
  33.  
  34. D3DXVECTOR3 EnemyCoordinates(pInfo->xene, pInfo->yene, pInfo->zene);
  35.  
  36. if (Tools.W2S(pDevice, EnemyCoordinates))
  37. {
  38. if (opt.esp.box)
  39. {
  40. Tools.LBox(pDevice, EnemyCoordinates.x, EnemyCoordinates.y, 20, 20, Menu.RED);
  41. }
  42. if (opt.esp.line)
  43. {
  44. Tools.DrawLine(pDevice, ScreenCenterX, ScreenCenterY + 500, EnemyCoordinates.x, EnemyCoordinates.y, 2, Menu.RED);
  45. }
  46. if (opt.esp.health)
  47. {
  48. int Health = pInfo->Health - 625;
  49. Tools.DrawHealthBar(pDevice,EnemyCoordinates.x, EnemyCoordinates.y + 15, 30, 5, Menu.GREEN, Menu.BLACK, Health, 100);
  50. }
  51. }
  52. }
  53. }*/
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement