Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Core::Render()
- {
- // light transparent blue frame
- m_pDrawer->DrawRect(0, 0, m_pDrawer->GetWidth()-1, m_pDrawer->GetHeight()-1, 0xdd7777ff);
- // basic character esp
- try {
- GW2LIB::Character chr, me;
- me.BeSelf();
- while (chr.BeNext())
- {
- if (chr == me) continue;
- try {
- if (chr.IsAlive())
- {
- DWORD color = 0;
- if (chr.GetAgent().IsHostile()) color |= 0x00ff3300;
- else color |= 0x0033ff00;
- if (chr.IsPlayer()) color |= 0x77000000;
- else color |= 0x44000000;
- GW2LIB::Position pos = chr.GetPos();
- m_pDrawer->DrawCircleProjected(D3DXVECTOR3(pos.x,pos.y,pos.z), 30.0f, color);
- m_pDrawer->DrawCircleFilledProjected(D3DXVECTOR3(pos.x,pos.y,pos.z), 30.0f, color-0x33000000);
- }
- } catch(int) { }
- }
- } catch(int) { }
- }
Add Comment
Please, Sign In to add comment