mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
feat: play minimap ping sound when party members ping the map
Add playMinimapPing() to UiSoundManager with MapPing.wav (falls back to target select sound). Play the ping sound in MSG_MINIMAP_PING handler when the sender is not the local player. Provides audio feedback for party member map pings, matching WoW behavior.
This commit is contained in:
parent
f03ed8551b
commit
180990b9f1
3 changed files with 20 additions and 0 deletions
|
|
@ -3544,6 +3544,13 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
ping.wowY = pingX; // canonical WoW Y = west = server's posX
|
||||
ping.age = 0.0f;
|
||||
minimapPings_.push_back(ping);
|
||||
// Play ping sound for other players' pings (not our own)
|
||||
if (senderGuid != playerGuid) {
|
||||
if (auto* renderer = core::Application::getInstance().getRenderer()) {
|
||||
if (auto* sfx = renderer->getUiSoundManager())
|
||||
sfx->playMinimapPing();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Opcode::SMSG_ZONE_UNDER_ATTACK: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue