fix(skeleton): reattach the mandible, light the skull for real, and grow at Fader

The jaw hung off the side of the skull because a creature rig carries bones a
human rig has no answer for. Unmatched bones fell back to bones[0] - the root -
so the mandible was skinned to the hips and followed them. The remap now walks
the creature'''s own hierarchy upward until something matches, which lands a jaw on
the head. It no longer opens, which no player will notice, and it is attached,
which every player did. Teeth and any other facial part the model carries are
fixed by the same walk.

The head flame never appeared. It was built by hand out of the smoke material
with a hand-rolled fire gradient, which at best would have read as a wisp rather
than a burning skull, and at worst never resolved a source at all and returned in
silence. It now clones real fire particles off a vanilla prefab - the torch
first, ground torches and the fire pit behind it - and says in the log which one
it took, or warns if none of them resolved. The torch light comes with it, at
half range and reduced intensity, since a light tuned to fill a corridor from
waist height blows out a face at point-blank range.

Fader now stands 15% taller. That scale goes on the player root, which is how
this race has always sized itself, so the collider, the camera pivot and every
equipment attachment scale with the mesh rather than leaving the model to drift
away from them.
This commit is contained in:
kanym 2026-08-05 17:30:15 +02:00
commit 59c250b4f8
3 changed files with 110 additions and 57 deletions

View file

@ -49,6 +49,11 @@ namespace RacesOfValheim
public const string SummonPrefabName = "Skeleton_friendly";
// Fader's dead stand taller than everyone else's. Applied to the player's root transform,
// which is how this race has always sized itself - so it carries the collider, the camera
// pivot and every equipment attachment up with it, rather than only the mesh.
public static readonly UnityEngine.Vector3 FaderScale = UnityEngine.Vector3.one * 1.15f;
/// <summary>
/// Every tier, exactly as the race's published progression describes it. The table had
/// drifted a long way from that description - poison immunity arrived two tiers late,
@ -115,6 +120,7 @@ namespace RacesOfValheim
{
rules.LifestealPercent = 0.35f;
rules.MaxSummons = 5;
rules.ScaleMultiplier = FaderScale;
}
return rules;