mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Allow using pathToAnimController for recorders #520
This commit is contained in:
parent
c7ad912acf
commit
642f6afdc0
@ -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
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user