Shortened Combat Training Introduction Cinematic

This commit is contained in:
Rafal Swierczek 2024-04-29 13:26:28 +01:00
parent 131072c9c8
commit 8adae0d977
19 changed files with 45 additions and 27 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5ed3962220f9b37fdb14b006b067d38ea49cfefd476be028a42523d03d2c9909
size 1961339
oid sha256:f4211d6e2a422b1e3f11cd0d904174b94961728a807725b7702dee221a52cb74
size 1956244

Binary file not shown.

View File

@ -76,7 +76,7 @@ void UAC_PlayerDialogueInterpreter::NextDialogue()
if (IsValid(CurrentChoiceNode)) return;
if (IsValid(CurrentTextNode))
{
CurrentVoiceOverAudioComponent->Stop();
if (IsValid(CurrentVoiceOverAudioComponent)) CurrentVoiceOverAudioComponent->Stop();
if (CurrentTextNode->ChildrenNodes.Num() == 0)
{
EndDialogue();
@ -142,7 +142,7 @@ void UAC_PlayerDialogueInterpreter::NextDialogue()
void UAC_PlayerDialogueInterpreter::MakeChoiceDialogue(const int Choice)
{
if (!IsValid(CurrentChoiceNode)) return;
CurrentVoiceOverAudioComponent->Stop();
if (IsValid(CurrentVoiceOverAudioComponent)) CurrentVoiceOverAudioComponent->Stop();
if (Cast<UDialogueChoiceNode>(CurrentChoiceNode->ChildrenNodes[Choice]))
{
CurrentChoiceNode = Cast<UDialogueChoiceNode>(CurrentChoiceNode->ChildrenNodes[Choice]);
@ -172,7 +172,7 @@ void UAC_PlayerDialogueInterpreter::EndDialogue()
CurrentTextNode = nullptr;
CurrentAddItemNode = nullptr;
CurrentCharacterSpeaking = FDialogueCharacter();
CurrentVoiceOverAudioComponent->Stop();
if (IsValid(CurrentVoiceOverAudioComponent)) CurrentVoiceOverAudioComponent->Stop();
CurrentVoiceOverAudioComponent = nullptr;
if (APlayerController* PlayerController = GetWorld()->GetFirstPlayerController())