Added m_SoundGroupTable in CEntityTemplate to allow the soundgroup file for each animation to be specified in XML.

This was SVN commit r4769.
This commit is contained in:
Matei
2007-01-13 20:14:03 +00:00
parent e505843bb6
commit 77f9d23d0f
3 changed files with 54 additions and 26 deletions
@@ -439,6 +439,10 @@ bool CEntity::processContactActionNoPathing( CEntityOrder* current, size_t times
if( ( m_fsm_cyclepos <= action->m_Speed ) && ( nextpos > action->m_Speed ) )
{
m_actor->HideAmmunition();
// TODO: Play a sound here. Use m_base->m_SoundGroupTable[animation] to get the
// name of the soundgroup XML file to play.
if(!DispatchEvent( contactEvent ))
{
// Cancel current order