Garry's Mod

Garry's Mod

Not enough ratings
[E2] Player Bone Poser
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Build
File Size
Posted
Updated
1.201 KB
25 Jan, 2015 @ 10:04am
25 Jan, 2015 @ 10:26am
2 Change Notes ( view )

Subscribe to download
[E2] Player Bone Poser

Description
THIS IS AN EXTENSION FOR WIREMOD, NOT CONSOLE COMMANDS
This addon will let you use the expression 2 to pose you and your friend's bones!
That means you get to modify the position, the angle and the scale of your body parts to your liking!

It also adds an idle 'weapon' so you can pose without the guns default pose getting in your way. its type is 'boneposer_idle'

Functions:

player:setBonePosition(BoneID, position)
this function chages a specific bone position (positions are local to the original position + the parent position, putting vec(1,0,0) will NOT move your bone to near the origin of the map but instead move it slightly in a direction).
ex: owner():setBonePosition(5,vec(10,0,0)) will move your player head up 10 units (can be different from one playermodel to another)

player:setBoneAngles(BoneID, angle)
changes a bone angle (angles are local to the original angle + the parent angle)
ex: owner():setBoneAngles(5,ang(45,0,0)) will rotate your head (bone #5) 45 degrees in some direction (addon picture was done with this one).

player:setBoneScale(BoneID, scale)
scales a particular bone, vec(1,1,1) being the regular scale.
ex: owner():setBoneScale(5,vec(5,5,5)) will make your head (on most playermodels) bigger.

Commands:

boneposinge2_canuse 1-2:
Who can use the functions (1:everyone, 2:only admins) default:1.

boneposinge2_modothers 1-2:
Who can use the functions on EVERYONE (1:everyone, 2:only admins(recommended)) default:2.
12 Comments
Thomasims  [author] 6 Sep, 2017 @ 8:37am 
@Mr.DarkWeb: That's a good point, didn't think to implement that function, you can get BoneIDs with trial&error or with the lua functions if you know how to use them.
@People who think this is a command: it's not, it's an extension for an addon called 'wiremod', you have to be able to use the 'Expression 2' (from that addon) in order to get this working.
Bingegamer 5 Sep, 2017 @ 9:18pm 
How do you get the BoneID for every bone in your playermodels so you can know which one you are editing?
Top J 5 Sep, 2017 @ 3:40am 
wtf where do i need to paste this command ? they dont work in the console , help pls
Pimpampet 7 Jan, 2017 @ 6:17am 
when i try to make my head bigger it says unknown command and then the first thing there is typed
AngelFragrance 4 Oct, 2016 @ 9:16am 
@Ben&RexGaming No, it doesn't, i'm sorry.
Guyen 18 Jan, 2016 @ 8:31pm 
@[GMT]Thomasims It doesn't work for me, when I put "(my name):setBoneScale(BoneID, scale) it says unknown command: (my name)
asr43331 6 Jan, 2016 @ 2:48pm 
thanks, I guess i'll use the rag doll mover tool then
Thomasims  [author] 6 Jan, 2016 @ 9:41am 
You cannot do this to ragdolls, the normal bone functions included with wiremod should work on them.

Here's a piece of code that would make your head twice as big:
owner():setBoneScale(5,vec(2))

Breakdown:
-Take the entity returned by 'owner()' (you)
-Apply 'setBoneScale' on this entity and use as parameters:
*a number, the bone ID (5 is the head in this case)
*a vector, the relative size (vec(2) == vector(2,2,2))
asr43331 4 Jan, 2016 @ 10:36pm 
can I apply this to ragdolls, and can i get some sample code
Thomasims  [author] 2 Aug, 2015 @ 6:35am 
It's most likely not what he used, this relies on Wiremod, which needs stools to be used and I don't think Hide and Seek has them.