View Single Post
11-02-17, 07:02 PM   #20
ballistics1142
A Deviate Faerie Dragon
Join Date: Apr 2017
Posts: 14
Originally Posted by MunkDev View Post
If you want to allow unique sounds, like the talking head monologues or any other uncommon sound, but not UI sounds, use this:
Lua Code:
  1. local dummy, kit = false, {}
  2. for _, v in pairs(SOUNDKIT) do kit[v] = true end
  3.  
  4. hooksecurefunc('PlaySound', function(id)
  5.         if dummy or (not kit[id]) then return end
  6.         dummy = true
  7.         local played, handle = PlaySound(id+1)
  8.         if played then
  9.             StopSound(handle-1)
  10.             StopSound(handle)
  11.         end
  12.         dummy = false
  13. end)
Can I use this and then add specific blizzard sounds to be allowed through?

Or would it be easier to change this addon(http://www.wowinterface.com/download...erts.html#info) to play through the "Master" channel whilst SFX are disabled under system>>>sounds in-game?

Last edited by ballistics1142 : 11-02-17 at 07:11 PM.
  Reply With Quote