|
|
@ -791,7 +791,7 @@ CBaseEntity *CTalkMonster::FindNearestFriend( BOOL fPlayer ) |
|
|
|
// for each friend in this bsp...
|
|
|
|
// for each friend in this bsp...
|
|
|
|
while( ( pFriend = UTIL_FindEntityByClassname( pFriend, pszFriend ) ) ) |
|
|
|
while( ( pFriend = UTIL_FindEntityByClassname( pFriend, pszFriend ) ) ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if( pFriend == this || !pFriend->IsAlive() ) |
|
|
|
if( pFriend == this || !pFriend->IsAlive() || pFriend->pev->deadflag != DEAD_NO ) |
|
|
|
// don't talk to self or dead people
|
|
|
|
// don't talk to self or dead people
|
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|