Home   Help Search Login Register  

Author Topic: Why do I hear my typewriter?  (Read 692 times)

0 Members and 2 Guests are viewing this topic.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Why do I hear my typewriter?
« on: 27 Sep 2005, 21:56:32 »
I have a problem. I can hear my typewriter, even though I've switched off the sound in OFP. And no, before you make a smart remark about it... I am not crazy. This is my problem:

I'm making a scrolltext, provided in Blanco's excellent
Scrolltext tutorial.

If you are familiar with it you know that it's a script that lets you print text, letter by letter instead of using titletext. It also includes sounds, so you can give the player the impression that the text is being written across the screen by a typewriter, or a 1980's computer.

I works like dream. Now my question. In one cutscene involving a helicopter, I switched off the sound (using the fadeSound command) because the rotor was too loud, and it was impossible to hear my custom music file.

But it's still possible to hear the sound from the typewriter in that scene. Can anyone explain why? It seems as if fadeSound only switches off some sounds, not all of them.

It's not really a problem that I can hear the typewriter, because it produces a cool effect in the cutscene, and I would like to recreate that effect in future missions. But first I'd like to understand how OFP handles sounds.

Does it have anything to do with filetypes (the typewriter is a .wav sound, placed in the sound folder, within the mission)?

Or...

Does the fadeSound command only work on built in sounds from the game??
Or...

Maybe I'm just crazy???

EDIT: I think I saw something similar in the CSLA campaign once. The engine sounds were switched off, but the voiceover was still playing. I always assumed that they recorded the voiceover as a music file. But maybe fadesound doesn't work on custom sounds provided with the mission???
« Last Edit: 27 Sep 2005, 22:00:14 by nominesine »
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Kyle Sarnik

  • Guest
Re:Why do I hear my typewriter?
« Reply #1 on: 27 Sep 2005, 23:49:19 »
Yep, fadesound only works on the game's sounds (guns,vehicles, etc...), not things like playsound.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Why do I hear my typewriter?
« Reply #2 on: 28 Sep 2005, 12:47:53 »
I don't know why it does it but to fix it you could just remove the references to playing it. the playsound bits.
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."

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:Why do I hear my typewriter?
« Reply #3 on: 28 Sep 2005, 15:49:45 »
Thanks. I don't need to fix it, because I like the effect and I'm going to keep it the way it is.
OFPEC | Intel Depot
RETARDED Ooops... Retired!