diff options
Diffstat (limited to 'src/Entities/Painting.cpp')
-rw-r--r-- | src/Entities/Painting.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Entities/Painting.cpp b/src/Entities/Painting.cpp index 0f2139cd1..1f9662019 100644 --- a/src/Entities/Painting.cpp +++ b/src/Entities/Painting.cpp @@ -24,6 +24,8 @@ void cPainting::SpawnOn(cClientHandle & a_Client) { Super::SpawnOn(a_Client); a_Client.SendPaintingSpawn(*this); + + m_World->BroadcastSoundEffect("entity.painting.place", GetPosition(), 1, 1); } @@ -41,3 +43,10 @@ void cPainting::GetDrops(cItems & a_Items, cEntity * a_Killer) + +void cPainting::KilledBy(TakeDamageInfo & a_TDI) +{ + Super::KilledBy(a_TDI); + m_World->BroadcastSoundEffect("entity.painting.break", GetPosition(), 1, 1); + Destroy(); +} |