game/server/shit/npc_alien_trooper.cpp
BOOL CSTrooper :: FOkToSpeak( void )
{
// if someone else is talking, don't speak
	if (gpGlobals->time <= CTalkMonster::g_talkWaitTime)
		return FALSE;

	if ( pev->spawnflags & SF_MONSTER_GAG )
	{
		if ( m_MonsterState != MONSTERSTATE_COMBAT )
		{
			// no talking outside of combat if gagged.
			return FALSE;
		}
	}

	// if player is not in pvs, don't speak
//	if (FNullEnt(FIND_CLIENT_IN_PVS(edict())))
//		return FALSE;
	
	return TRUE;
}
//=========================================================
// someone else is talking - don't speak
//=========================================================
someone else is talking - don't speak
someone else is talking - don ' t speak
BOOL CSTrooper :: FOkToSpeak( void )
{
	if (gpGlobals->time <= CTalkMonster::g_talkWaitTime)
		return FALSE;
	if ( pev->spawnflags & SF_MONSTER_GAG )
	{
		if ( m_MonsterState != MONSTERSTATE_COMBAT )
		{
			return FALSE;
		}
	}
	return TRUE;
}
BOOL CSTrooper :: FOkToSpeak ( void ) { if ( gpGlobals -> time <= CTalkMonster :: g_talkWaitTime ) return FALSE ; if ( pev -> spawnflags & SF_MONSTER_GAG ) { if ( m_MonsterState != MONSTERSTATE_COMBAT ) { return FALSE ; } } return TRUE ; }
someone else is talking - don't speak
someone else is talking - don ' t speak
// if someone else is talking, don't speak // no talking outside of combat if gagged. // if player is not in pvs, don't speak //	if (FNullEnt(FIND_CLIENT_IN_PVS(edict()))) //		return FALSE;