08-07-2012, 09:06 AM
08-07-2012, 09:41 AM
This belongs in development support, moved.
Please try to post your threads in the correct places in the future.
Please try to post your threads in the correct places in the future.
08-07-2012, 03:03 PM
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.
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.
08-07-2012, 03:19 PM
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.
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.