• Hiding Player's Body Parts
    4 replies, posted
Well I've been playing around with bones lately, and I became tempted to figure out hiding the player's body parts. I was able to practically do what I intended with the [B]ManipulateBoneScale[/B] function, but I've come across an issue. By setting the bone scale to Vector( 0, 0, 0 ) I was able to successfully hide the player's head with no issue, but trying to hide any part of the arms was a different story. In this picture, I tried to just hide the player's hand, the bone ValveBiped.Bip01_L_Hand. [IMG]http://puu.sh/6gYWY/cafb9c0310.jpg[/IMG] In some angles the hand was practically invisible, but most of the time you'd just see a shrunken hand. The arms are practically the same issue. In certain angles you see this: [IMG]http://puu.sh/6gZ50/e85a67c642.jpg[/IMG] Unfortunately the majority of the time you see this. [IMG]http://puu.sh/6gZ5j/27a8ad4af7.jpg[/IMG] These are the bones I ended up with attempting to hide, started from all the pieces of the arms to the fingers.. [IMG]http://puu.sh/6gZlQ/8e06029b44.png[/IMG] I'm honestly not sure what the problem is, but I feel I'm missing some sort of client-side necessary part of this. I made clients invalidate the bone cache of the entity after it's bones were scaled but that didn't seem to help. Unless I'm missing something much bigger here. Thanks for your time.
When you scale it, it leaves a thin outline. You'll need to reposition the bone too.
Alright well I tried to use ManipulateBonePosition just now, but the arms stretch to where the bone was moved unless I was supposed to be using the client-side function SetBonePosition? Also I've been searching around and saw bone matrixs being used for this, would I have to do that as well?
[QUOTE=Jeezy;43496193]Alright well I tried to use ManipulateBonePosition just now, but the arms stretch to where the bone was moved unless I was supposed to be using the client-side function SetBonePosition? Also I've been searching around and saw bone matrixs being used for this, would I have to do that as well?[/QUOTE] Depending on who is supposed to see it. Usually the bone is moved to the center of the body or just inside the next bone.
Yeah I was thinking about moving it inside the next bone but wasn't too sure how to exactly calculate that. I tried playing around with an offset on the position but got no where close to the next bone.
Sorry, you need to Log In to post a reply to this thread.