mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +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.
|
// The rest is only done when the conversation is actually displayed.
|
||||||
if (pc->player == Level->GetConsolePlayer())
|
if (pc->player == Level->GetConsolePlayer())
|
||||||
{
|
{
|
||||||
if (CurNode->SpeakerVoice != 0)
|
if (CurNode->SpeakerVoice != 0)
|
||||||
{
|
{
|
||||||
I_SetMusicVolume (dlg_musicvolume);
|
I_SetMusicVolume (dlg_musicvolume);
|
||||||
S_Sound (npc, CHAN_VOICE, CHANF_NOPAUSE, CurNode->SpeakerVoice, 1, ATTN_NORM);
|
|
||||||
}
|
}
|
||||||
M_StartControlPanel(false, true);
|
M_StartControlPanel(false, true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue