Lost Soul: Replaced manhack pain sound

This commit is contained in:
1upD 2018-10-16 20:10:27 -04:00
parent f85c30d547
commit f625b145d5
3 changed files with 21 additions and 1 deletions

View File

@ -764,7 +764,7 @@ int CNPC_Manhack::OnTakeDamage_Alive( const CTakeDamageInfo &info )
m_vForceVelocity = vecBestDir * info.GetDamage() * 0.5f; m_vForceVelocity = vecBestDir * info.GetDamage() * 0.5f;
m_flBladeSpeed = 10.0; m_flBladeSpeed = 10.0;
EmitSound( "NPC_Manhack.Bat" ); PlayDamagedSound();
// tdInfo.SetDamage( 1.0 ); // tdInfo.SetDamage( 1.0 );
@ -3155,6 +3155,15 @@ void CNPC_Manhack::PlayAttackSound(bool hostile /*= true*/)
} }
//-----------------------------------------------------------------------------
// Purpose: Play a sound before charging at the player
//-----------------------------------------------------------------------------
void CNPC_Manhack::PlayDamagedSound(void)
{
EmitSound("NPC_Manhack.Bat");
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Purpose: // Purpose:

View File

@ -106,6 +106,7 @@ public:
virtual void GatherEnemyConditions( CBaseEntity *pEnemy ); virtual void GatherEnemyConditions( CBaseEntity *pEnemy );
virtual void PlayFlySound(void); virtual void PlayFlySound(void);
virtual void PlayAttackSound(bool bHostile); virtual void PlayAttackSound(bool bHostile);
virtual void PlayDamagedSound(void);
virtual void StopLoopingSounds(void); virtual void StopLoopingSounds(void);
void Precache(void); void Precache(void);

View File

@ -93,6 +93,7 @@ public:
void MoveToTarget(float flInterval, const Vector &MoveTarget); void MoveToTarget(float flInterval, const Vector &MoveTarget);
void PlayAttackSound(bool hostile = true); void PlayAttackSound(bool hostile = true);
void PlayDamagedSound(void);
void SetEyeState(int state); void SetEyeState(int state);
DECLARE_DATADESC(); DECLARE_DATADESC();
@ -142,6 +143,7 @@ void CNPC_LostSoul::Precache( void )
PrecacheScriptSound("NPC_LostSoul.ChargeAnnounce"); PrecacheScriptSound("NPC_LostSoul.ChargeAnnounce");
PrecacheScriptSound("NPC_LostSoul.ChargeEnd"); PrecacheScriptSound("NPC_LostSoul.ChargeEnd");
PrecacheScriptSound("NPC_LostSoul.Stunned"); PrecacheScriptSound("NPC_LostSoul.Stunned");
PrecacheScriptSound("NPC_LostSoul.Bat");
BaseClass::Precache(); BaseClass::Precache();
} }
@ -506,6 +508,14 @@ void CNPC_LostSoul::PlayAttackSound(bool hostile /*= true*/)
} }
} }
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
void CNPC_LostSoul::PlayDamagedSound(void)
{
EmitSound("NPC_LostSoul.Bat");
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Purpose: // Purpose:
// Input : state - // Input : state -