feat(eyes): per-race eye position sliders in Configuration Manager

One 'Eyes Position - <race>' section each for the Alfar, Aswid, Dvergar and
Sverm, with a female and a male set: forward, height, separation and size,
plus rotation X/Y/Z for the Alfar and Aswid. All are deltas on the computed
placement (0 and size 1 change nothing), read live, and left local by
ConfigSync because they only change how this client draws faces.
This commit is contained in:
kanym 2026-10-27 15:21:19 +01:00
commit 8b2b5180ed
7 changed files with 155 additions and 11 deletions

View file

@ -283,7 +283,17 @@ namespace RacesOfValheim
float eyeSize = DvergarConfig.EyeSize;
PlayerFace.AdjustEyes(player, ref height, ref separation, ref eyeSize);
Vector3 baseLocal = localForward * (DvergarConfig.EyeForward * raceScale * toLocal)
float forward = DvergarConfig.EyeForward;
EyePositionConfig.Tuning tuning = EyePositionConfig.For(DvergarConfig.RaceId, player);
if (tuning != null)
{
forward += tuning.Forward.Value;
height += tuning.Height.Value;
separation += tuning.Separation.Value;
eyeSize *= tuning.Size.Value;
}
Vector3 baseLocal = localForward * (forward * raceScale * toLocal)
+ localUp * (height * raceScale * toLocal);
float eyeLocalSize = eyeSize * raceScale * toLocal;