Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Esp(LPDIRECT3DDEVICE9 pDevice)
- {
- if (opt.esp.box || opt.esp.health || opt.esp.line || opt.esp.name || opt.esp.mode)
- {
- /*CPlayerBase* gBase = pClassManager.GetGameBase();
- if (!gBase)
- return;
- CPlayer *pMyInfo = pClassManager.GetPlayerByIndex(pClassManager.GetMyIndex());
- for (int i = 0; i < 16; i++)
- {
- if (i == pClassManager.GetMyIndex())
- continue;
- CPlayer *pInfo = pClassManager.GetPlayerByIndex(i);
- if (pInfo)
- {
- if (pInfo->Health - 625 < 1)
- continue;
- if (!pInfo->IsAlive)
- continue;
- if (!pInfo->IsAlive2)
- continue;
- pDevice->GetViewport(&Tools.g_ViewPort);
- DWORD ScreenCenterX = Tools.g_ViewPort.Width / 2;
- DWORD ScreenCenterY = Tools.g_ViewPort.Height / 2;
- D3DXVECTOR3 EnemyCoordinates(pInfo->xene, pInfo->yene, pInfo->zene);
- if (Tools.W2S(pDevice, EnemyCoordinates))
- {
- if (opt.esp.box)
- {
- Tools.LBox(pDevice, EnemyCoordinates.x, EnemyCoordinates.y, 20, 20, Menu.RED);
- }
- if (opt.esp.line)
- {
- Tools.DrawLine(pDevice, ScreenCenterX, ScreenCenterY + 500, EnemyCoordinates.x, EnemyCoordinates.y, 2, Menu.RED);
- }
- if (opt.esp.health)
- {
- int Health = pInfo->Health - 625;
- Tools.DrawHealthBar(pDevice,EnemyCoordinates.x, EnemyCoordinates.y + 15, 30, 5, Menu.GREEN, Menu.BLACK, Health, 100);
- }
- }
- }
- }*/
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement