• Creating clientside ragdolls
    10 replies, posted
[code]] 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![/code] 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?
[QUOTE=c-unit;21526506]clientsided? As in only YOU can see the ragdoll?[/QUOTE] That would be clientside well done you finaly learned something
[QUOTE=c-unit;21526506]clientsided? As in only YOU can see the ragdoll?[/QUOTE]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"
[QUOTE=|King Flawless|;21526520]That would be clientside well done you finaly learned something[/QUOTE] 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. [b][url=http://wiki.garrysmod.com/?title=G.ClientsideModel]G.ClientsideModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [editline]10:02PM[/editline] I do agree that a way to spawn clientside ragdolls would be really helpful though.
[QUOTE=_Kilburn;21526984]Why would you need a ragdoll for that? Just use a clientside model entity. [b][url=http://wiki.garrysmod.com/?title=G.ClientsideModel]G.ClientsideModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [editline]10:02PM[/editline] I do agree that a way to spawn clientside ragdolls would be really helpful though.[/QUOTE] 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:
[QUOTE=Entoros;21530623]"It's somewhat of a simpler clientside prop_physics that supports animations." I doubt it.[/QUOTE] 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]
Sorry, you need to Log In to post a reply to this thread.