Home   Help Search Login Register  

Author Topic: Define sound in description.ext  (Read 820 times)

0 Members and 1 Guest are viewing this topic.

Dane

  • Guest
Define sound in description.ext
« on: 31 Jul 2005, 11:55:54 »
How do i define sound in description.ext so it shows up in the trigger meny like this?

I have like 12 sounds i would like played repeateply :P (sorry, english not my mother tounge) with intervals, but when defining the sound like this:

Quote
class CfgSounds
{
   sounds[] =
      {   
         FX_gun1
      };

   class FX_gun1
   {
      name = "FX_gun1";
      sound[] = {"AK-47.ogg"};
      titles[] = {};
   };

the sound shows up in the voice meny but not in trigger meny
« Last Edit: 31 Jul 2005, 12:12:03 by Dane »

Offline Blanco

  • Former Staff
  • ****
Re:Define sound in description.ext
« Reply #1 on: 31 Jul 2005, 12:46:22 »
Wrong forum

Quote
the sound shows up in the voice meny but not in trigger meny

Triggersounds are not in the class CfgSounds
I think they are in the CfgSFX class

Here is an example I've made...

Code: [Select]
class CfgSFX
{
sounds[] =
   {
      dogs, rain_on_roof
   };
   
   class dogs
   {
      sounds[]={dogs};
      name = "dogs";
     
      dogs[]={"dogs.ogg",db-1,1,1,0,0,0};
      empty[]={, , , , , , ,};
      };
   class rain_on_roof
   {
      sounds[]={rain_on_roof};
      name = "rain_on_roof";
     
      rain_on_roof[]={"rain_on_roof.ogg",db-70,1,1,0,0,0};
      empty[]={, , , , , , ,};
   };
   };

Here is only one sound that repeats itself without intervals.
First are barking dogs, second is rain on a roof.

Code: [Select]
class CfgSFX
{
   class bas_SFXAk
   {
      name="SFX_Ak";
      sounds[]={"sound1","sound2","sound3"};
      sound1[]={"\bas_o\sound\BAS_SFXak1.ogg",0.010000,1,0.300000,0.000000,0.100000,0.200000};
      sound2[]={"\bas_o\sound\BAS_SFXak2.wss",0.010000,1,0.300000,0.000000,0.100000,0.200000};
      sound3[]={"\bas_o\sound\BAS_SFXak3.wss",0.010000,1,0.300000,0.000000,0.100000,0.200000};
      empty[]={"","","","",1,5,20};
   };

This is an example taken from the config.cpp from the BAS_O.pbo in the Tonalpack.
3 Aksounds are played randomly with intervals, but I don't know what those numbers are standing for...




« Last Edit: 31 Jul 2005, 12:59:39 by Blanco »
Search or search or search before you ask.

Dane

  • Guest
Re:Define sound in description.ext
« Reply #2 on: 31 Jul 2005, 13:03:48 »
Thanks alot :D

Sorry, forgot that sounds belong in sound and cutscenes forum ::)

Solved.