doom legacy ambient sound

is there any way to place ambient sounds in a legacy wad?
i got to the point where you cross a line and the sound plays thats
about it! i looked it up in the legacy editing pages but it didn't
say jack about it! could someone make a small box wad with a ambient
sound in it and with the text file show the fraggle script what it looks like please?

Share this post


Link to post

yup. create a sound and name something like dsmysound.wav -or- dsyourname.snd whatever format you plan on importing.

go ahead and import it into your wad.

now, this is done through fragglescript. so let me start it off for you:

[level info]
music = d_runnin
levelname = yourmap
creator = you

[scripts]

include("things.h");


//global variables


script 0
{
startsectorsound(1, "mysound" );
}

what this script does, it plays dsmysound on sector tagged 1.

be sure you don't put "ds" in front of the sound name or else it won't work.

just copy that and insert it into your wad.

and have a linedef trigger the script. (assuming you know how to enable Legacy mode in Deepsea or Wadauthor, if you got one of those..)

Share this post


Link to post

thanks a lot deathman! i just started workin on legacy.
im tryin to make a dark 7 like wad for legacy with the 3d stuff
it should be pretty cool!

Share this post


Link to post

now i need a small demo script showing that after you hit three
switchs a door opens.
and im done!

Share this post


Link to post

int doorhit = 0;

script 2
{
doorhit++;
if(doorhit == 3)
{
"your actions here"
}
}




-OR-

if that doesn't work, try this one:

int doorhit = 0;

script 2
{
doorhit = doorhit + 1;
if(doorhit == 3)
{
"your actions here"
}
}



now be sure you assign ONE of these scripts to all 3 switches that you want to be affected

gl

Share this post


Link to post
This topic is now closed to further replies.