Garry's Mod
Evaluări insuficiente
BoneCore2 (Expression 2 Extension)
   
Premiază
Adaugă la preferate
Preferat
Elimină din preferate
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
Dimensiunea fișierului
Postat
Actualizat
22.272 KB
16 mai 2022 la 18:15
26 nov. 2024 la 15:57
7 jurnale de actualizare ( vizionare )

Abonează-te pentru a descărca
BoneCore2 (Expression 2 Extension)

În 1 colecție creată de [FC&N] Magnum MacKivler
FC&N Addon Pack (Official)
238 obiecte
Descriere
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 comentarii
starwarsfan123 10 febr. 2024 la 9:13 
im confused bc idk how to index a bone in gmod
america's golden shower era 28 iun. 2023 la 11:28 
Update has fixed this
america's golden shower era 5 apr. 2023 la 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