how about adding a "Local" type to $ambient [SNDINFO]

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: how about adding a "Local" type to $ambient [SNDINFO]

Re: how about adding a "Local" type to $ambient [SNDINFO]

by Gez » Fri Jan 31, 2014 2:42 pm

Give the AmbientSound things identical values for arg2 and arg3. There you go, full volume throughout the area where they're heard.

Though to be honest, having sound rolloff is good too. Like, at the entrance of the cave, you still hear jungle sounds, but they get fainter as you venture forward, and the cave sounds become louder instead.

Re: how about adding a "Local" type to $ambient [SNDINFO]

by NeuralStunner » Fri Jan 31, 2014 2:08 pm

I think the main issue with positioned sounds is volume variance. Typically ambient sounds would be full volume anywhere in the area.

On that note, you could use SndInfo to give each ambient sound a large no-falloff range, then place your sound things inside the map areas where they should be heard. Not the most elegant method, but the alternative would probably be something involving [wiki]LocalAmbientSound[/wiki] and "[wiki=Classes:SecActEnter]Actor Enters Sector[/wiki]" things.

Re: how about adding a "Local" type to $ambient [SNDINFO]

by Gez » Fri Jan 31, 2014 9:46 am

Can these activations and deactivations be made locally in multiplayer, so that a player entering the cave would not disable the jungle sounds for the player who remains outside?

A better approach might be to use positioned ambient sound sources. Place jungle sound sources in the jungle and cave sound sources in the cave. ZDoom offers many ways in which [wiki]ambient sounds[/wiki] can be created; so if an approach doesn't work, try another.

Re: how about adding a "Local" type to $ambient [SNDINFO]

by Graf Zahl » Fri Jan 31, 2014 9:31 am

Adding this as an engine feature is not trivial, in particular since you try to hijack some info that's there for completely other things.

What you can do is use Thing_Activate/Thing_Deactivate to toggle these sounds when you don't want them to play.

how about adding a "Local" type to $ambient [SNDINFO]

by FireSeraphim » Thu Jan 30, 2014 11:17 pm

I have ran into a mild problem with ambient sounds due to the fact that I have one set of sounds playing where they are not suppose to (jungle noises in a cave, cave noises in the jungle, etc.) What I would like to propose is a "Local" Type for the $ambient definition in SNDINFO.

How it would work is that it would play the sound at world volume but only within a sector who's lines are set to be zone boundaries (using the same boundaries that REVERBS currently uses) (much like REVERBS but for ambientsounds). This would resolve my problem and benefit everyone else in the process.

Top