mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
fix/feat: (Core/PacketIO): updated sound and creature addon (#10813)
* fix\feat: (Core/PacketIO): updated sound and creature addon
updated SMSG_PLAY_SOUND, SMSG_PLAY_MUSIC and SMSG_PLAY_OBJECT_SOUND via tc cherry pick
https://github.com/TrinityCore/TrinityCore/pull/2363 and 0f1f7ef401 by @joschiwald and @ForesterDev
This so far a attempt to align atleast with sound with tc, and correct a potentional issue of hearing creature sounds that is not in visible range. I notice PlaySound was being defined in some weird dependency as it isnt with tc so I renamed it to Playsound. Notice a isLarge still being used in the creature addon when it was depreciated, so i removed that a that seem to of interfered with visibilitydistanceType.
Co-Authored-By: joschiwald <736792+joschiwald@users.noreply.github.com>
Co-Authored-By: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
This commit is contained in:
@@ -1932,10 +1932,10 @@ public:
|
||||
else
|
||||
return;
|
||||
|
||||
PlaySound(soundId);
|
||||
Playsound(soundId);
|
||||
}
|
||||
|
||||
void PlaySound(uint32 soundId)
|
||||
void Playsound(uint32 soundId)
|
||||
{
|
||||
WorldPacket data(SMSG_PLAY_SOUND, 4);
|
||||
data << uint32(soundId);
|
||||
@@ -2046,10 +2046,10 @@ public:
|
||||
else
|
||||
return;
|
||||
|
||||
PlaySound(soundId);
|
||||
Playsound(soundId);
|
||||
}
|
||||
|
||||
void PlaySound(uint32 soundId)
|
||||
void Playsound(uint32 soundId)
|
||||
{
|
||||
WorldPacket data(SMSG_PLAY_SOUND, 4);
|
||||
data << uint32(soundId);
|
||||
@@ -2080,7 +2080,7 @@ public:
|
||||
NextStep(2000);
|
||||
break;
|
||||
case 2:
|
||||
PlaySound(GAR_2);
|
||||
Playsound(GAR_2);
|
||||
NextStep(6500);
|
||||
break;
|
||||
case 3:
|
||||
@@ -2092,7 +2092,7 @@ public:
|
||||
NextStep(2500);
|
||||
break;
|
||||
case 5:
|
||||
PlaySound(YS_V1_2);
|
||||
Playsound(YS_V1_2);
|
||||
NextStep(2500);
|
||||
break;
|
||||
case 6:
|
||||
@@ -2166,10 +2166,10 @@ public:
|
||||
else
|
||||
return;
|
||||
|
||||
PlaySound(soundId);
|
||||
Playsound(soundId);
|
||||
}
|
||||
|
||||
void PlaySound(uint32 soundId)
|
||||
void Playsound(uint32 soundId)
|
||||
{
|
||||
WorldPacket data(SMSG_PLAY_SOUND, 4);
|
||||
data << uint32(soundId);
|
||||
|
||||
Reference in New Issue
Block a user