mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-12 05:22:55 +00:00
This commit is contained in:
parent
1ffb009983
commit
adeaefe9ff
@ -623,11 +623,13 @@ CBaseEntity *CTalkMonster::EnumFriends( CBaseEntity *pPrevious, int listNumber,
|
||||
pszFriend = m_szFriends[FriendNumber( listNumber )];
|
||||
while( ( pFriend = UTIL_FindEntityByClassname( pFriend, pszFriend ) ) )
|
||||
{
|
||||
// don't talk to self or dead people
|
||||
if( pFriend == this || !pFriend->IsAlive()
|
||||
|| ( FBitSet( !pev->spawnflags, SF_MONSTER_ZOMBIECOP )
|
||||
&& FBitSet( pFriend->pev->spawnflags, SF_MONSTER_ZOMBIECOP ) ) )
|
||||
// don't talk to self or dead people
|
||||
// Skip if a zombie cop has been killed and the the target friend is a normal cop.
|
||||
|| ( FBitSet( pev->spawnflags, SF_MONSTER_ZOMBIECOP )
|
||||
&& !FBitSet( pFriend->pev->spawnflags, SF_MONSTER_ZOMBIECOP ) ) )
|
||||
continue;
|
||||
|
||||
if( bTrace )
|
||||
{
|
||||
vecCheck = pFriend->pev->origin;
|
||||
|
Loading…
x
Reference in New Issue
Block a user