Garry's Mod

Garry's Mod

评价数不足
BoneCore2 (Expression 2 Extension)
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 快乐
文件大小
发表于
更新日期
22.272 KB
2022 年 5 月 16 日 下午 6:15
2024 年 11 月 26 日 下午 3:57
7 项改动说明 ( 查看 )

订阅以下载
BoneCore2 (Expression 2 Extension)

在 [FC&N] Magnum MacKivler 的 1 个合集中
FC&N Addon Pack (Official)
239 件物品
描述
MAKE SURE TO ENABLE THE EXTENSION PRIOR TO USE. The following console command will enable BoneCore2 on your server:
wire_expression2_extension_enable bonecore2
ALSO IMPORTANT, MAKE SURE BONE MANIPULATION IS ENABLED ON THE SERVER. The following console command should be placed into the server's cfg/server.cfg file:
sbox_bonemanip_misc 1




Bonecore 2
Sadly, not a genre of music with lots of xylophones as the name would suggest. BoneCore2 is an extension for Wiremod's Expression 2 that adds bone manipulation functions.

This addon is meant to improve upon the original Bone Core made by Void, using a slightly more reliable method and adding more functions for getting and setting bone manipulations. The addons are NOT meant to be used together. The addon is not compatible with gmod's vanilla bone manipulation property for reasons of efficiency[wiki.facepunch.com].

The Functions
BoneCore2 features a full library of functions which can change a bone's position, angle, scale, and jiggliness. Position, angle, and scale are interpolated, meaning they will change quickly but smoothly.

Name & Index
E:boneIndex(S)
Returns the numeric index associated with E's bone (named S), or -1 if invalid.
E:boneName(N)
Returns the name associated with E's bone (index N) or an empty string if invalid.

Position
E:setBonePos(N, V)
Sets the position of E's bone (index N) local to E.
E:setBonePosRelative(N, V)
Sets the position of E's bone (index N) relative to the default position. Setting the value to (0,0,0) moves the bone to its default position.
E:getBonePos(N)
Returns the position of E's bone (index N) local to E.

Angles
E:setBoneAng(N, A)
Sets the angles of E's bone (index N) local to E.
E:setBoneAngRelative(N, A)
Sets the angles of E's bone (index N) relative to the default position. Setting the value to (0,0,0) moves the bone to its default position.
E:getBoneAng(N)
Returns the angles of E's bone (index N) local to E.

Scale
E:setBoneScale(N, V)
Sets the scale of E's bone (index N). Default scale is vec(1,1,1).
E:getBoneScale(N)
Returns the scale of E's bone (index N).

Jiggle
E:setBoneJiggle(N, N)
Sets E2's bone (index N) to be jiggly (1) or rigid (0).
E:getBoneJiggle(N)
Returns whether E's bone (index N) is jiggly (1) or rigid (0).


3 条留言
starwarsfan123 2024 年 2 月 10 日 上午 9:13 
im confused bc idk how to index a bone in gmod
america's golden shower era 2023 年 6 月 28 日 上午 11:28 
Update has fixed this
america's golden shower era 2023 年 4 月 5 日 上午 6:16 
Previously this would fail on line 47. New error: sv: Expression 2 (RepLC v0.0.5 control stand - GP7/GP9/GP16/GP20): entities/gmod_wire_expression2/core/custom/bonecore2.lua:199: attempt to index local 'this' (a nil value)

Here is the E2 code, happens when it is spawned using advanced dupe: https://github.com/tylar-np/gmod-tylars-e2-pack/blob/master/expression2/tylars-pack/replc/stands/005/replc_stand_anyone_gp7_9_16_20.txt