Made Strife NPC's dialog voice audible for all players.

This commit is contained in:
nashmuhandes 2021-02-24 02:30:48 +08:00 committed by Christoph Oelckers
parent 21ea68d552
commit 4d56754171

View file

@ -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);