mirror of
https://github.com/Winded/RagdollMover.git
synced 2025-03-04 03:13:36 -05:00
Forgot to adjust the reset bone to work with a little bit redone bone list
This commit is contained in:
parent
d88d126a33
commit
afbbcfe3e0
@ -526,13 +526,11 @@ end
|
||||
|
||||
local function RGMResetButton(cpanel)
|
||||
local pl = LocalPlayer()
|
||||
if !pl.rgm then return end
|
||||
local ent = pl.rgm.Entity
|
||||
if !IsValid(ent) then return end
|
||||
local butt = vgui.Create("DButton", cpanel)
|
||||
butt:SetText("Reset Non-Physics Bone")
|
||||
function butt:DoClick()
|
||||
if !IsValid(ent) then return end
|
||||
if not pl.rgm then return end
|
||||
if not IsValid(pl.rgm.Entity) then return end
|
||||
RunConsoleCommand("ragdollmover_resetbone", 1)
|
||||
end
|
||||
cpanel:AddItem(butt)
|
||||
|
Loading…
Reference in New Issue
Block a user