Create an ENT with a ragdoll model?

heya
i am trying to create a custom entity, however setting the model as a ragdoll in the init.lua creates a mingebag abomination.
is there a function i have to add?
init.lua


include("shared.lua")
AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")
function ENT:Initialize()
	self:SetModel( "models/Kleiner.mdl" )                     // basically the only changed part, which doesnt work.
	self:PhysicsInit( SOLID_VPHYSICS )
	self:SetMoveType( MOVETYPE_VPHYSICS )
	self:SetSolid( SOLID_VPHYSICS )

  local phys = self:GetPhysicsObject()
	if (phys:IsValid()) then
		phys:Wake()
	end
end

function ENT:Use( activator, caller )
    return
end


oh by the way it has no baseentity (otherwise it doesnt spawn) and the type is an “anim”.

You’ll have to use a prop_ragdoll (I believe GMod also has another kind of built in ragdoll class as well).

[editline]19th November 2016[/editline]

Otherwise, if you want a normal entity to just have the ragdoll model, the Initialize method should be shared.

well i made it shared, still its basically a weirdly colliding statue.

If you want a ragdoll, you have to use prop_ragdoll or hl2mp_ragdoll

ah yeah I just used a ragdoll and networked the sgit for using. thanks anyway