Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 0 additions & 148 deletions AntiBan+loop.lua

This file was deleted.

38 changes: 38 additions & 0 deletions Định vi
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
void DrawSkeleton(Entity entity, Matrix4x4 camMatrix, ImDrawListPtr drawList, float screenWidth, float screenHeight)
{
uint colorBone = ColorToUint32(Color.Red);
float boneRadius = 3.0f;

Vector3[] bones = new Vector3[]
{
entity.head,
entity.Spine,
entity.root,
entity.LeftShoulder,
entity.RightShoulder,
entity.LeftElbow,
entity.RightElbow,
entity.LeftWrist,
entity.RightWrist,
entity.LeftHand,
entity.RightHand,
entity.LeftHip,
entity.RightHip,
entity.LeftKnee,
entity.RightKnee,
entity.LeftAnkle,
entity.RightAnkle,
entity.LeftFoot,
entity.RightFoot
};

foreach (Vector3 bone in bones)
{
Vector2 screenPos = Core.W2S(bone, camMatrix);

if (screenPos.X > 0 && screenPos.X < screenWidth && screenPos.Y > 0 && screenPos.Y < screenHeight)
{
drawList.AddCircleFilled(screenPos, boneRadius, colorBone);
}
}
}