• Reliable Bone Positioning?
    1 replies, posted
Does anyone happen to have a procedure for finding reliable / linear bone-positioning for attachments? Tried using LookupBone in a few different scenarios but every ragdoll appears to spew different results ending up with a malformed position / angle. Need a way to find a localized position for all player-models so that I can attach the 'items' without having to setup unique offsets for each player-model. EyePos and AimVector appear to be unique to player-model as well. [code] ply:SetModel("models/player/kleiner.mdl") print(ply:LookupBone("ValveBiped.Bip01_L_Shoulder")) --Valid Bone / HL2 ply:SetModel("models/player/guerilla.mdl") print(ply:LookupBone("ValveBiped.Bip01_L_Shoulder")) --Invalid Bone / CS:S ply:SetModel("models/player/zombie_classic.mdl") print(ply:LookupBone("ValveBiped.Bip01_L_Shoulder")) --Invalid Bone for this model / Zombine HL2 [/code] Result of attaching with a single offset to multiple player-models via LookupBone. Zombie doesn't even have a shoulder node apparently. [img]http://s30.postimg.org/hlg620apb/inv.png[/img] Thanks for any assistance as I have not been able to find much through searching, feel free to link me to any resources as well.
IFAIK Almost everytime I and anyone tried to do something like this we all ended up creating offsets for certain models.
Sorry, you need to Log In to post a reply to this thread.