Skip to content

Commit

Permalink
Play splash sound when killed enemies get out of screen
Browse files Browse the repository at this point in the history
  • Loading branch information
pjasicek committed Aug 20, 2017
1 parent bae7de1 commit c62020f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ void EnemyAIComponent::VUpdate(uint32 msDiff)
{
shared_ptr<EventData_Destroy_Actor> pEvent(new EventData_Destroy_Actor(_owner->GetGUID()));
IEventMgr::Get()->VQueueEvent(pEvent);

// This is really weird... but it is in original game exactly like this
SoundInfo splashSound("/GAME/SOUNDS/SPLASH.WAV");
IEventMgr::Get()->VTriggerEvent(IEventDataPtr(
new EventData_Request_Play_Sound(splashSound)));
}
}
else
Expand Down

0 comments on commit c62020f

Please sign in to comment.