void CNPCSimpleTalker::Event_Killed( const CTakeDamageInfo &info ) { AlertFriends( info.GetAttacker() ); if ( info.GetAttacker()->GetFlags() & FL_CLIENT ) { LimitFollowers( info.GetAttacker(), 0 ); } BaseClass::Event_Killed( info ); }
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 ); }
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 ); }
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 ); }