Author Topic: Can someone link me to a tutorial for sounds?  (Read 322 times)

Can someone link me to a tutorial for making sound packs? I couldn't find any.

I checked the list of tutorials and couldn't find any. I would suggest downloading a few sound packs and then taking them apart to figure this out.

Here is how to do it:

Insert the regular files like namecheck and description.

Insert the sounds.

Create a server.cs file with the following block: (The things in all caps should be replaced with the actual names)
Code: [Select]
datablock AudioProfile(FILE1NAME)
{
filename = "./FILE1NAME.wav";
description = AudioClosest3d;
preload = false;
};
Use this block for the first file in your pack.

For all other files use:
Code: [Select]
datablock AudioProfile(FILE2NAME : FILE1NAME)
{
filename = "./FILE2NAME.wav";
};

So a pack might look like this:
Code: [Select]
datablock AudioProfile(DoggyBark)
{
filename = "./DoggyBark.wav";
description = AudioClosest3d;
preload = false;
};

datablock AudioProfile(CatMeow : DoggyBark)
{
filename = "./CatMeow.wav";
};