Garry's Mod

Garry's Mod

Pas assez d'évaluations
BoneCore2 (Expression 2 Extension)
   
Récompenser
Ajouter aux favoris
Favoris
Retirer des favoris
Type de contenu: Addon
Type d'addon: Outil
Mots-clés d'addon: Construction, Divertissement
Taille du fichier
Publié le
Mis à jour le
22.272 KB
16 mai 2022 à 18h15
26 nov. 2024 à 15h57
7 notes de changement ( voir )

S'abonner pour télécharger
BoneCore2 (Expression 2 Extension)

Dans 1 collection faite par [FC&N] Magnum MacKivler
FC&N Addon Pack (Official)
238 objets
Description
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 commentaires
starwarsfan123 10 févr. 2024 à 9h13 
im confused bc idk how to index a bone in gmod
america's golden shower era 28 juin 2023 à 11h28 
Update has fixed this
america's golden shower era 5 avr. 2023 à 6h16 
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