HELP! Custom Sentences! Created 19 years ago2005-01-25 17:57:39 UTC by v0rt3x v0rt3x

Created 19 years ago2005-01-25 17:57:39 UTC by v0rt3x v0rt3x

Posted 19 years ago2005-01-25 17:57:39 UTC Post #85735
Hey there everyone!
I checked the forum for this one, but didnt get anything.

I was wondering whether you can add sound files to Half Life and let them be spoken by a scientist.

I've imported test.wav to a new folder in the pak file called custom.
If I run the game and type 'play custom/test" it does play the file, but I cannot get a scripted_sentence to associate to it.

I've tried to replace, remake and delete the sentences.txt in the pak file, with an additional line:

SC_TEST0 custom/test

but it wouldn't let me safe the edited sentences.txt in the pak file (invalid file name) ??.

Any ideas? I need a fairly quick response!!

Thx!
Posted 19 years ago2005-01-25 18:17:43 UTC Post #85742
You don't need to replace the file in the PAK, just put it in C:SierraHalf-Lifevalvesound (or wherever it is for you).
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2005-01-26 10:27:09 UTC Post #85851
Umm,, when I made my own sound for HL (Ut was for barney.. He was going tu say: MUHAHAHA :P)
he didn't even move his mouth!

/

Yes, I made a scentence of it in the scentence txt file.. But it didn't work..
>_<
Madcow MadcowSpy zappin my udder
Posted 19 years ago2005-01-26 13:39:51 UTC Post #85872
What did you name the sentence line for test.wav?
ex

HGRUNT_IDLE "speak"

If you wanted to use this,

Then in Hammer Instead of writing HGRUNT_IDLE(to be spoken) you would simple put a "!" in front of it--

HGRUNT_IDLE now becomes
!HGRUNT_IDLE,

The ! tells the engine to look in the Sentences.txt file.
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 19 years ago2005-01-26 13:41:08 UTC Post #85873
Oh In your case

!SC_TEST0

Sorry for the double post :)
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 19 years ago2005-01-26 19:12:19 UTC Post #85973
No, the ! tells HL to play a specific sentence rather than a random one from a group.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2005-01-26 20:55:31 UTC Post #85993
Take a look at my mod called HLywood in the completed map vault. I replaced the normal sentences with sound bites form various movies. Here's a previous post that explains how it is done.
You must be logged in to post a response.