Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma region "Bone ESP"
- CVector Bone[79];
- CVector Null, b1, b2, b3, b4, b5 = 0;
- CVector ll1, ll2, ll3, ll4, ll5, ll6 = 0;
- CVector rl1, rl2, rl3, rl4, rl5, rl6 = 0;
- CVector la1, la2, la3, la4, la5, la6 = 0;
- CVector ra1, ra2, ra3, ra4, ra5, ra6 = 0;
- #pragma region "Left Leg"
- Bone[63] = Entity->GetBone(63);
- Bone[67] = Entity->GetBone(67);
- Bone[68] = Entity->GetBone(68);
- Bone[64] = Entity->GetBone(64);
- Bone[65] = Entity->GetBone(65);
- Bone[66] = Entity->GetBone(66);
- #pragma endregion
- #pragma region "Right Leg"
- Bone[69] = Entity->GetBone(69);
- Bone[73] = Entity->GetBone(73);
- Bone[74] = Entity->GetBone(74);
- Bone[70] = Entity->GetBone(70);
- Bone[71] = Entity->GetBone(71);
- Bone[72] = Entity->GetBone(72);
- #pragma endregion
- #pragma region "Left Arm"
- Bone[8] = Entity->GetBone(8);
- Bone[33] = Entity->GetBone(33);
- Bone[34] = Entity->GetBone(34);
- Bone[9] = Entity->GetBone(9);
- Bone[31] = Entity->GetBone(31);
- Bone[32] = Entity->GetBone(32);
- #pragma endregion
- #pragma region "Right Arm"
- Bone[36] = Entity->GetBone(36);
- Bone[61] = Entity->GetBone(61);
- Bone[62] = Entity->GetBone(62);
- Bone[37] = Entity->GetBone(37);
- Bone[59] = Entity->GetBone(59);
- Bone[60] = Entity->GetBone(60);
- #pragma endregion
- #pragma region "Body"
- Bone[0] = Entity->GetBone(0);
- Bone[1] = Entity->GetBone(1);
- Bone[2] = Entity->GetBone(2);
- Bone[3] = Entity->GetBone(3);
- Bone[4] = Entity->GetBone(4);
- Bone[5] = Entity->GetBone(5);
- #pragma endregion
- #pragma region "Head"
- Bone[6] = Entity->GetBone(6);
- #pragma endregion
- CColor Color = CColor(255, 255, 255, 255);
- // Left Leg
- if (WorldToScreen(Bone[0], Null) && WorldToScreen(Bone[63], ll1))
- {
- Render->DrawLine(Null.x, Null.y, ll1.x, ll1.y, Color);
- }
- if (WorldToScreen(Bone[63], ll1) && WorldToScreen(Bone[67], ll2))
- {
- Render->DrawLine(ll1.x, ll1.y, ll2.x, ll2.y, Color);
- }
- if (WorldToScreen(Bone[67], ll2) && WorldToScreen(Bone[68], ll3))
- {
- Render->DrawLine(ll2.x, ll2.y, ll3.x, ll3.y, Color);
- }
- if (WorldToScreen(Bone[68], ll3) && WorldToScreen(Bone[64], ll4))
- {
- Render->DrawLine(ll3.x, ll3.y, ll4.x, ll4.y, Color);
- }
- if (WorldToScreen(Bone[64], ll4) && WorldToScreen(Bone[65], ll5))
- {
- Render->DrawLine(ll4.x, ll4.y, ll5.x, ll5.y, Color);
- }
- if (WorldToScreen(Bone[65], ll5) && WorldToScreen(Bone[66], ll6))
- {
- Render->DrawLine(ll5.x, ll5.y, ll6.x, ll6.y, Color);
- }
- // Right Leg
- if (WorldToScreen(Bone[0], Null) && WorldToScreen(Bone[69], rl1))
- {
- Render->DrawLine(Null.x, Null.y, rl1.x, rl1.y, Color);
- }
- if (WorldToScreen(Bone[69], rl1) && WorldToScreen(Bone[73], rl2))
- {
- Render->DrawLine(rl1.x, rl1.y, rl2.x, rl2.y, Color);
- }
- if (WorldToScreen(Bone[73], rl2) && WorldToScreen(Bone[74], rl3))
- {
- Render->DrawLine(rl2.x, rl2.y, rl3.x, rl3.y, Color);
- }
- if (WorldToScreen(Bone[74], rl3) && WorldToScreen(Bone[70], rl4))
- {
- Render->DrawLine(rl3.x, rl3.y, rl4.x, rl4.y, Color);
- }
- if (WorldToScreen(Bone[70], rl4) && WorldToScreen(Bone[71], rl5))
- {
- Render->DrawLine(rl4.x, rl4.y, rl5.x, rl5.y, Color);
- }
- if (WorldToScreen(Bone[71], rl5) && WorldToScreen(Bone[72], rl6))
- {
- Render->DrawLine(rl5.x, rl5.y, rl6.x, rl6.y, Color);
- }
- // Body
- if (WorldToScreen(Bone[0], Null) && WorldToScreen(Bone[1], b1))
- {
- Render->DrawLine(Null.x, Null.y, b1.x, b1.y, Color);
- }
- if (WorldToScreen(Bone[1], b1) && WorldToScreen(Bone[2], b2))
- {
- Render->DrawLine(b1.x, b1.y, b2.x, b2.y, Color);
- }
- if (WorldToScreen(Bone[2], b2) && WorldToScreen(Bone[3], b3))
- {
- Render->DrawLine(b2.x, b2.y, b3.x, b3.y, Color);
- }
- if (WorldToScreen(Bone[3], b3) && WorldToScreen(Bone[4], b4))
- {
- Render->DrawLine(b3.x, b3.y, b4.x, b4.y, Color);
- }
- if (WorldToScreen(Bone[4], b4) && WorldToScreen(Bone[5], b5))
- {
- Render->DrawLine(b4.x, b4.y, b5.x, b5.y, Color);
- }
- // Head
- if (WorldToScreen(Bone[5], b5) && WorldToScreen(Bone[6], Head))
- {
- Render->DrawLine(b5.x, b5.y, Head.x, Head.y, Color);
- /*Render->DrawLine(Head.x - 1, Head.y - 3, Head.x + 1, Head.y - 3, Color);
- Render->DrawLine(Head.x - 1, Head.y - 3, Head.x - 1, Head.y, Color);
- Render->DrawLine(Head.x + 1, Head.y - 3, Head.x + 1, Head.y, Color);
- Render->DrawLine(Head.x - 1, Head.y, Head.x + 1, Head.y, Color);*/
- Render->DrawLine(Head.x - 4, Head.y - 6, Head.x + 4, Head.y - 6, Color);
- Render->DrawLine(Head.x - 4, Head.y - 6, Head.x - 4, Head.y, Color);
- Render->DrawLine(Head.x + 4, Head.y - 6, Head.x + 4, Head.y, Color);
- Render->DrawLine(Head.x - 4, Head.y, Head.x + 4, Head.y, Color);
- }
- // Left Arm
- if (WorldToScreen(Bone[5], b5) && WorldToScreen(Bone[8], la1))
- {
- Render->DrawLine(b5.x, b5.y, la1.x, la1.y, Color);
- }
- if (WorldToScreen(Bone[8], la1) && WorldToScreen(Bone[33], la2))
- {
- Render->DrawLine(la1.x, la1.y, la2.x, la2.y, Color);
- }
- if (WorldToScreen(Bone[33], la2) && WorldToScreen(Bone[34], la3))
- {
- Render->DrawLine(la2.x, la2.y, la3.x, la3.y, Color);
- }
- if (WorldToScreen(Bone[34], la3) && WorldToScreen(Bone[9], la4))
- {
- Render->DrawLine(la3.x, la3.y, la4.x, la4.y, Color);
- }
- if (WorldToScreen(Bone[9], la4) && WorldToScreen(Bone[31], la5))
- {
- Render->DrawLine(la4.x, la4.y, la5.x, la5.y, Color);
- }
- if (WorldToScreen(Bone[31], la5) && WorldToScreen(Bone[32], la6))
- {
- Render->DrawLine(la5.x, la5.y, la6.x, la6.y, Color);
- }
- // Right Arm
- if (WorldToScreen(Bone[5], b5) && WorldToScreen(Bone[36], ra1))
- {
- Render->DrawLine(b5.x, b5.y, ra1.x, ra1.y, Color);
- }
- if (WorldToScreen(Bone[36], ra1) && WorldToScreen(Bone[61], ra2))
- {
- Render->DrawLine(ra1.x, ra1.y, ra2.x, ra2.y, Color);
- }
- if (WorldToScreen(Bone[61], ra2) && WorldToScreen(Bone[62], ra3))
- {
- Render->DrawLine(ra2.x, ra2.y, ra3.x, ra3.y, Color);
- }
- if (WorldToScreen(Bone[62], ra3) && WorldToScreen(Bone[37], ra4))
- {
- Render->DrawLine(ra3.x, ra3.y, ra4.x, ra4.y, Color);
- }
- if (WorldToScreen(Bone[37], ra4) && WorldToScreen(Bone[59], ra5))
- {
- Render->DrawLine(ra4.x, ra4.y, ra5.x, ra5.y, Color);
- }
- if (WorldToScreen(Bone[59], ra5) && WorldToScreen(Bone[60], ra6))
- {
- Render->DrawLine(ra5.x, ra5.y, ra6.x, ra6.y, Color);
- }
- #pragma endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement