Ragdoll support?
Is ragdoll support planned or something that will not be added?
I think it'll work if you turn real ragdolls on, but the fake ones have always had trouble colliding with anything that wasn't map brush. That seems unlikely to change, especially since it's a tiny tiny thing.
blame source, I cant setpos a ragdoll across chunks also I am not entirely sure what you mean by "ragdoll support"
Serverside ragdolls is what I'm referring to. They disappear when passing through chunks.
"Some entities, such as ragdolls, will appear unaffected by this function in the next frame. Consider PhysObj:SetPos if necessary." https://wiki.facepunch.com/gmod/Entity:SetPos
I tried that, but I think since we are teleporting the ragdoll across such a massive distance it explodes and I get crazyphysics errors
I tried entity:SetRagdollPos too but I had the same problem, ill keep trying
I whipped up a script that teleports ragdolls to the player
https://pastebin.com/FFyvfxCg
lol I clicked off of gmod and closed the issue accidentally, sorry!
I can't change it now, but I realize I can just do
return isRag[ent:GetClass()] or ent:GetNWBool("RM_Ragmod", false)
instead of
if isRag[ent:GetClass()] or ent:GetNWBool("RM_Ragmod", false) then return true else return false end
on line 6
I updated the script with previously mentioned changes and added PhysObj:SetAngleVelocityInstantaneous() for maintaining angular velocity
https://pastebin.com/ZiQwPYJf
tried it out, it works great! well, it works until you try and teleport across the map.. then I get crazyphysics errors
edit: I edited some functions, its almost working but it for some reason still doesn't want to teleport
edit 2: ok! its working but the ragdoll isnt being rendered for some reason across chunks
bad news, you cant detour the rendering of a ragdoll (atleast in the way im doing it), it remains invisible across chunks
but at least the setpos will work!
You may be able to alter the rendering of ragdolls using the BuildBonePositions callback
You have to modify the matrix of the bones and end it with Entity:SetBoneMatrix(), be sure to do it all on the client!
https://wiki.facepunch.com/gmod/Entity_Callbacks https://wiki.facepunch.com/gmod/Entity:SetBoneMatrix https://wiki.facepunch.com/gmod/Entity:GetBoneMatrix
I made this ragdoll offset using CSEnts but the CSEnt is only visible at certain positions for some reason... I'm still trying to figure it out
https://pastebin.com/7P7W73kW
It's just cause the actual position of the CSEnt is not updated lol
fixed with Entity:SetRenderBounds() instead
updated script, has questionable performance at times but is a good proof of concept
https://pastebin.com/xxAuPPyy
https://i.imgur.com/4bW7xfd.png
performance may be impacted by setting the render bounds as high as I did, although without setting the position of the CSEnt constantly I'm not sure how to fix that. Without either the CSEnt will disappear when it's not in view