Exemplo n.º 1
0
void CNPCSimpleTalker::Event_Killed( const CTakeDamageInfo &info )
{
	AlertFriends( info.GetAttacker() );
	if ( info.GetAttacker()->GetFlags() & FL_CLIENT )
	{
		LimitFollowers( info.GetAttacker(), 0 );
	}
	BaseClass::Event_Killed( info );
}
Exemplo n.º 2
0
void CAI_PlayerAlly::Event_Killed( const CTakeDamageInfo &info )
{
	AlertFriends( info.GetAttacker() );

	SetTarget( NULL );
	// Don't finish that sentence
	StopTalking();
	SetUse( NULL );
	BaseClass::Event_Killed( info );
}
Exemplo n.º 3
0
void CTalkMonster::Killed( const CTakeDamageInfo& info, GibAction gibAction )
{
	// If a client killed me (unless I was already Barnacle'd), make everyone else mad/afraid of him
	if ( info.GetAttacker() && info.GetAttacker()->GetFlags().Any( FL_CLIENT ) && m_MonsterState != MONSTERSTATE_PRONE )
	{
		AlertFriends();
		LimitFollowers( info.GetAttacker(), 0 );
	}

	m_hTargetEnt = NULL;
	// Don't finish that sentence
	StopTalking();
	SetUse( NULL );
	CBaseMonster::Killed( info, gibAction );
}
Exemplo n.º 4
0
void CMTalkMonster :: Killed( entvars_t *pevAttacker, int iGib )
{
	// If a client killed me (unless I was already Barnacle'd), make everyone else mad/afraid of him
	if ( (pevAttacker->flags & FL_CLIENT) && m_MonsterState != MONSTERSTATE_PRONE )
	{
		AlertFriends();
		LimitFollowers( ENT(pevAttacker), 0 );
	}

	m_hTargetEnt = NULL;
	// Don't finish that sentence
	StopTalking();
	SetUse( NULL );
	CMBaseMonster::Killed( pevAttacker, iGib );
}