diff options
Diffstat (limited to 'gamemode/client/render_noragdolls.lua')
| -rw-r--r-- | gamemode/client/render_noragdolls.lua | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gamemode/client/render_noragdolls.lua b/gamemode/client/render_noragdolls.lua index 915d470..c3ffb09 100644 --- a/gamemode/client/render_noragdolls.lua +++ b/gamemode/client/render_noragdolls.lua @@ -1,6 +1,11 @@ -function GM:Initialize() - timer.Create( "removeRagdolls", 3, 0, function() - game.RemoveRagdolls() +hook.Add("Initialize","cleanupragdolls",function() + print("Client initalized") + timer.Create( "removeRagdolls", 3, 0, function() + for k,v in pairs(ents.GetAll()) do + if(v:GetClass() == "class C_ClientRagdoll") then + v:Remove() + end + end + end) end) -end |
