mirror of https://github.com/FWGS/hlsdk-xash3d
Merge 9d2ae368aa
This commit is contained in:
parent
391c2aa217
commit
98a562c20e
|
@ -464,7 +464,10 @@ void CScientist::StartTask( Task_t *pTask )
|
||||||
{
|
{
|
||||||
Talk( 2 );
|
Talk( 2 );
|
||||||
m_hTalkTarget = m_hEnemy;
|
m_hTalkTarget = m_hEnemy;
|
||||||
if( m_hEnemy->IsPlayer() )
|
|
||||||
|
//The enemy can be null here. - Solokiller
|
||||||
|
//Discovered while testing the barnacle grapple on headcrabs with scientists in view.
|
||||||
|
if( m_hEnemy && m_hEnemy->IsPlayer() )
|
||||||
PlaySentence( "SC_PLFEAR", 5, VOL_NORM, ATTN_NORM );
|
PlaySentence( "SC_PLFEAR", 5, VOL_NORM, ATTN_NORM );
|
||||||
else
|
else
|
||||||
PlaySentence( "SC_FEAR", 5, VOL_NORM, ATTN_NORM );
|
PlaySentence( "SC_FEAR", 5, VOL_NORM, ATTN_NORM );
|
||||||
|
|
Loading…
Reference in New Issue