mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +00:00
Made Strife NPC's dialog voice audible for all players.
This commit is contained in:
parent
21ea68d552
commit
4d56754171
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue