From 7b76df38a1a4203bfd5cb089fc30116a3562832f Mon Sep 17 00:00:00 2001 From: Garrett Brown Date: Sun, 2 Feb 2020 14:01:27 -0500 Subject: [PATCH] Fix ghost bones not working if the model isn't cached. Fixes: #277 --- lua/advdupe2/cl_ghost.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/advdupe2/cl_ghost.lua b/lua/advdupe2/cl_ghost.lua index 5133b2c..14ec5e7 100644 --- a/lua/advdupe2/cl_ghost.lua +++ b/lua/advdupe2/cl_ghost.lua @@ -139,7 +139,7 @@ local function MakeGhostsFromTable(EntTable) GhostEntity:SetColor( Color(255, 255, 255, 150) ) GhostEntity.Phys = EntTable.PhysicsObjects[0] - if util.IsValidRagdoll(EntTable.Model) then + if EntTable.PhysicsObjects[1] then GhostEntity:SetupBones() local parents = {} local angs = {}