From 4d56754171126f35eb1f1e3f576afb616a0a6c5e Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Wed, 24 Feb 2021 02:30:48 +0800 Subject: [PATCH] Made Strife NPC's dialog voice audible for all players. --- src/p_conversation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_conversation.cpp b/src/p_conversation.cpp index 69ed835a8..a3b031464 100644 --- a/src/p_conversation.cpp +++ b/src/p_conversation.cpp @@ -392,13 +392,15 @@ void P_StartConversation (AActor *npc, AActor *pc, bool facetalker, bool saveang } } + // [Nash] Play voice clip from the actor so that positional audio can be heard by all players + if (CurNode->SpeakerVoice != 0) S_Sound(npc, CHAN_VOICE, CHANF_NOPAUSE, CurNode->SpeakerVoice, 1, ATTN_NORM); + // The rest is only done when the conversation is actually displayed. if (pc->player == Level->GetConsolePlayer()) { if (CurNode->SpeakerVoice != 0) { I_SetMusicVolume (dlg_musicvolume); - S_Sound (npc, CHAN_VOICE, CHANF_NOPAUSE, CurNode->SpeakerVoice, 1, ATTN_NORM); } M_StartControlPanel(false, true);