scripted_sentence

scripted_sentence

Re: scripted_sentence Posted by morpheus77 on Thu Dec 9th 2004 at 1:06pm
morpheus77
21 posts
Posted 2004-12-09 1:06pm
21 posts 2 snarkmarks Registered: Dec 9th 2004 Occupation: IT Location: Netherlands
Quick question.

Maybe the answer is not so quick, but i think it should be. :biggrin:

How do you let a NPC, eg NPC_Alyx use a sentence, and I mean like the sentences from the in-game speech?

I checked the sentences.txt but its not even in there, the sounds are listed per-level in seperate sound files (like level_sounds_eli_lab.txt), with no sentence reference as was usual in Half-Life 1. :confused:

Sentences.txt seems more dedicated to the Common speech for allies/enemies then storyline speech.

I checked all the GCFs for references, and found that there are references to the speech sounds, but nothing I got to work for me.

Really, maybe its just that it works differently in HL2 because of the posing/lipsyncing, but in that case I'll rephrase to this.

How can I make a NPC speak a WAV/RAW with lipsyncing? (even my custom ones)

I have tried to find it like allmost everywhere, maybe Im wrong, but does anyone know?

Any help would be very much appriciated.

P.S Im not quite a noob :rolleyes: , just stumped cause I tried about everything to make it work :biggrin:
Re: scripted_sentence Posted by Leperous on Thu Dec 9th 2004 at 2:10pm
Leperous
3382 posts
Posted 2004-12-09 2:10pm
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
There are npc_sounds_*.txt files in the source engine GCF which presumably link to them...
Re: scripted_sentence Posted by morpheus77 on Thu Dec 9th 2004 at 3:17pm
morpheus77
21 posts
Posted 2004-12-09 3:17pm
21 posts 2 snarkmarks Registered: Dec 9th 2004 Occupation: IT Location: Netherlands
Yes, I know that, I mentioned that. :smile:

I just cant seem to get them to play

If you use scripted_sentence, you have to give a short reference code, thats not in there as far as I can see?

Do you know how to? please explain then?
Re: scripted_sentence Posted by Guessmyname on Thu Dec 9th 2004 at 5:32pm
Guessmyname
342 posts
Posted 2004-12-09 5:32pm
342 posts 173 snarkmarks Registered: Dec 6th 2004
I get any scripted things (sentences, sequences, targets) to work!

None of my monsters can do anything that's not using its ai!!!!!!!!!!!!!!!!!!!!!
Re: scripted_sentence Posted by morpheus77 on Thu Dec 9th 2004 at 7:46pm
morpheus77
21 posts
Posted 2004-12-09 7:46pm
21 posts 2 snarkmarks Registered: Dec 9th 2004 Occupation: IT Location: Netherlands
Maybe you can tell me how? :smile:
Re: scripted_sentence Posted by Nanodeath on Thu Dec 9th 2004 at 8:02pm
Nanodeath
356 posts
Posted 2004-12-09 8:02pm
356 posts 66 snarkmarks Registered: Nov 11th 2004 Occupation: Student - Bioengineering Location: Seattle, WA, USA
Here's a link that covers at least a couple of the topics you brought up...such as lipsyncing custom wavs.
Re: scripted_sentence Posted by Leperous on Thu Dec 9th 2004 at 9:21pm
Leperous
3382 posts
Posted 2004-12-09 9:21pm
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
Maybe you have the path wrong (e.g. might need to start it with script/). Also I remember in HL1 you used to have to precede the sentence name with ! to get it to work :/
Re: scripted_sentence Posted by parakeet on Thu Dec 9th 2004 at 9:42pm
parakeet
544 posts
Posted 2004-12-09 9:42pm
parakeet
member
544 posts 81 snarkmarks Registered: Apr 30th 2004 Occupation: n/a Location: Eastern US

P i made a tut to scripting models on this site for Half-life one and I believe a lot of the things still work the same in hl2 (hope it does anyways) it should be in Half-life/Tutorials/Entities/Aiscripted sequences

Edit: (this is for guessmyname) Umm just check it right if it does work the same in hl2 ?
Re: scripted_sentence Posted by morpheus77 on Thu Dec 9th 2004 at 10:16pm
morpheus77
21 posts
Posted 2004-12-09 10:16pm
21 posts 2 snarkmarks Registered: Dec 9th 2004 Occupation: IT Location: Netherlands
I'll go and try to get it to work for my custom waves.

But whats really an issue is, how to let eg alyx say one of her lines from the singleplayer game (maybe it isnt even possible, but I found the speech wave's and the references. I just dont know how to hook them up)

Thnks for your input anyways :wink:
Re: scripted_sentence Posted by parakeet on Fri Dec 10th 2004 at 12:04am
parakeet
544 posts
Posted 2004-12-10 12:04am
parakeet
member
544 posts 81 snarkmarks Registered: Apr 30th 2004 Occupation: n/a Location: Eastern US
Re: scripted_sentence Posted by morpheus77 on Fri Dec 10th 2004 at 11:47am
morpheus77
21 posts
Posted 2004-12-10 11:47am
21 posts 2 snarkmarks Registered: Dec 9th 2004 Occupation: IT Location: Netherlands
I'll go play around with those soundscapes.

I just thought that was more intended for ambient sounds and special effects :wink:

Thanks.