Guest User

Untitled

a guest
Dec 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. void Core::Render()
  2. {
  3. // light transparent blue frame
  4. m_pDrawer->DrawRect(0, 0, m_pDrawer->GetWidth()-1, m_pDrawer->GetHeight()-1, 0xdd7777ff);
  5.  
  6. // basic character esp
  7. try {
  8. GW2LIB::Character chr, me;
  9. me.BeSelf();
  10.  
  11. while (chr.BeNext())
  12. {
  13. if (chr == me) continue;
  14. try {
  15. if (chr.IsAlive())
  16. {
  17. DWORD color = 0;
  18.  
  19. if (chr.GetAgent().IsHostile()) color |= 0x00ff3300;
  20. else color |= 0x0033ff00;
  21.  
  22. if (chr.IsPlayer()) color |= 0x77000000;
  23. else color |= 0x44000000;
  24.  
  25. GW2LIB::Position pos = chr.GetPos();
  26.  
  27. m_pDrawer->DrawCircleProjected(D3DXVECTOR3(pos.x,pos.y,pos.z), 30.0f, color);
  28. m_pDrawer->DrawCircleFilledProjected(D3DXVECTOR3(pos.x,pos.y,pos.z), 30.0f, color-0x33000000);
  29. }
  30. } catch(int) { }
  31. }
  32. } catch(int) { }
  33. }
Add Comment
Please, Sign In to add comment