Home   Help Search Login Register  

Author Topic: cfgenvironments  (Read 843 times)

0 Members and 1 Guest are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
cfgenvironments
« on: 01 Sep 2004, 20:50:31 »
How do I define a cfg environment?

Could you post me an example?
I've searched the ed depot and forums. No luck.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:cfgenvironments
« Reply #1 on: 01 Sep 2004, 21:05:02 »
Do you mean CfgEnvSounds?


Planck
I know a little about a lot, and a lot about a little.

Offline Blanco

  • Former Staff
  • ****
Re:cfgenvironments
« Reply #2 on: 01 Sep 2004, 21:15:41 »
Some of the official BAS missions have CfgEnvSounds...

Search or search or search before you ask.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:cfgenvironments
« Reply #3 on: 01 Sep 2004, 21:51:46 »
I had to do a google search for a description.ext explaination in order to find the answer to this one. Only thing I could find was something from way back in like 2001. I guess nobody really uses this thing.... oh well. Here you go:

Code: [Select]
class CfgEnvSounds
{
   sounds[]={jungleAmbience};

   class jungleAmbience
   {
      name="Jungle Ambience"; //name displayed in trigger's effects menu

   sound[]={"jungleAmbience.ogg",db-20,0,1}; //day sound
   soundNight[]={"jungleAmbience.ogg",db-40,0,1}; //night sound
   };
};
I don't know of any way to play the sound other than using a trigger, like you would play regular ambience sounds. The sound file you provide will be played in a continous loop, and it can be stereo if you wish.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:cfgenvironments
« Reply #4 on: 01 Sep 2004, 22:13:36 »
And here is the CfgEnvSounds section from the games config.

Code: [Select]
class CfgEnvSounds
{
   access = ReadAndCreate;
   // list of environmental sounds for editor
   /*
   sounds[] =
   {
      Default, Rain, Sea, Meadows, Trees, Hills, Combat
   };
   */
   class Default // editor - sounds from landscape
   {
      name = $STR_CFG_ENVSOUNDS_DEFAULT;
      sound[]={"$DEFAULT$",0,1};
      soundNight[]={"$DEFAULT$",0,1};
   };
   class Rain // rain
   {
      name = $STR_DN_RAIN;
      sound[]={Environmental\Rain_hard,db-55,1};
      soundNight[]={Environmental\Rain_hard,db-55,1};
   };
   class Sea // sea
   {
      name = $STR_DN_SEA;
      sound[]={environmental\wave_break,db-70,1};
      soundNight[]={environmental\wave_break,db-70,1};
   };
   class Meadows // default - no trees, no sea, no hills ...
   {
      name = $STR_DN_MEADOWS;
      sound[]={animals\crickets07,db-85,1};
      soundNight[]={animals\crickets03,db-85,1};
   };
   class Trees // trees
   {
      name = $STR_DN_TREES;
      sound[]={environmental\treesbirds,db-75,1};
      soundNight[]={animals\crickets03,db-75,1};
   };
   class Hills // hills > 250m
   {
      name = $STR_DN_HILLS;
      sound[]={environmental\wind_heavy,db-75,1};
      soundNight[]={environmental\wind_whistle,db-75,1};
   };
   class Combat // desinger effect
   {
      name = $STR_CFG_ENVSOUNDS_COMBAT;
      sound[]={environmental\battle1,db-40,1};
      soundNight[]={environmental\battle2,db-40,1};
   };
};


Planck
I know a little about a lot, and a lot about a little.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:cfgenvironments
« Reply #5 on: 02 Sep 2004, 02:59:02 »
What's with the,

access = readandcreate?

I'll try these ideas out in the morning.
Cheers guys.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:cfgenvironments
« Reply #6 on: 02 Sep 2004, 05:30:33 »
What's with the,

access = readandcreate?

I'll try these ideas out in the morning.
Cheers guys.
I've noticed that with sounds (not sure about environental sounds), they are defined slightly different in the .cpp then in the .ext. With the cfgEnvSounds they seem to be the same, aside from this though. I think access has something to do exclusively with .cpp editing, but I don't really know what it does.

HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:cfgenvironments
« Reply #7 on: 03 Sep 2004, 17:41:21 »
Excellant work guys.

I used the first example as it was the first posted and it worked.
I don't know if the other example works but appreciate the help.

Thanks again.
 ;D
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."