OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Chammy on 31 Aug 2004, 10:40:14
-
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.
-
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)
-
Well thanks ACF, im going to give it a try.
-
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.
-
I recently added a tutorial about it to the editing center. look either under scripts or tutorials under sound.
-
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.
-
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:
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:
class CfgSounds
{
sounds[] = {sound1, 3sound2, etc};
class soundname
{
name =....
...pretty sure thats everything.....
-
Woa confusing.OK.Thnx.
-
yeah after you do it a few times its not hard tho
-
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.
-
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
Sniper say "i dont knwo what the gunshot sound would be so please give me a list"
???
Guy ;D
-
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.
-
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?
-
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!
-
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
-
I figured out my problem. Sound files need to be mono apparently and not stereo. I've been told that, but I forgot. Aight! Peace out!