Greetings everybody.
I am green in zdoom editing (started 3 days ago), and I have one simple question:
void soundsequence(str name); in this function as the 'name' what must I type? If I type for example dsbarexp for barrel sound ACC tells me about undefined string. Also sound sequences number doesnt work. Somebody help me!
Problems with sounds.
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.
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.
You're trying to give the function the literal name of the sound. Instead, you need to give it the "nice name" entry defined in SNDINFO. You can find SNDINFO in ZDoom.wad in your ZDoom folder. It's just a plain text lump, and it looks something like this:
As you can see from the above snippet, dsbarexp is defined as "world/barrelx" (and a few other things, too -- that sound is also used for rocket explosions). So, if you wanted dsbarexp to play, you would use this line in a script:
soundsequence("world/barrelx");
That's all there is to it.
Code: Select all
.
.
.
// Boss Brain
brain/sight dsbossit
brain/pain dsbospn
brain/death dsbosdth
brain/spit dsbospit
brain/cube dsboscub
brain/cubeboom dsfirxpl
$alias brain/spawn misc/teleport
//============================================================================
//
// WORLD SOUNDS
//
//===========================================================================
world/barrelx dsbarexp
world/drip dsempty
world/watersplash dsempty
world/sludgegloop dsempty
world/lavasizzle dsempty
.
.
.
soundsequence("world/barrelx");
That's all there is to it.
Sound sequences are defined in the SNDSEQ lump. There are only a few stock ones with ZDoom, but you can define your own.
It also sounds like you weren't putting quotes around your strings. They're not considered strings if they don't have quotes around them.
Wrong:
Right:
It also sounds like you weren't putting quotes around your strings. They're not considered strings if they don't have quotes around them.
Wrong:
Code: Select all
soundsequence (dsbarexp)
Code: Select all
soundsequence ("DoorOpenNormal")