mirror of
https://github.com/Winded/RagdollMover.git
synced 2025-03-04 03:13:36 -05:00
Figured out how the hidden rotation gizmos work, now should work with the new version
This commit is contained in:
parent
612d7230b6
commit
d38380f9f5
@ -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])
|
||||
|
@ -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")
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user