VOX Created 5 years ago2019-04-25 23:06:05 UTC by NiX14 NiX14

Created 5 years ago2019-04-25 23:06:05 UTC by NiX14 NiX14

Posted 5 years ago2019-04-25 23:06:05 UTC Post #342516
Hey, i'd like to add VOX announcements into my level, everytime i place trigger and speaker, i get error "speaker has bad sentence group" As i understeand you can make custom sentences from all the words, but i can't find anywhere how to do it, all i managed to find is 10 year old post, but that didn't help.
Posted 5 years ago2019-04-26 02:14:31 UTC Post #342517
Hi..

Take a closer look in your Half-life sound folder. There should be a file called Sentences.txt if not then you first need to unpack it with mdl. model viewer. A tool that can open pak. files. Once you opened a .pak file browse to the valve sound folder and extract the sentence.txt and place it into your half-life sound folder. Your extracted file will now take priority over the packed version.

Open the sentences.txt

and add a reference for your sounds.

Something like this:

*/ My level sounds*/ <<< The game will ignore this line due to the // signs. It's just for you to know where your own stuff begins.

2 Examples:

s1_line milduty/briefing1 <<<<<<<<< s1_line is the name you assigned for the Editor exclusively. While Briefing1 is the actual name of my wav.file. This file would indicate a real custom sound file in the sound subfolder milduty (can be anything you like)

securitylock bizwarn bizwarn bizwarn error, system security lock, disengaged <<<<<<<< The interesting part for you an actual custom vox message I once created. Securitylock is the name the Editor will use.

while the remaining words in it instruct the engine to play x3 a buzzing sound and then read the words the engine knows.

To play these custom sounds in general either spoken by npcs or as vox message you need to type their names like this:
!s1_line
!securitylock

The ! in front is very important without the ! the sounds can't be found by the game.
Posted 5 years ago2019-04-26 10:52:24 UTC Post #342519
Thanks for reply, i couldn't get it to work depsite your instructions however, i got it to work the other way, i took sentences i want from VOX folder, put them together in audacity, and exported them in right format, added into my mod and placed as ambient generic that gets triggered when i walk past certain point.

I hope everyone who was wondering how to do it aswell, now will know, also tutorials how to add sounds into HL can be found easily.
You must be logged in to post a response.