Frictional Games Forum (read-only)

Full Version: How do I trigger sounds & How do I make my own custom Flashbacks?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I trigger custom sounds?

And how do I make my own custom flashbacks?

Thanks in advance, SmokeMelvin.
This belongs in development support, moved.

Please try to post your threads in the correct places in the future.
For the custom sound, you should google it. Here you go.
http://www.frictionalgames.com/forum/thread-7395.html
Just use PlayGuiSound or PlaySoundAtEntity to test it.

I'm not sure about the flashback, maybe look at the original game files? I'm sure the level editor and the .hps is all you need.
There's quite alot of text when it comes to the voices and subtitles.

You'll need the subtitles in your extra_english.lang file like this:

<CATEGORY Name = "Flashbacks">
<Entry Name="Flashback1_01">Text Here</Entry>
</CATEGORY>

Then you will need your sound files in the lang/eng/voices/flashbacks/NAME-OF-FILE. You can add sound effects with e.g. Audacity. There's a thread on the forum on how to change it.

When all that is done you can make your .flash file. Which can look like this:

<Flashback>
<Voices>
<Voice VoiceSound="flashbacks/F01_01bs.ogg" EffectSound="fb_sfx_03_archivesMODIFIED.ogg" TextCat="" TextEntry="" />
<Voice VoiceSound="flashbacks/F01_01.ogg" EffectSound="" TextCat="Flashbacks" TextEntry="Flashback1_01" />
<Voice VoiceSound="flashbacks/F01_02as.ogg" EffectSound="" TextCat="" TextEntry="" />
</Voices>
</Flashback>

You will haft to time it so that the sounds and subtitles don't start when the screen turns white. That's what the F01_01bs and F01_02as are for.

I hope I've explained it well enough. Any questions just ask.