Advertisement
Guest User

Untitled

a guest
Dec 1st, 2015
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.57 KB | None | 0 0
  1. #pragma region "Bone ESP"
  2.                 CVector Bone[79];
  3.  
  4.                 CVector Null, b1, b2, b3, b4, b5 = 0;
  5.                 CVector ll1, ll2, ll3, ll4, ll5, ll6 = 0;
  6.                 CVector rl1, rl2, rl3, rl4, rl5, rl6 = 0;
  7.                 CVector la1, la2, la3, la4, la5, la6 = 0;
  8.                 CVector ra1, ra2, ra3, ra4, ra5, ra6 = 0;
  9. #pragma region "Left Leg"
  10.                 Bone[63] = Entity->GetBone(63);
  11.                 Bone[67] = Entity->GetBone(67);
  12.                 Bone[68] = Entity->GetBone(68);
  13.                 Bone[64] = Entity->GetBone(64);
  14.                 Bone[65] = Entity->GetBone(65);
  15.                 Bone[66] = Entity->GetBone(66);
  16. #pragma endregion
  17. #pragma region "Right Leg"
  18.                 Bone[69] = Entity->GetBone(69);
  19.                 Bone[73] = Entity->GetBone(73);
  20.                 Bone[74] = Entity->GetBone(74);
  21.                 Bone[70] = Entity->GetBone(70);
  22.                 Bone[71] = Entity->GetBone(71);
  23.                 Bone[72] = Entity->GetBone(72);
  24. #pragma endregion
  25. #pragma region "Left Arm"
  26.                 Bone[8] = Entity->GetBone(8);
  27.                 Bone[33] = Entity->GetBone(33);
  28.                 Bone[34] = Entity->GetBone(34);
  29.                 Bone[9] = Entity->GetBone(9);
  30.                 Bone[31] = Entity->GetBone(31);
  31.                 Bone[32] = Entity->GetBone(32);
  32. #pragma endregion
  33. #pragma region "Right Arm"
  34.                 Bone[36] = Entity->GetBone(36);
  35.                 Bone[61] = Entity->GetBone(61);
  36.                 Bone[62] = Entity->GetBone(62);
  37.                 Bone[37] = Entity->GetBone(37);
  38.                 Bone[59] = Entity->GetBone(59);
  39.                 Bone[60] = Entity->GetBone(60);
  40. #pragma endregion
  41. #pragma region "Body"
  42.                 Bone[0] = Entity->GetBone(0);
  43.                 Bone[1] = Entity->GetBone(1);
  44.                 Bone[2] = Entity->GetBone(2);
  45.                 Bone[3] = Entity->GetBone(3);
  46.                 Bone[4] = Entity->GetBone(4);
  47.                 Bone[5] = Entity->GetBone(5);
  48. #pragma endregion
  49. #pragma region "Head"
  50.                 Bone[6] = Entity->GetBone(6);
  51. #pragma endregion
  52.  
  53.                 CColor Color = CColor(255, 255, 255, 255);
  54.                 // Left Leg
  55.                 if (WorldToScreen(Bone[0], Null) && WorldToScreen(Bone[63], ll1))
  56.                 {
  57.                     Render->DrawLine(Null.x, Null.y, ll1.x, ll1.y, Color);
  58.                 }
  59.                 if (WorldToScreen(Bone[63], ll1) && WorldToScreen(Bone[67], ll2))
  60.                 {
  61.                     Render->DrawLine(ll1.x, ll1.y, ll2.x, ll2.y, Color);
  62.                 }
  63.                 if (WorldToScreen(Bone[67], ll2) && WorldToScreen(Bone[68], ll3))
  64.                 {
  65.                     Render->DrawLine(ll2.x, ll2.y, ll3.x, ll3.y, Color);
  66.                 }
  67.                 if (WorldToScreen(Bone[68], ll3) && WorldToScreen(Bone[64], ll4))
  68.                 {
  69.                     Render->DrawLine(ll3.x, ll3.y, ll4.x, ll4.y, Color);
  70.                 }
  71.                 if (WorldToScreen(Bone[64], ll4) && WorldToScreen(Bone[65], ll5))
  72.                 {
  73.                     Render->DrawLine(ll4.x, ll4.y, ll5.x, ll5.y, Color);
  74.                 }
  75.                 if (WorldToScreen(Bone[65], ll5) && WorldToScreen(Bone[66], ll6))
  76.                 {
  77.                     Render->DrawLine(ll5.x, ll5.y, ll6.x, ll6.y, Color);
  78.                 }
  79.                 // Right Leg
  80.                 if (WorldToScreen(Bone[0], Null) && WorldToScreen(Bone[69], rl1))
  81.                 {
  82.                     Render->DrawLine(Null.x, Null.y, rl1.x, rl1.y, Color);
  83.                 }
  84.                 if (WorldToScreen(Bone[69], rl1) && WorldToScreen(Bone[73], rl2))
  85.                 {
  86.                     Render->DrawLine(rl1.x, rl1.y, rl2.x, rl2.y, Color);
  87.                 }
  88.                 if (WorldToScreen(Bone[73], rl2) && WorldToScreen(Bone[74], rl3))
  89.                 {
  90.                     Render->DrawLine(rl2.x, rl2.y, rl3.x, rl3.y, Color);
  91.                 }
  92.                 if (WorldToScreen(Bone[74], rl3) && WorldToScreen(Bone[70], rl4))
  93.                 {
  94.                     Render->DrawLine(rl3.x, rl3.y, rl4.x, rl4.y, Color);
  95.                 }
  96.                 if (WorldToScreen(Bone[70], rl4) && WorldToScreen(Bone[71], rl5))
  97.                 {
  98.                     Render->DrawLine(rl4.x, rl4.y, rl5.x, rl5.y, Color);
  99.                 }
  100.                 if (WorldToScreen(Bone[71], rl5) && WorldToScreen(Bone[72], rl6))
  101.                 {
  102.                     Render->DrawLine(rl5.x, rl5.y, rl6.x, rl6.y, Color);
  103.                 }
  104.                 // Body
  105.                 if (WorldToScreen(Bone[0], Null) && WorldToScreen(Bone[1], b1))
  106.                 {
  107.                     Render->DrawLine(Null.x, Null.y, b1.x, b1.y, Color);
  108.                 }
  109.                 if (WorldToScreen(Bone[1], b1) && WorldToScreen(Bone[2], b2))
  110.                 {
  111.                     Render->DrawLine(b1.x, b1.y, b2.x, b2.y, Color);
  112.                 }
  113.                 if (WorldToScreen(Bone[2], b2) && WorldToScreen(Bone[3], b3))
  114.                 {
  115.                     Render->DrawLine(b2.x, b2.y, b3.x, b3.y, Color);
  116.                 }
  117.                 if (WorldToScreen(Bone[3], b3) && WorldToScreen(Bone[4], b4))
  118.                 {
  119.                     Render->DrawLine(b3.x, b3.y, b4.x, b4.y, Color);
  120.                 }
  121.                 if (WorldToScreen(Bone[4], b4) && WorldToScreen(Bone[5], b5))
  122.                 {
  123.                     Render->DrawLine(b4.x, b4.y, b5.x, b5.y, Color);
  124.                 }
  125.                 // Head
  126.                 if (WorldToScreen(Bone[5], b5) && WorldToScreen(Bone[6], Head))
  127.                 {
  128.                     Render->DrawLine(b5.x, b5.y, Head.x, Head.y, Color);
  129.  
  130.                     /*Render->DrawLine(Head.x - 1, Head.y - 3, Head.x + 1, Head.y - 3, Color);
  131.                     Render->DrawLine(Head.x - 1, Head.y - 3, Head.x - 1, Head.y, Color);
  132.                     Render->DrawLine(Head.x + 1, Head.y - 3, Head.x + 1, Head.y, Color);
  133.                     Render->DrawLine(Head.x - 1, Head.y, Head.x + 1, Head.y, Color);*/
  134.                     Render->DrawLine(Head.x - 4, Head.y - 6, Head.x + 4, Head.y - 6, Color);
  135.                     Render->DrawLine(Head.x - 4, Head.y - 6, Head.x - 4, Head.y, Color);
  136.                     Render->DrawLine(Head.x + 4, Head.y - 6, Head.x + 4, Head.y, Color);
  137.                     Render->DrawLine(Head.x - 4, Head.y, Head.x + 4, Head.y, Color);
  138.  
  139.                 }
  140.                 // Left Arm
  141.                 if (WorldToScreen(Bone[5], b5) && WorldToScreen(Bone[8], la1))
  142.                 {
  143.                     Render->DrawLine(b5.x, b5.y, la1.x, la1.y, Color);
  144.                 }
  145.                 if (WorldToScreen(Bone[8], la1) && WorldToScreen(Bone[33], la2))
  146.                 {
  147.                     Render->DrawLine(la1.x, la1.y, la2.x, la2.y, Color);
  148.                 }
  149.                 if (WorldToScreen(Bone[33], la2) && WorldToScreen(Bone[34], la3))
  150.                 {
  151.                     Render->DrawLine(la2.x, la2.y, la3.x, la3.y, Color);
  152.                 }
  153.                 if (WorldToScreen(Bone[34], la3) && WorldToScreen(Bone[9], la4))
  154.                 {
  155.                     Render->DrawLine(la3.x, la3.y, la4.x, la4.y, Color);
  156.                 }
  157.                 if (WorldToScreen(Bone[9], la4) && WorldToScreen(Bone[31], la5))
  158.                 {
  159.                     Render->DrawLine(la4.x, la4.y, la5.x, la5.y, Color);
  160.                 }
  161.                 if (WorldToScreen(Bone[31], la5) && WorldToScreen(Bone[32], la6))
  162.                 {
  163.                     Render->DrawLine(la5.x, la5.y, la6.x, la6.y, Color);
  164.                 }
  165.                 // Right Arm
  166.                 if (WorldToScreen(Bone[5], b5) && WorldToScreen(Bone[36], ra1))
  167.                 {
  168.                     Render->DrawLine(b5.x, b5.y, ra1.x, ra1.y, Color);
  169.                 }
  170.                 if (WorldToScreen(Bone[36], ra1) && WorldToScreen(Bone[61], ra2))
  171.                 {
  172.                     Render->DrawLine(ra1.x, ra1.y, ra2.x, ra2.y, Color);
  173.                 }
  174.                 if (WorldToScreen(Bone[61], ra2) && WorldToScreen(Bone[62], ra3))
  175.                 {
  176.                     Render->DrawLine(ra2.x, ra2.y, ra3.x, ra3.y, Color);
  177.                 }
  178.                 if (WorldToScreen(Bone[62], ra3) && WorldToScreen(Bone[37], ra4))
  179.                 {
  180.                     Render->DrawLine(ra3.x, ra3.y, ra4.x, ra4.y, Color);
  181.                 }
  182.                 if (WorldToScreen(Bone[37], ra4) && WorldToScreen(Bone[59], ra5))
  183.                 {
  184.                     Render->DrawLine(ra4.x, ra4.y, ra5.x, ra5.y, Color);
  185.                 }
  186.                 if (WorldToScreen(Bone[59], ra5) && WorldToScreen(Bone[60], ra6))
  187.                 {
  188.                     Render->DrawLine(ra5.x, ra5.y, ra6.x, ra6.y, Color);
  189.                 }
  190.  
  191. #pragma endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement