Unlimited sound range

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Dat wad noob
Posts: 16
Joined: Sun Sep 16, 2012 11:21 am
Location: That one house in Canada

Unlimited sound range

Post by Dat wad noob »

What i mean by this is that i want a specific sound to be heard across the map, kinda like the cyberdemon's sounds.
User avatar
Kate
... in rememberance ...
Posts: 2975
Joined: Tue Jul 15, 2003 8:06 pm

Re: Unlimited sound range

Post by Kate »

Three ways to do this.

From [wiki]ACS[/wiki], use [wiki]AmbientSound[/wiki]:

Code: Select all

AmbientSound ("misc/mysound", 127);
From [wiki]DECORATE[/wiki], use ATTN_NONE in [wiki]A_PlaySound[/wiki]:

Code: Select all

A_PlaySound ("misc/mysound", CHAN_AUTO, 1.0, 0, ATTN_NONE)
From [wiki]DECORATE[/wiki], you can also set the [wiki=Actor_flags#BOSS]BOSS[/wiki] flag, but be aware that this flag also changes other properties about the monster as well.
User avatar
Dat wad noob
Posts: 16
Joined: Sun Sep 16, 2012 11:21 am
Location: That one house in Canada

Re: Unlimited sound range

Post by Dat wad noob »

Thanks alot, man......i dont really understand the wiki all that well....
User avatar
Boingo_the_Clown
Posts: 139
Joined: Mon Sep 17, 2012 7:25 am
Location: Canada
Contact:

Re: Unlimited sound range

Post by Boingo_the_Clown »

Is it possible to set a sound to unlimited range in SNDINFO?
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Unlimited sound range

Post by Gez »

[wiki]SNDINFO#attenuation[/wiki]
User avatar
Boingo_the_Clown
Posts: 139
Joined: Mon Sep 17, 2012 7:25 am
Location: Canada
Contact:

Re: Unlimited sound range

Post by Boingo_the_Clown »

Can you give me an example?

Looking at the wiki page does not help me much.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Unlimited sound range

Post by Gez »

fullvolumesound DSVOLUME
$attenuation fullvolumesound 0
Locked

Return to “Editing (Archive)”