Garry's Mod

Garry's Mod

评价数不足
[E2] Player Bone Poser
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 建筑
文件大小
发表于
更新日期
1.201 KB
2015 年 1 月 25 日 上午 10:04
2015 年 1 月 25 日 上午 10:26
2 项改动说明 ( 查看 )

订阅以下载
[E2] Player Bone Poser

描述
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 条留言
Thomasims  [作者] 2017 年 9 月 6 日 上午 8:37 
@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 2017 年 9 月 5 日 下午 9:18 
How do you get the BoneID for every bone in your playermodels so you can know which one you are editing?
Top J 2017 年 9 月 5 日 上午 3:40 
wtf where do i need to paste this command ? they dont work in the console , help pls
Pimpampet 2017 年 1 月 7 日 上午 6:17 
when i try to make my head bigger it says unknown command and then the first thing there is typed
molly 2016 年 10 月 4 日 上午 9:16 
@Ben&RexGaming No, it doesn't, i'm sorry.
Guyen 2016 年 1 月 18 日 下午 8:31 
@[GMT]Thomasims It doesn't work for me, when I put "(my name):setBoneScale(BoneID, scale) it says unknown command: (my name)
asr43331 2016 年 1 月 6 日 下午 2:48 
thanks, I guess i'll use the rag doll mover tool then
Thomasims  [作者] 2016 年 1 月 6 日 上午 9:41 
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 2016 年 1 月 4 日 下午 10:36 
can I apply this to ragdolls, and can i get some sample code
Thomasims  [作者] 2015 年 8 月 2 日 上午 6:35 
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.