OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Pr0ph3t on 09 Mar 2005, 23:34:56
-
Okay I have two sound samples I want to include: shooting.ogg and scream.ogg and they're under the \sound directory.
what do I need to add to this description.ext file I've been trying stuff but it won't show up.
debriefing = 0
class CfgMusic
{
tracks[]=
{
navras
};
class navras
{
name = "navras";
sound[] = {\music\navras.ogg, db+0, 1.0};
};
class CfgSounds
{
name="scream";
sound[] = {\sound\scream.ogg, db+5, 1.0};
}
};
what am I doing wrong?
-
One thing I notice:
- You don't need a CfgMusic class if you only have a "Sound" map.
-
navras is music.. scream is sound effect
-
class CfgSounds
{
class Scream
{
name="scream";
sound[] = {"\sound\scream.ogg", db+5, 1.0};
titles[]={};
}
}
That should do it.....I hope
Planck
-
mh.. try this:
***EDITED***
debriefing = 0
class CfgMusic
{
tracks[]={navras};
class navras
{
name = "navras";
sound[] = {\music\navras.ogg, db+0, 1.0};
};
};
class CfgSounds
{
sounds[]={scream};
class scream
{
name="scream";
sound[] = {\sound\scream.ogg, db+5, 1.0};
titles[]={};
};
};
tellme if it works!
P.D: Thanks Pr0ph3t
-
neither worked.. Hang on I'm gonna trying mixing together
-
Good job fellas, with planck's title= and flauta's snippet it worked.
thanks!
-
For anyone stuck in my shoes, here's what the description.ext file looks like for multiple sounds and songs
debriefing = 0
class CfgMusic
{
tracks[]={whorse,mattek};
class whorse
{
name = "whorse";
sound[] = {\music\whorse.ogg, db+0, 1.0};
};
class mattek
{
name = "mattek";
sound[] = {\music\mattek.ogg, db+0, 1.0};
};
};
class CfgSounds
{
sounds[]={scream,shooting};
class scream
{
name="scream";
sound[] = {\sound\scream.ogg, db+5, 1.0};
titles[]={};
};
class shooting
{
name="shooting";
sound[] = {\sound\shooting.ogg, db+5, 1.0};
titles[]={};
};
};