Allow using pathToAnimController for recorders #520

This commit is contained in:
Nick 2023-07-01 18:25:55 -04:00
parent c7ad912acf
commit 642f6afdc0
2 changed files with 8 additions and 1 deletions

View File

@ -147,6 +147,7 @@ namespace NewHorizons.Builder.Props
var controller = character.GetComponent<CharacterAnimController>(); var controller = character.GetComponent<CharacterAnimController>();
var traveler = character.GetComponent<TravelerController>(); var traveler = character.GetComponent<TravelerController>();
var travelerEye = character.GetComponent<TravelerEyeController>(); var travelerEye = character.GetComponent<TravelerEyeController>();
var hearthianRecorder = character.GetComponent<HearthianRecorderEffects>();
var lookOnlyWhenTalking = info.lookAtRadius <= 0; var lookOnlyWhenTalking = info.lookAtRadius <= 0;
@ -196,6 +197,11 @@ namespace NewHorizons.Builder.Props
dialogue.OnEndConversation += nomaiController.StopWatchingPlayer; dialogue.OnEndConversation += nomaiController.StopWatchingPlayer;
} }
} }
else if (hearthianRecorder != null)
{
// #520
hearthianRecorder._characterDialogueTree = dialogue;
}
else else
{ {
// If they have nothing else just put the face player when talking thing on them // If they have nothing else just put the face player when talking thing on them

View File

@ -22,7 +22,8 @@ namespace NewHorizons.External.Modules.Props.Dialogue
/// <summary> /// <summary>
/// If this dialogue is meant for a character, this is the relative path from the planet to that character's /// If this dialogue is meant for a character, this is the relative path from the planet to that character's
/// CharacterAnimController, TravelerController, TravelerEyeController (eye of the universe), FacePlayerWhenTalking, or SolanumAnimController. /// CharacterAnimController, TravelerController, TravelerEyeController (eye of the universe), FacePlayerWhenTalking,
/// HearthianRecorderEffects or SolanumAnimController.
/// ///
/// If none of those components are present it will add a FacePlayerWhenTalking component. /// If none of those components are present it will add a FacePlayerWhenTalking component.
/// </summary> /// </summary>