Is there any way of having the player create a physical entity when they die instead of a ragdoll you can't do anything with? I couldn't get anywhere.
What I had:
[lua]
local meta = FindMetaTable("Player")
function meta:Ragdoll()
if IsValid(self) then
return GAMEMODE:CreateEntityRagdoll(self,self)
end
end
function GM:DoPlayerDeath( ply, attacker, dmginfo )
ply:CreateRagdoll()
ply:Ragdoll()
print(rag)
end
[/lua]
[editline]19th December 2012[/editline]
Nevermind, a quick look into ULX's code gave me an answer.
Sorry, you need to Log In to post a reply to this thread.