Facepunch / garrysmod-requests

Feature requests for Garry's Mod
83 stars 24 forks source link

GM:EntityEmitSound - allow to modify serverside sounds on the client #198

Open ElusiveMori opened 10 years ago

ElusiveMori commented 10 years ago

Currently, GM:EntityEmitSounds gets called clientside only for clientside-only sounds. If it was called for all sounds clientside (if this is at all possible), it would allow for some interesting effects, such as making a certain player deaf or some other interesting things. I would appreciate this functionality.

mandrewpowers commented 7 years ago

Anything on this?

Kinyom commented 4 years ago

There's no possible way there -isn't- a way to do this. The client needs to receive a nudge from the server saying "hey, play this sound" in order to play it; hooking into whenever/wherever that happens in the C++ environment and denying that request based on what a Lua hook returns should be very possible.

LeQuackers commented 3 years ago

Bump.

Hooking S_StartSound on the client would close this.

Raphy33 commented 2 years ago

bump shawty

brandonsturgeon commented 1 year ago

Bump on this :)

AstralPlays commented 1 month ago

Bump Bump! Need this functionality asap.