Home   Help Search Login Register  

Author Topic: adding sounds that play in trigger  (Read 1289 times)

0 Members and 1 Guest are viewing this topic.

Lt.Andrews

  • Guest
adding sounds that play in trigger
« on: 21 Feb 2003, 06:33:49 »
iam working on a nam mission and would like to but sounds in the trigger option under the trigger effects  

i have read all the tutorals and i have my files in .ogg format and i made a

description.ext

// Define speech sounds in the game

class CfgSounds
{
   sounds[] =
      {
         BTBWild, HendrXWay , HendrXPurpl3
      };
   
   class BTBWild
   
   {
      name = "BTBWild";
      sound[] = {"\sounds\BTBWild.ogg", 1, 1.0};
      titles[] = {   };
   };
   class HendrXWay
   
   {
      name = "HendrXWay";
      sound[] = {"\sounds\HendrXWay.ogg", 1, 1.0};
      titles[] = {   };
   };
   class HendrXPurpl3    
   {
      name = "HendrXPurpl3";
      sound[] = {"\sounds\HendrXPurpl3.ogg", 1, 1.0};
      titles[] = {   };
   };
};


and 2 .sqs files

music.sqs

#loop
_this say "\sounds\BTBWild.ogg"
~53 -

music1.sqs


#loop
_this say "BTBWild.ogg"
~53 -



i cant get it to work at all

(note: i would like to have the sounds play inside the trigger radius what is the description.ext code to get them in the trigger option instead of the anoyminus option)

SpecOpWarrior

  • Guest
Re:adding sounds that play in trigger
« Reply #1 on: 21 Feb 2003, 12:36:45 »
whoa whoa whoa,

thats a horrible file you got going there...




Here is what you need my fellow friend...



By Spec Op 9:




class CfgMusic
{
tracks[] = {Track1, Track2, Track3};

class Track1
{
name = "name_Track1";
sound[] = {\music\Track1.ogg,db+10,1.0};
};
class Track2
{
name = "name_Track2";
sound[] = {\music\Track2.ogg,db+10,1.0};
};
class Track3
{
name = "name_Track3";
sound[] = {\music\Track3.ogg,db+10,1.0};
};
};


SpecOpWarrior

  • Guest
Re:adding sounds that play in trigger
« Reply #2 on: 21 Feb 2003, 12:42:35 »
Now that I re-read your post, you are trying to use sounds, not music...



hmmmm....

I would try using my script, and replace the

CfgMusic with CfgSounds

and the other stuff.

You have all the variable names correct... but it seems odd how it's not working...

Lt.Andrews

  • Guest
Re:adding sounds that play in trigger
« Reply #3 on: 21 Feb 2003, 17:36:06 »
this is the revised script but it does not work eather also iam useing version 1.85 . also the sounds still do not come up on the trigger option under trigger effects ???

class CfgSounds
{
tracks[] = {BTBWild , HendrXWay , HendrXPurpl3};

class Track1
{
name = "BTBWild";
sound[] = {"\sounds\BTBWild.ogg", 1, 1.0};
};
class Track2
{
name = "HendrXWay";
      sound[] = {"\sounds\HendrXWay.ogg", 1, 1.0};
};
class Track3
{
name = "HendrXWay";
      sound[] = {"\sounds\HendrXWay.ogg", 1, 1.0};
};
};


Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:adding sounds that play in trigger
« Reply #4 on: 22 Feb 2003, 01:10:09 »
Welcome to the forums, Lt. Andrews

I'm not expert when it comes to sound (definately one of my weaker areas), but instead of:

sound[] = {"\sounds\BTBWild.ogg", 1, 1.0};

try:

sound[] = {"BTBWild.ogg", 1, 1.0};

I think OFP automatically assumes your sounds will be in the \sounds subdirectory, and the first line may be pointing it to \sounds\sounds...

Anyway, I'm no expert on this. Try that and see if it works ;)

Lt.Andrews

  • Guest
Re:adding sounds that play in trigger
« Reply #5 on: 22 Feb 2003, 03:46:03 »
k thanks i have been on the fourms for a while but i hang out in the addons section :) not sure if it works but i will try it

SpecOpWarrior

  • Guest
Re:adding sounds that play in trigger
« Reply #6 on: 22 Feb 2003, 04:02:07 »
yea, sounds is one of the more difficult part of editing...


Too bad they can't make a simple folder where you can put all your custom music and sounds....

Lt.Andrews

  • Guest
Re:adding sounds that play in trigger
« Reply #7 on: 22 Feb 2003, 04:15:44 »
it still did not work

Lt.Andrews

  • Guest
Re:adding sounds that play in trigger
« Reply #8 on: 22 Feb 2003, 04:40:49 »
iam giveing up on it for now plus i need to get full versons of these songs anyway

teeBore

  • Guest
Re:adding sounds that play in trigger
« Reply #9 on: 22 Feb 2003, 15:46:28 »

and 2 .sqs files

music.sqs

#loop
_this say "\sounds\BTBWild.ogg"
~53 -

music1.sqs


#loop
_this say "BTBWild.ogg"
~53 -



err I'm not 100% on this but shouldn't the .sqs file read:
_this say "BTBWild"

(seeing you have already defined the file location of the music in the .ext file)