Ayyware Armor Bar

Posts 1–15 of 34 · Page 1 of 3
Ayyware Armor Bar

void CEsp:rawArmor(IClientEntity* pEntity, CEsp::ESPBox size)
{
ESPBox ArmorBar = size;
if (Menu::Window.ESPTab.g_bHealth.GetState())
ArmorBar.y += (ArmorBar.h + 6);
else
ArmorBar.y += (ArmorBar.h + 0);

ArmorBar.h = 4;

float ArmorValue = pEntity->GetArmor();
float ArmorPerc = ArmorValue / 100.f;
float Width = (size.w * ArmorPerc);
ArmorBar.w = Width;

// — Main Bar — //
Vertex_t Verts[4];
Verts[0].Init(Vector2D(ArmorBar.x, ArmorBar.y));
Verts[1].Init(Vector2D(ArmorBar.x + size.w, ArmorBar.y));
Verts[2].Init(Vector2D(ArmorBar.x + size.w, ArmorBar.y + 5));
Verts[3].Init(Vector2D(ArmorBar.x, ArmorBar.y + 5));

Render::PolygonOutline(4, Verts, Color(0, 0, 0, 255), Color(0, 0, 0, 255));

Vertex_t Verts2[4];
Verts2[0].Init(Vector2D(ArmorBar.x + 1, ArmorBar.y + 1));
Verts2[1].Init(Vector2D(ArmorBar.x + ArmorBar.w, ArmorBar.y + 1));
Verts2[2].Init(Vector2D(ArmorBar.x + ArmorBar.w, ArmorBar.y + 5));
Verts2[3].Init(Vector2D(ArmorBar.x, ArmorBar.y + 5));

Color c = Color(0, 205, 247, 255);
Render::Polygon(4, Verts2, c);

Verts2[0].Init(Vector2D(ArmorBar.x + 1, ArmorBar.y + 1));
Verts2[1].Init(Vector2D(ArmorBar.x + ArmorBar.w, ArmorBar.y + 1));
Verts2[2].Init(Vector2D(ArmorBar.x + ArmorBar.w, ArmorBar.y + 2));
Verts2[3].Init(Vector2D(ArmorBar.x, ArmorBar.y + 2));

Render::Polygon(4, Verts2, Color(0, 255, 0, 255));
}



//hf
@Credits
haxen
ok this has to be the most useless post i've ever seen
Are you sure that armor values are send to the user/client?
Quote Originally Posted by RTGERGregergergrgrgg View Post
There is an screenshoot if u dont belive :3
http://prntscr.com/fab6z9

LOL?
it really works :3
wow
Thanks buddy xd!
Quote Originally Posted by Zaczero View Post



LOL?
it really works :3
wow
Thanks buddy xd!
great esp dude xd
Quote Originally Posted by RTGERGregergergrgrgg View Post
great esp dude xd

and here is the final result :3
if you didn't post this I wouldn't know it's possible xd
Quote Originally Posted by Zaczero View Post



and here is the final result :3
if you didn't post this I wouldn't know it's possible xd
can i get your steam etc?
Quote Originally Posted by RTGERGregergergrgrgg View Post
can i get your steam etc?
skype : MrZaczer0
steam : id/Zaczero
Code:
	float ArmorValue = pEntity->GetArmor();
"GetArmor”is not a member of“IClientEntity”

jump to Class IClientEntity cant find a GetArmor

can u share me ur IClientEntity Code?
Quote Originally Posted by qq1239996785 View Post
Code:
	float ArmorValue = pEntity->GetArmor();
"GetArmor”is not a member of“IClientEntity”

jump to Class IClientEntity cant find a GetArmor

can u share me ur IClientEntity Code?
Change GetArmor to ArmorValue

- - - Updated - - -

Quote Originally Posted by RTGERGregergergrgrgg View Post

void CEsp:rawArmor(IClientEntity* pEntity, CEsp::ESPBox size)
{
ESPBox ArmorBar = size;
if (Menu::Window.ESPTab.g_bHealth.GetState())
ArmorBar.y += (ArmorBar.h + 6);
else
ArmorBar.y += (ArmorBar.h + 0);

ArmorBar.h = 4;

float ArmorValue = pEntity->GetArmor();
float ArmorPerc = ArmorValue / 100.f;
float Width = (size.w * ArmorPerc);
ArmorBar.w = Width;

// — Main Bar — //
Vertex_t Verts[4];
Verts[0].Init(Vector2D(ArmorBar.x, ArmorBar.y));
Verts[1].Init(Vector2D(ArmorBar.x + size.w, ArmorBar.y));
Verts[2].Init(Vector2D(ArmorBar.x + size.w, ArmorBar.y + 5));
Verts[3].Init(Vector2D(ArmorBar.x, ArmorBar.y + 5));

Render::PolygonOutline(4, Verts, Color(0, 0, 0, 255), Color(0, 0, 0, 255));

Vertex_t Verts2[4];
Verts2[0].Init(Vector2D(ArmorBar.x + 1, ArmorBar.y + 1));
Verts2[1].Init(Vector2D(ArmorBar.x + ArmorBar.w, ArmorBar.y + 1));
Verts2[2].Init(Vector2D(ArmorBar.x + ArmorBar.w, ArmorBar.y + 5));
Verts2[3].Init(Vector2D(ArmorBar.x, ArmorBar.y + 5));

Color c = Color(0, 205, 247, 255);
Render::Polygon(4, Verts2, c);

Verts2[0].Init(Vector2D(ArmorBar.x + 1, ArmorBar.y + 1));
Verts2[1].Init(Vector2D(ArmorBar.x + ArmorBar.w, ArmorBar.y + 1));
Verts2[2].Init(Vector2D(ArmorBar.x + ArmorBar.w, ArmorBar.y + 2));
Verts2[3].Init(Vector2D(ArmorBar.x, ArmorBar.y + 2));

Render::Polygon(4, Verts2, Color(0, 255, 0, 255));
}



//hf
@Credits
haxen
got armor bars too low from players any fix?
Quote Originally Posted by Stringer5 View Post
Change GetArmor to ArmorValue

- - - Updated - - -



got armor bars too low from players any fix?
modify your y coord
Quote Originally Posted by antep2727 View Post
modify your y coord
Thanks for reply appreciate it
Quote Originally Posted by Stringer5 View Post
Change GetArmor to ArmorValue

- - - Updated - - -



got armor bars too low from players any fix?
learncpp.com
Quote Originally Posted by BilllyBobJoel View Post
learncpp.com
shut up funny boy
Posts 1–15 of 34 · Page 1 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?