RacesOfValheim/JotunnModStub/Skeleton
kanym 2f890f95f7 fix(skeleton): hide beard and skinned helmet pieces correctly
The hair/beard hide called into m_hairItemInstances/m_beardItemInstances
(plural), fields that don't exist on VisEquipment - every other race uses
the real singular m_hairItemInstance/m_beardItemInstance, so the beard was
never actually hidden. Fixed the field names and made the helper handle
both a GameObject and a List<GameObject> defensively.

Helmet hiding only scaled the wrapper to zero, which does nothing for a
skinned-mesh piece bound to the player's own bones - it ignores its
wrapper's transform. Added SkeletonVisuals.SetEquipmentPieceHidden, which
scales to zero and disables every child renderer, and used it everywhere
the helmet is hidden (local player, remote players, main-menu preview).

Also added an F8 debug dump of the hair/beard/helmet instance state
(active, renderer enabled, scale) for diagnosing any future visibility
regressions in-game.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-06 12:12:30 +02:00
..
SkeletonPatches.cs fix(skeleton): hide beard and skinned helmet pieces correctly 2026-08-06 12:12:30 +02:00
SkeletonProgression.cs fix(skeleton): reattach the mandible, light the skull for real, and grow at Fader 2026-08-05 17:30:15 +02:00
SkeletonRace.cs fix(skeleton): hide beard and skinned helmet pieces correctly 2026-08-06 12:12:30 +02:00
SkeletonStatusEffects.cs fix(skeleton): keep Undead Fortitude on the player, and light the skull 2026-08-05 17:20:16 +02:00
SkeletonVisuals.cs fix(skeleton): hide beard and skinned helmet pieces correctly 2026-08-06 12:12:30 +02:00