Jump to content

add more than one 'class CfgSounds'


Recommended Posts

I am new to this. What is the best way to upload my current Class CfgSounds? I have copy and Pasted them on here, but is there a way you all prefer it.
 
So far this crashes my server, where is the issue.
 
Thank you
 
class CfgSounds
{
    sounds[] =
    {
    fox
    };
    class fox
    {
    name="fox";
    sound[]={fox.ogg,0.9,1};
    titles[] = {};
};
{
    sounds[] = {dieScream, finalShot, madIncoming};
 
    class dieScream {
name="dieScream";
sound[]={diescream.ogg,0.8,1};
titles[] = {};
    };
    class madIncoming {
name="madIncoming";
sound[]={madincoming.ogg,0.8,1};
titles[] = {};
    };
    class finalShot {
name="finalShot";
sound[]={finalshot.ogg,0.8,1};
titles[] = {};
    };
};
Link to comment
Share on other sites

Try this. 

class CfgSounds
{
    sounds[] =
    {
    fox, dieScream, finalShot, madIncoming
    };
    class fox {
		name="fox";
		sound[]={fox.ogg,0.9,1};
		titles[] = {};
	};	
	class dieScream {
		name="dieScream";
		sound[]={diescream.ogg,0.8,1};
		titles[] = {};
    };
    class madIncoming {
		name="madIncoming";
		sound[]={madincoming.ogg,0.8,1};
		titles[] = {};
    };
    class finalShot {
		name="finalShot";
		sound[]={finalshot.ogg,0.8,1};
		titles[] = {};
    };
};
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...