[7518] Implement new script command SCRIPT_COMMAND_PLAY_SOUND (look in World.h for...
commitc1a538fa5a667f885e60d084ffeb3f86f1e82612
authorVladimirMangos <vladimir@getmangos.com>
Sun, 22 Mar 2009 17:02:45 +0000 (22 20:02 +0300)
committerVladimirMangos <vladimir@getmangos.com>
Sun, 22 Mar 2009 21:27:01 +0000 (23 00:27 +0300)
tree0a46e9d51d9634aa418dfbc4c27745f4ca4db48c
parent543e88f30e535f38a175f3a2e226bff7a3de8c02
[7518] Implement new script command SCRIPT_COMMAND_PLAY_SOUND (look in World.h for args)

* Also rewrite use SMSG_PLAY_OBJECT_SOUND/SMSG_PLAY_SOUND
  Now WorldObject have 2 function for sound level dependent from distance (PlayDistanceSound)
  and for not depednet (PlayDirectSound)
* Old Player::PlaySound function removed and uses need to be updated to WorldObject functions
  Note: function called for _source_ of sound in different from old function.
* chat command .debug ps removed and .debug playsound can used for bother packects test:
  if no selection used SMSG_PLAY_SOUND, if selection exist including self then SMSG_PLAY_OBJECT_SOUND.
13 files changed:
contrib/extractor/ad.exe
src/game/Chat.cpp
src/game/Chat.h
src/game/Level1.cpp
src/game/Object.cpp
src/game/Object.h
src/game/Player.cpp
src/game/Player.h
src/game/SpellAuras.cpp
src/game/World.cpp
src/game/World.h
src/game/debugcmds.cpp
src/shared/revision_nr.h