Home   Help Search Login Register  

Author Topic: Playing OFP sounds  (Read 610 times)

0 Members and 3 Guests are viewing this topic.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Playing OFP sounds
« on: 11 May 2005, 22:06:02 »
I'm trying to create a sound effect.   When a certain event happens, I want one of the official sounds to play.  

Now I've found the sound I want:  it's in the sound.pbo in the DTA folder.    And I know how to make a sound play if its in the sound folder.    There should be no need to copy over the sound file though, because its already in the game.   But how do I get at it?  What is the path?

My description.ext looks like this

class CfgSounds
{
        sounds[] =    {};

   class smokeLaunch
   {
      name = "smokeLaunch";
      sound[] = {"intoground.wss", db+50, 1.0};
      titles[] = {0, ""};
   };
};

What should I have in the bold section?  I've tried a few experiments but no luck.

Many thanks.
« Last Edit: 11 May 2005, 22:06:43 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Playing OFP sounds
« Reply #1 on: 11 May 2005, 22:19:09 »
Try:

"\Sound\Weapons\intoground"


Edit:

Failing that try:

"Weapons\intoground"


Planck
« Last Edit: 12 May 2005, 01:09:06 by Planck »
I know a little about a lot, and a lot about a little.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Playing OFP sounds
« Reply #2 on: 12 May 2005, 00:33:20 »
I don't think it is possible. This Q has been asked in one form or another in the past, and I think the answer was that there is no way to "get out" of the mission.pbo when configuring sounds in your description.ext. So basically, yes, you have to include the sound with your mission.

The only exception, of course, are sounds that are already configured (in the game's or an addon's config) to be used in game. But for sounds that aren't configured that way, I think you are SOL.

Hopefully someone will correct me and say I'm wrong, but I'm pretty sure that was the answer.
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 THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Playing OFP sounds
« Reply #3 on: 12 May 2005, 05:15:16 »
Whenever I have found an official sound that I wanted I just made in to an ogg and put it in the sound folder.  Crude but effective, the files ar rarely very large.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Playing OFP sounds
« Reply #4 on: 12 May 2005, 09:57:07 »
What an august group of answerers, I am most honoured.  :)

Experiments under way.

Edit:  no luck doing it directly.    Works fine with the .ogg in the usual place and the file is only 7kb which is no big deal.

Thanks all.  


Edit:  sound effect used successfully in tank smoke script now on scripts beta board.
« Last Edit: 12 May 2005, 23:52:33 by macguba »
Plenty of reviewed ArmA missions for you to play