Home   Help Search Login Register  

Author Topic: How do we make a certain sound file sound from a certain area?  (Read 1443 times)

0 Members and 1 Guest are viewing this topic.

Offline Chammy

  • Members
  • *
  • I'm a llama!
Ok, here's an example:  
#1  I would like to make some sound appear to be coming from a radio but i dont want it to be in the music option.In other words, I 'd like the music to appear to be coming from a certain area and not stereo.

#2  I 'd like to make a sound or voice,like a yell, come from a direction that enemy AI is in so that the players can here and not in a stereo manner.
If it has been addressed please show me where becuase all the tutorials explain is how to add the music.The other is lip files, Unless that is how I am going to do it.Thx.

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Use the 'Say' command instead of PlaySound:

radioobjectname Say "gaga"
Leader enemyAIgroupname Say "yell"

In the sort of situations you described.  You'll need to test this as not all objects may 'Say' things - I had a really weird effect trying to see if I could get a camera to speak for me; resorted to SetPossing a GL onto the camera's position.

The mono samples will be rendered as stereo sounds by the engine so you can locate them in the world.

For .lip files use wavtolip.  Just drag the wav file onto the wavtolip programme icon and it does it's stuff.  The knack is that it does not work in folders with 'long filenames' in the path. Just make sure you do it in a folder in your root directory (e.g. C:\wavtolip & copy your wavs into there)

Offline Chammy

  • Members
  • *
  • I'm a llama!
Well thanks ACF, im going to give it a try.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Can't Flashpoint do that anyway with the normal sounds? That's why there are two lists of the same sounds right?

Try it. I may be wrong.
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."

BronzeEagle

  • Guest
I recently added a tutorial about it to the editing center.  look either under scripts or tutorials under sound.  

Offline Chammy

  • Members
  • *
  • I'm a llama!
OK, one more question.I was wondering , is there a way where I can make a sound file,like ogg more preferably, I 'd like to put an ambience into a mision and have the mission be downloaded along with the sound file.You know, instead of getting the sound downloaded from a site just have it in the mission you're going to have play with others as a co op and make it to where the sound file can be included with the mission download.I hope i havent confused you.     In other words,instead of just making a sound file and sticking it where the mission editor has it in the triggers scroll down menus.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
you would have to put it in the missions folder
/missionfoldername/soundname
or i like to have a seperate folder for any sounds
/missionfoldername/sounds/soundname    but it will work either way

then you need to make a text document (using notepad or something like it), which you need to save as description.ext, this also goes in the missions folder,but not in the sounds folder if you use that, and in it put this:
Code: [Select]
class CfgSounds
{
class soundname
{
name = "soundname";
sound[] = {"soundname.ogg", db-volume, 1.0};  
title = {"TitleText"}      
};
db is for volume ex. db-40
title is if you want to display text, if not just cut this part out

if you have more than one sound, add
sounds[] = {sound1, sound2, etc}; here:
Code: [Select]
class CfgSounds
{
sounds[] = {sound1, 3sound2, etc};
class soundname
{
name =....

...pretty sure thats everything.....
« Last Edit: 28 Oct 2004, 02:44:50 by Triggerhappy »

Offline Chammy

  • Members
  • *
  • I'm a llama!
Woa confusing.OK.Thnx.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
yeah after you do it a few times its not hard tho

Offline Chammy

  • Members
  • *
  • I'm a llama!
Ok now, so the effect that I'm after would be as follows?  

I make my own custom sound with the volume at a certain level but in that sound sample only.

I put that sound sample in the mission folder and create a lip seq for it and place it somplace on the map.

Now other players say, a co op, the sound sample will be downloaded along with the mission to others so they might be able to hear that sound without having that sound's volume change because the player has the music volume turned down in his or her options menu right?  In other words its not going to be used like a music file in an intro or anything global.Right?  These will be used with a script is what im understanding here.

ThEoNaNdOnLy

  • Guest
Re:How do we make a certain sound file sound from a certain area?
« Reply #10 on: 04 Dec 2004, 22:36:07 »

can anyone tell me where i can find a list of all the sounds on the game, i need a gunshot sound fr a sniper part, im just going to do
Quote
Sniper say "i dont knwo what the gunshot sound would be so please give me a list"

???

Guy ;D

Offline Chammy

  • Members
  • *
  • I'm a llama!
Re:How do we make a certain sound file sound from a certain area?
« Reply #11 on: 08 Dec 2004, 22:49:20 »
I have many sounds for a rifle, you can probably do what I am trying to do.Or you can get the sound sample fro the scrol down Triggers/ effects sound something like that.

Offline Chammy

  • Members
  • *
  • I'm a llama!
Re:How do we make a certain sound file sound from a certain area?
« Reply #12 on: 23 Apr 2005, 01:10:13 »
Quote
Can't Flashpoint do that anyway with the normal sounds? That's why there     are    two lists of the same sounds right?

Try it. I may be wrong.


Ahh, so with that said, a new question has arisen..... I was wondering, since  there are sounds there, will I be able to make some sounds and addd them to the already available sounds in OFP and I can scoll down and pick them out? Is there a way to add them?

ghillisniper_270

  • Guest
Re:How do we make a certain sound file sound from a certain area?
« Reply #13 on: 24 Apr 2005, 23:25:22 »
why don't my ogg files work with the "say" command?  I converted to wss, but they don't work well (they are slow, deep, and demonic).  AAARRRRGGGHHHHHHHH!  I'm so tired of downloading converters, codecs, tutorials, and all that crap!  My brain and my computer are about to explode!  Well, any help will be greatly appreciated!

pazuzu

  • Guest
Re:How do we make a certain sound file sound from a certain area?
« Reply #14 on: 27 Apr 2005, 19:49:42 »
I use Cool studio to add music & sounds. You can create a description.ext file very easily with this program & just go into it after to add anything extra.

Here: ftp://www.gamezone.cz:8021/ofpd/OFPCoolStudio.zip