Skip to content

Commit

Permalink
Update scientist.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Nov 25, 2024
1 parent 0c61783 commit b8479b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SourceCode/dlls/scientist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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());
}


Expand Down

0 comments on commit b8479b8

Please sign in to comment.