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:
parent
a7e9996441
commit
8b2b5180ed
7 changed files with 155 additions and 11 deletions
|
|
@ -256,7 +256,17 @@ namespace RacesOfValheim
|
|||
float eyeSize = EyeSize;
|
||||
PlayerFace.AdjustEyes(player, ref height, ref separation, ref eyeSize);
|
||||
|
||||
Vector3 baseLocal = frame.LocalForward * (EyeForward * scale * toLocal)
|
||||
float forward = EyeForward;
|
||||
EyePositionConfig.Tuning tuning = EyePositionConfig.For(SvermConfig.RaceId, player);
|
||||
if (tuning != null)
|
||||
{
|
||||
forward += tuning.Forward.Value;
|
||||
height += tuning.Height.Value;
|
||||
separation += tuning.Separation.Value;
|
||||
eyeSize *= tuning.Size.Value;
|
||||
}
|
||||
|
||||
Vector3 baseLocal = frame.LocalForward * (forward * scale * toLocal)
|
||||
+ frame.LocalUp * (height * scale * toLocal);
|
||||
|
||||
float eyeLocalSize = eyeSize * scale * toLocal;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue