Creating clientside ragdolls


] lua_openscript_cl fuckingbees.lua
Running script fuckingbees.lua...Can't find factory for entity: prop_ragdoll
fuckingbees.lua:30: Tried to use a NULL entity!
] lua_openscript_cl fuckingbees.lua
Running script fuckingbees.lua...
Can't find factory for entity: class C_ClientRagdoll
fuckingbees.lua:30: Tried to use a NULL entity!
] lua_openscript_cl fuckingbees.lua
Running script fuckingbees.lua...
Can't find factory for entity: C_ClientRagdoll
fuckingbees.lua:30: Tried to use a NULL entity!
] lua_openscript_cl fuckingbees.lua
Running script fuckingbees.lua...
Can't find factory for entity: ClientRagdoll
fuckingbees.lua:30: Tried to use a NULL entity!

I’m trying to make one of those player model things where you choose a citizen head and it sticks it onto a different body, so you can have a bearded black mossman, but I can’t spawn the body.
Halp?

clientsided? As in only YOU can see the ragdoll?

That would be clientside well done you finaly learned something

Clientside as in “sixty four constantly moving ragdolls without the networking overhead, server strain and potential collision problems they would bring if they were calculated on the server”

Fuck you… and i hope you mean “finally”? Hopefully you learned something from that

But either way, you want rag-dolls that don’t collide with anything, and only you see them?

Why would you need a ragdoll for that? Just use a clientside model entity.

**[G.ClientsideModel

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=G.ClientsideModel)**

[editline]10:02PM[/editline]

I do agree that a way to spawn clientside ragdolls would be really helpful though.

Do those have bones?

“It’s somewhat of a simpler clientside prop_physics that supports animations.”

I doubt it.

It has bones. And you can’t spawn ragdolls client-side. I’ve been through this already:saddowns:

If it supports animations, then it has bones. :downs: It’s all about the model, not the entity.

Now if you were talking about physics bones, like ragdolls, then obviously not.

Here’s what I wrote yesterday, apparently under the influence of some kind of drugs.
I jacked half the code from ragmod, because I don’t know how bones work.
I didn’t get any errors from the clientsidemodel, but it didn’t do anything either. The print statement printed every think though.
I’m not entirely sure why I started this, but I might as well continue.
Could you explain what I’m supposed to do please? :v:
[lua]local bees, ba, bp, a,b;
hook.Add(“Think”,“Bees are thinking about you”,function()
for _,ply in pairs(player.GetAll()) do
a = ply.bees;
if (IsValid(a)) then
–print(“beethink”,ply);
bees = a:GetPhysicsObjectCount();
for i = 0, bees - 1 do
b = a:GetPhysicsObjectNum(i);
if (IsValid(b)) then
bp,ba = ply:GetBonePosition(a:TranslatePhysBoneToBone(i));
b:SetPos(bp);
b:SetAngles(ba);
end
end
end
end
end);

hook.Add(“DoPlayerDeath”,“Murdered by bees”, function(ply)
if (IsValid(ply.bees)) then
ply.bees:Remove();
end
end);

usermessage.Hook(“fucking bees”, function(msg)
local ply = msg:ReadEntity();
b = ClientsideModel(“models/player/urban.mdl”, RENDERGROUP_OPAQUE;
–[[ents.Create(“ClientRagdoll”);
b:SetModel(“models/player/urban.mdl”);
b:SetPos(ply:GetPos());
b:Spawn();
–]]
ply.bees = b;
print(“bees”, ply, b);
end);[/lua]