Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Subtitles for .snt files
Ardoetia Offline
Junior Member

Posts: 46
Threads: 4
Joined: Feb 2012
Reputation: 0
#1
Subtitles for .snt files

I want to make subtitles on the bottom of the screen with subtitles to a .snt file.


I have looked alittle, but as my deadline is soon, I would love if someone helped me with this quick.
(This post was last modified: 02-27-2012, 07:05 PM by Ardoetia.)
02-26-2012, 10:05 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#2
RE: Subtitles for .snt files

I think you need to make a flashback for that

02-27-2012, 12:01 AM
Find
Lihas Offline
Member

Posts: 90
Threads: 11
Joined: Jan 2012
Reputation: 3
#3
RE: Subtitles for .snt files

You wouldn't be needing .snt files, just use AddEffectVoice (Search the Engine Scripts section in HPL Wiki). There is a syntax, which decides the entity to play the file at (Player, closet, grunt, Alexander, etc). It would really save time, when making dialogue. Or you could be boring and use SetMessage. Either way, I'm with AddEffectVoice. That's how the dialogue in the main game is made. The only sound file you'll be needing is the .ogg file.

Sins Of Our Past: Chapter 1
[WIP] Sins Of Our Past: Chapter 2
02-27-2012, 12:13 AM
Website Find
Ardoetia Offline
Junior Member

Posts: 46
Threads: 4
Joined: Feb 2012
Reputation: 0
#4
RE: Subtitles for .snt files

And yeah, how to I make boxes explode?
(This post was last modified: 02-27-2012, 01:21 AM by Ardoetia.)
02-27-2012, 01:20 AM
Find
Lihas Offline
Member

Posts: 90
Threads: 11
Joined: Jan 2012
Reputation: 3
#5
RE: Subtitles for .snt files

Well, you need to choose the breakable box (container >> wood_box02_breakable.ent) and make a script, and add SetPropHealth function. Example:

void FUNCTION_NAME(string &in asParent, string &in asChild, int alState)

{

SetPropHealth("BOX", 0.0f);
GiveSanityDamage(20.0f, true);
PlayGuiSound("react_scare2.ogg", 1.0f);

}

Replace FUNCTION_NAME to your own function (Note; The script above is triggered when player enters a certain area.)

Replace BOX with your own box name.

That's pretty much it.

Sins Of Our Past: Chapter 1
[WIP] Sins Of Our Past: Chapter 2
02-27-2012, 03:17 PM
Website Find
Ardoetia Offline
Junior Member

Posts: 46
Threads: 4
Joined: Feb 2012
Reputation: 0
#6
RE: Subtitles for .snt files

Typical that the only wrong was that the boxes was the wrong type..
02-27-2012, 07:00 PM
Find




Users browsing this thread: 2 Guest(s)