• Any possible way to hook env_soundscape events?
    2 replies, posted
Title is self explanatory. I'm making a small module that allows clients to turn off ambient sounds played with the env_soundscape entity. I've tried using a few hooks to help me with this but it appears none of them pick up the entity. Initially I tried using GM/EntityEmitSound but this doesn't pick up sounds played from a soundscape file. I've also tried using GM/AcceptInput to see if any input was being used but obviously it doesn't. I'm also aware I could remove these entities on server startup but this isn't what I am aiming to do. Lastly I tried transmitting the entity using Entity/SetPreventTransmit but this doesn't work because I believe soundscape entities are removed after a few seconds of initial startup. I'm starting to think this is impossible now on Garry's Lua. However I did find this sourcepawn plugin a while back and I was wondering if this would work by any chance (Stop Map Music Fixed [ALL GAMES] [Archive]). Any suggestions to where I should research is greatly appreciated!
TMK, no, your next best bet would be killing all env_soundscape's, getting their locations, and recreating the functionality on the client.
This is useful, thank you for your response.
Sorry, you need to Log In to post a reply to this thread.