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
Soma wont use voicehandler subs in mod
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#2
RE: Soma wont use voicehandler subs in mod

I don't have a way to check/test this right now, but I might be able to guess what the game is doing here.

Voice_Play takes an name of a subject defined in the .voice file. Now, IIRC, one of the optional parameters to Voice_Play is a line to play, which makes me think that you can probably define multiple "lines" (recorded sentences) within a subject, by specifying several entries from the .lang file - and so make a kind of a "paragraph", connecting lines about a related subject; Voice_Play probably plays all of those lines by default.

Again, this is off of the top of my head, so you should open some of the existing .voice files and check if this is correct.

If so, then the game probably uses the .lang file for whatever the current language is, and plays the specified entries. This would enable them to write the same script code for all languages.
If I didn't get it quite right, it's probably something similar - so, if you figure it out, do post the solution here.
10-11-2015, 04:47 PM
Find


Messages In This Thread
Soma wont use voicehandler subs in mod - by WALP - 10-11-2015, 12:33 PM
RE: Soma wont use voicehandler subs in mod - by TheGreatCthulhu - 10-11-2015, 04:47 PM



Users browsing this thread: 1 Guest(s)