Removing sound

Zeklyn

L2: Junior Member
Jul 30, 2016
80
21
Is it any way to remove a sound, or remove sound from a small room so no one outside can hear it?
I'm currently making a hidden room with sentries and you can hear the sentries outside.
Hope anyone can help me

Pardon my bad english
 

Moonrat

nothing left
aa
Jul 30, 2014
932
585
As far as I know, the only way you can get it so people can't hear the sound is moving it away
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
Sounds play if they're "visible" for the player in that room. What I mean by that is if the room with the sentries is being rendered, the sound also plays, even if you're in another room. If the room isn't rendered, the sound doesn't play.

Look into map optimization here: http://www.optimization.interlopers.net . Normally it's used to make maps as smooth running as possible by making less things render at the same time, but in this situation you use it to seal off a room from another to make sounds not play.
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
Computer says no!

If the room with the sentry is connected to the room the player is standing in, the player will hear the sentry regardless of whether or not the room is being rendered.

If the room with the sentry is cut off from the room the player is standing in, so there is no passageway between them at all and the only way to get there would be teleportation or noclip, the sounds from the sentry will not be heard.

If you wanted the sentries to be silent, you could spawn them only when they are needed using a point_template. Or have them in separate part of the map and parent them to a moving brush entity, or use teleport logic, to bring them in when the players are present.
 

henke37

aa
Sep 23, 2011
2,075
515
Audio uses the potentionaly audible set, not the potentially visible set.