Home   Help Search Login Register  

Author Topic: Playing man hit sounds  (Read 542 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Playing man hit sounds
« on: 19 Dec 2004, 13:27:21 »
I've been trying to implement manhit sounds (screams) as done in the ECP.

I have the following description.ext, code taken from ECP.

Code: [Select]
class CfgSounds
{
sounds[] = { ManHit0,ManHit1,ManHit2,ManHit3,ManHit4,ManHit5};
   class ManHit0
   {
      sound[]={"voices\Hit11",0.056234,1.0};
      name = "ManHit0";
      titles[] = {};
    };
   class ManHit1
   {
      sound[]={"voices\Hit12",0.056234,1};
      name = "ManHit1";
      titles[] = {};
    };
   class ManHit2
   {
      sound[]={"voices\Hit13",0.056234,1};
      name = "ManHit2";
      titles[] = {};
    };
   class ManHit3
   {
      sound[]={"voices\Hit14",0.056234,1};
      name = "ManHit3";
      titles[] = {};
    };
   class ManHit4
   {
      sound[]={"voices\Hit15",0.056234,1};
      name = "ManHit4";
      titles[] = {};
    };
   class ManHit5
   {
      sound[]={"voices\Hit16",0.056234,1};
      name = "ManHit5";
      titles[] = {};
    };
};

When I try:
Code: [Select]
PlaySound "ManHit0"
no sound is played and no error message is displayed. What am I doing wrong?

urp!

Offline Zayfod

  • ECP Team
  • *
  • Llama, softest natural fibre in the world.
Re:Playing man hit sounds
« Reply #1 on: 21 Dec 2004, 15:01:21 »
Hmm,
I havent worked with a description.ext for like ages but one thing I have noticed in the past is that the command "playsound" , in general, requires much higher preset volumes than the "say" command.

What happens when have this?

player say "ManHit0"

Hope this helps, its 3:25 am here atm and I am away from my ofp PC so I cant resolve this for you but try what I say and you may hear the sound. If this is the case then in order for you to hear it via the playsound command you will need to increase its volume considerably

<sound[]={"voices\Hit11",volume,pitch};>

 :)

 (big yawn) ooo dear, bed time for me I think

Zay

« Last Edit: 21 Dec 2004, 15:03:10 by Zayfod »
"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:Playing man hit sounds
« Reply #2 on: 21 Dec 2004, 15:25:47 »
Neither Say or PlaySound worked. In the end I copied the *.wss files for hit11-hitxx from Res/Dta/Sound/Voices/ to the sound folder for my mission. It seems to be ridiculous to have to do this, and I know the ECP does not do this, but it is the only way I could get it to work.
urp!

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Playing man hit sounds
« Reply #3 on: 23 Dec 2004, 11:56:09 »
Will simply using *.wss files work?  If I had known that I would have saved myself some trouble.  I found some sounds I wanted, converted then from wss to wav (because that is the only wss converter I have) then converted them to ogg.

Could I really have just used the straight wss files?

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:Playing man hit sounds
« Reply #4 on: 23 Dec 2004, 15:04:03 »
Yes. Just copy the *.wss to your sound directory, and when you declare them, do not use the .wss file extension, just the filename.
« Last Edit: 23 Dec 2004, 15:05:19 by Mr.Peanut »
urp!

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Playing man hit sounds
« Reply #5 on: 23 Dec 2004, 15:53:01 »
Thanks.  If only I had known!