Jump to content

Sounds not playing through SoundEmitter?


Recommended Posts

I'm trying to detect on the client when certain sounds play in the game, so I'm using something like this code to override SoundEmitter's functions.

local function DoNothing(...) print(...) end
GLOBAL.SoundEmitter.PlaySound = DoNothing
GLOBAL.SoundEmitter.PlaySoundWithParams = DoNothing

However even after overriding the functions and not calling the original PlaySound functions (so everything should be muted), certain sounds are still playing and don't trigger the print in DoNothing, such as hit impact and footstep sounds. Does someone know what other code I need to look at to find the rest of the sounds that are playing?

Edited by ZoomZoomBang
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...