Home   Help Search Login Register  

Author Topic: class CfgSFX  (Read 892 times)

0 Members and 1 Guest are viewing this topic.

Laitex

  • Guest
class CfgSFX
« on: 17 Nov 2002, 17:15:07 »
I want to know the grammer of "class CfgSFX". For exaple,

class CockSfx
{
   sounds[]={"cock"};
   name="$STR_DN_COCK";
   cock[]={"animals\cock",0.010000,1,0.500000,0.100000,0.500000,5};
   empty[]={"","","","","",1,30,90};
};

What do these values mean?
{"animals\cock",0.010000,1,0.500000,0.100000,0.500000,5}

And what do these values mean?
empty[]={"","","","","",1,30,90};
By the way, there are four ""s. why?

Laitex

  • Guest
Re:class CfgSFX
« Reply #1 on: 05 Dec 2002, 04:45:50 »
I found that;

   // sfxfile, vol, frq, probab, min_delay, mid_delay, max_delay
   seagull[]={animals\gulls1,db-30,1, 1, 0.2, 1, 5};

Do you know what last three numbers(min_delay, mid_delay, max_delay) mean?

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:class CfgSFX
« Reply #2 on: 05 Dec 2002, 05:19:39 »
my guess is that its the minimum, middle and maximum delay between playing the sound, to make it a bit random.