fix(fenrir): the Ulv no longer asks the player for feet called LeftHand
The form's CharacterAnimEvent finds its FootStep on the nearest Character up the hierarchy, which for a form parented under the player is the player. The Ulv's Run clip names its front paws LeftHand and RightHand, a human rig has neither, and vanilla logged "FAiled to find foot" twice per stride. The form's receivers are now cut from the player's FootStep, on the local form and on the copy other players see. The footsteps stay: the hidden human animator keeps running and FootStep steps off its curve. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
58874457e0
commit
5bdd7200a5
3 changed files with 52 additions and 1 deletions
|
|
@ -383,6 +383,8 @@ namespace RacesOfValheim {
|
|||
Component animEvent = currentTransformation.GetComponent("AnimEvent");
|
||||
if (animEvent != null) Destroy(animEvent);
|
||||
|
||||
FormFootsteps.Detach(currentTransformation, prefabName);
|
||||
|
||||
// The creature's own animations carry their sounds as events; this is what hears
|
||||
// them. On the object that owns the Animator, because that is where Unity delivers
|
||||
// an animation event - for the wolf that is WolfSmooth, two levels down, not the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue