From b8479b8e80bc50eeaf31ab306a2d43e05aaa2185 Mon Sep 17 00:00:00 2001 From: Sabian Roberts <31491602+sabianroberts@users.noreply.github.com> Date: Mon, 25 Nov 2024 00:21:06 +0000 Subject: [PATCH] Update scientist.cpp --- SourceCode/dlls/scientist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SourceCode/dlls/scientist.cpp b/SourceCode/dlls/scientist.cpp index 86f62236..2a69fdaa 100644 --- a/SourceCode/dlls/scientist.cpp +++ b/SourceCode/dlls/scientist.cpp @@ -700,6 +700,7 @@ void CScientist :: Precache( void ) PRECACHE_SOUND("scientist/sci_pain3.wav"); PRECACHE_SOUND("scientist/sci_pain4.wav"); PRECACHE_SOUND("scientist/sci_pain5.wav"); + PRECACHE_SOUND("scream.wav"); // every new scientist must call this, otherwise // when a level is loaded, nobody will talk (time is reset to 0) @@ -807,7 +808,7 @@ void CScientist :: PainSound ( void ) //========================================================= void CScientist :: DeathSound ( void ) { - PainSound(); + EMIT_SOUND_DYN(ENT(pev), CHAN_VOICE, "scream.wav", 1, ATTN_NORM, 0, GetVoicePitch()); }