1
0

Movement Statistics

This commit is contained in:
andrew
2014-05-12 21:38:52 +03:00
parent b3d2b5b2c9
commit aea866f5b1
6 changed files with 101 additions and 14 deletions

View File

@@ -464,8 +464,10 @@ bool cMonster::DoTakeDamage(TakeDamageInfo & a_TDI)
return false;
}
if((m_SoundHurt != "") && (m_Health > 0))
if ((m_SoundHurt != "") && (m_Health > 0))
{
m_World->BroadcastSoundEffect(m_SoundHurt, (int)(GetPosX() * 8), (int)(GetPosY() * 8), (int)(GetPosZ() * 8), 1.0f, 0.8f);
}
if (a_TDI.Attacker != NULL)
{