Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1.  
  2. if(hMenuItem[17] == 1)
  3. {
  4. D3DXVECTOR3 Pos0, Pos1, Pos2, Pos3, Pos4, Pos5, Pos6, Pos7, Pos8;
  5. Pos0 = GetMidPoint(GetBonePosition(pPlayer->Object, 6), GetBonePosition(pPlayer->Object, 3));
  6. Pos1 = Pos0 + D3DXVECTOR3(-50, 160, -50);
  7. Pos2 = Pos0 + D3DXVECTOR3(-50, -160, -50);
  8. Pos3 = Pos0 + D3DXVECTOR3(50, -160, -50);
  9. Pos4 = Pos0 + D3DXVECTOR3(50, 160, -50);
  10. Pos5 = Pos0 + D3DXVECTOR3(-50, 160, 50);
  11. Pos6 = Pos0 + D3DXVECTOR3(-50, -160, 50);
  12. Pos7 = Pos0 + D3DXVECTOR3(50, -160, 50);
  13. Pos8 = Pos0 + D3DXVECTOR3(50, 160, 50);
  14.  
  15. if (Trans3DTo2D(pDevice, &Pos1) && Trans3DTo2D(pDevice, &Pos2) && Trans3DTo2D(pDevice, &Pos3) && Trans3DTo2D(pDevice, &Pos4) && Trans3DTo2D(pDevice, &Pos5) && Trans3DTo2D(pDevice, &Pos6) && Trans3DTo2D(pDevice, &Pos7) && Trans3DTo2D(pDevice, &Pos8))
  16. {
  17. DrawCircle(pt.x, pt.y, 18 * PI2,hRed, pDevice);
  18. DrawLine(pDevice, Pos1.x, Pos1.y, Pos2.x, Pos2.y, ESP_Color);
  19. DrawLine(pDevice, Pos2.x, Pos2.y, Pos3.x, Pos3.y, ESP_Color);
  20. DrawLine(pDevice, Pos3.x, Pos3.y, Pos4.x, Pos4.y, ESP_Color);
  21. DrawLine(pDevice, Pos4.x, Pos4.y, Pos1.x, Pos1.y, ESP_Color);
  22. DrawLine(pDevice, Pos5.x, Pos5.y, Pos6.x, Pos6.y, ESP_Color);
  23. DrawLine(pDevice, Pos6.x, Pos6.y, Pos7.x, Pos7.y, ESP_Color);
  24. DrawLine(pDevice, Pos7.x, Pos7.y, Pos8.x, Pos8.y, ESP_Color);
  25. DrawLine(pDevice, Pos8.x, Pos8.y, Pos5.x, Pos5.y, ESP_Color);
  26. DrawLine(pDevice, Pos1.x, Pos1.y, Pos5.x, Pos5.y, ESP_Color);
  27. DrawLine(pDevice, Pos2.x, Pos2.y, Pos6.x, Pos6.y, ESP_Color);
  28. DrawLine(pDevice, Pos3.x, Pos3.y, Pos7.x, Pos7.y, ESP_Color);
  29. DrawLine(pDevice, Pos4.x, Pos4.y, Pos8.x, Pos8.y, ESP_Color);
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement