Home   Help Search Login Register  

Author Topic: Unit/Empty/Sounds  (Read 556 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Unit/Empty/Sounds
« on: 24 Jan 2005, 17:47:26 »
What is the description.ext sound class to access a sound from Insert Unit/Empty/Sounds? Neither cfgSounds, cfgSFX, or cfgEnvSounds work; they only make the sound accessible under Trigger/Effects.
urp!

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:Unit/Empty/Sounds
« Reply #1 on: 24 Jan 2005, 18:25:05 »
All the sounds are defined under class sound in config.bin.

I dont know if U can edit new in description.ext.
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:Unit/Empty/Sounds
« Reply #2 on: 24 Jan 2005, 18:50:59 »
I don't think it can be done either...    :-\
« Last Edit: 24 Jan 2005, 18:51:15 by Mr.Peanut »
urp!

Offline XCess

  • Former Staff
  • ****
Re:Unit/Empty/Sounds
« Reply #3 on: 24 Jan 2005, 20:47:18 »
Why would you need to?

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:Unit/Empty/Sounds
« Reply #4 on: 25 Jan 2005, 18:27:27 »
I would want to do this so I can insert the sound as an ambient noise object. I could write a small looping script to cycle the sound, but since OpFl can insert ambient sounds, such as Wind, Owl, Crickets as Empty Sound Units I wanted to know if I could do the same.  I guess that this can only be done by making an add-on.

I don't need to do it, but it would like to do it. Much cleaner.
« Last Edit: 25 Jan 2005, 18:28:44 by Mr.Peanut »
urp!

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Unit/Empty/Sounds
« Reply #5 on: 26 Jan 2005, 17:50:59 »
Of course you can make a looping sound.
You just need to tell flashpoint you want it looped, like this,

class CfgEnvSounds
{
   sounds[]={ambience};

   class Ambience
   {
      name="Ambience";
   sound[]={"Ambience.ogg",db-20,0,1};
   soundNight[]={"Ambience.ogg",db-40,0,1};
   };
};

Where ambience is the name of your sound file. Pop this into you description and Robert's your Father's Brother.
« Last Edit: 26 Jan 2005, 17:51:17 by The-Architect »
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 Zayfod

  • ECP Team
  • *
  • Llama, softest natural fibre in the world.
Re:Unit/Empty/Sounds
« Reply #6 on: 28 Jan 2005, 04:54:37 »
I wish we could createvehicle/camcreate those "empty sound units". Would make MOD editing so much easier, as it stands now they can only be placed in the editor. Creating them via script = ctd  ::)

Zay
"I have come here to kick ass and chew bubble gum......an I'm all outta bubble gum!"

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:Unit/Empty/Sounds
« Reply #7 on: 28 Jan 2005, 14:37:14 »
I use often game logics as sound sources when needed. Used it to make a dead body fart, for example.
Code: [Select]
sound[]={"Ambience.ogg",db-20,0,1};For normal sounds in the description.ext, usually it is {"name",volume,pitch}, so in the statement above I am assuming the 1 is the loop flag.  What is the 0 between the db-20 and the 1 designate? Pitch?
« Last Edit: 28 Jan 2005, 14:42:35 by Mr.Peanut »
urp!