mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-17 17:27:19 +02:00
Each bone's scale was held to the limit (a server's bone-scale, 2x by default; 8x on every client), but a bone shows at its own size times its parents' and the whole skater's. A modified client resized each bone of a chain to the limit: four neck bones at 2x showed a neck 16 times as long, within every per-bone check. - skater_bone_parents.h: the parent of each of the skater rig's 386 bones, read from the game's data (animbase_default_renderskeleton), which the pose's skater bones follow. - limit_bone_scale then holds each bone to what its parents leave of the limit: the size it shows stays within 1/limit to limit. A single resized bone (a bigger head) is unchanged; bones past the rig's have no parent and keep the per-bone limit. - Servers and clients already hold every pose to their limit with it, so the combined limit follows each server's bone-scale setting, and every client's 8x where a server allows more. - Tests: a neck chain at 2x each shows at 2x; a resized skater's bones are held to what its own size leaves them.