Figured out how the hidden rotation gizmos work, now should work with the new version

This commit is contained in:
penolakushari 2022-01-31 17:54:17 +03:00
parent 612d7230b6
commit d38380f9f5
3 changed files with 8 additions and 1 deletions

View File

@ -40,7 +40,11 @@ function ENT:DrawLines(yellow,scale,width)
if yellow then
col = Color(255,255,0,255)
end
table.insert(ToScreen,{points,col})
if GetConVar("ragdollmover_fulldisc"):GetBool() or (moving or
(points[1]:DistToSqr(eyepos) <= borderpos:DistToSqr(eyepos) and points[2]:DistToSqr(eyepos) <= borderpos:DistToSqr(eyepos) and
points[3]:DistToSqr(eyepos) <= borderpos:DistToSqr(eyepos) and points[4]:DistToSqr(eyepos) <= borderpos:DistToSqr(eyepos))) then
table.insert(ToScreen,{points,col})
end
end
for i,v in ipairs(ToScreen) do
render.DrawQuad(v[1][1],v[1][2],v[1][3],v[1][4],v[2])

View File

@ -8,6 +8,7 @@ TOOL.ClientConVar["localpos"] = 0
TOOL.ClientConVar["localang"] = 1
TOOL.ClientConVar["scale"] = 10
TOOL.ClientConVar["width"] = 0.5
TOOL.ClientConVar["fulldisc"] = 0
TOOL.ClientConVar["disablefilter"] = 0
TOOL.ClientConVar["disablechildbone"] = 0
@ -786,6 +787,7 @@ function TOOL.BuildCPanel(CPanel)
CCheckBox(Col1,"#tool.ragdollmover.localang","ragdollmover_localang")
CNumSlider(Col1,"#tool.ragdollmover.scale","ragdollmover_scale",1.0,50.0,1)
CNumSlider(Col1,"#tool.ragdollmover.width","ragdollmover_width",0.1,1,1)
CCheckBox(Col1,"#tool.ragdollmover.fulldisc","ragdollmover_fulldisc")
local Col2 = CCol(CPanel,"#tool.ragdollmover.ikpanel")
CCheckBox(Col2,"#tool.ragdollmover.ik3","ragdollmover_ik_hand_L")

View File

@ -8,6 +8,7 @@ tool.ragdollmover.localpos=Localized position gizmo.
tool.ragdollmover.localang=Localized angle gizmo.
tool.ragdollmover.scale=Scale
tool.ragdollmover.width=Width
tool.ragdollmover.fulldisc=Fully visible discs.
tool.ragdollmover.ikpanel=IK Chains
tool.ragdollmover.ik3=Left Hand IK