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
|
|
@ -212,7 +212,9 @@ namespace RacesOfValheim
|
|||
m_currentFormInstance.transform.localRotation = Quaternion.identity;
|
||||
Component animEvent = m_currentFormInstance.GetComponent("AnimEvent");
|
||||
if (animEvent != null) Destroy(animEvent);
|
||||
|
||||
|
||||
FormFootsteps.Detach(m_currentFormInstance, currentForm);
|
||||
|
||||
// Clean up colliders on remote visuals
|
||||
foreach (var col in m_currentFormInstance.GetComponentsInChildren<Collider>())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue