scripted_sentence
Post Reply
Quote
Re: scripted_sentence
Posted by morpheus77 on Thu Dec 9th at 1:06pm 2004


Quick question.

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

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.

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, just stumped cause I tried about everything to make it work





Quote
Re: scripted_sentence
Posted by Leperous on Thu Dec 9th at 2:10pm 2004


There are npc_sounds_*.txt files in the source engine GCF which presumably link to them...



Quote
Re: scripted_sentence
Posted by morpheus77 on Thu Dec 9th at 3:17pm 2004


Yes, I know that, I mentioned that.

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?





Quote
Re: scripted_sentence
Posted by Guessmyname on Thu Dec 9th at 5:32pm 2004


I get any scripted things (sentences, sequences, targets) to work!

None of my monsters can do anything that's not using its ai!!!!!!!!!!!!!!!!!!!!!





Quote
Re: scripted_sentence
Posted by morpheus77 on Thu Dec 9th at 7:46pm 2004


Maybe you can tell me how?





Quote
Re: scripted_sentence
Posted by Nanodeath on Thu Dec 9th at 8:02pm 2004


Here's a link that covers at least a couple of the topics you brought up...such as lipsyncing custom wavs.



Quote
Re: scripted_sentence
Posted by Leperous on Thu Dec 9th at 9:21pm 2004


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 :/





Quote
Re: scripted_sentence
Posted by parakeet on Thu Dec 9th at 9:42pm 2004


= 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 ?

[addsig]




Quote
Re: scripted_sentence
Posted by morpheus77 on Thu Dec 9th at 10:16pm 2004


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





Quote
Re: scripted_sentence
Posted by parakeet on Fri Dec 10th at 12:04am 2004


http://www.valve-erc.com/srcsdk/Sound/soundscapes.html ahem this should help some [addsig]



Quote
Re: scripted_sentence
Posted by morpheus77 on Fri Dec 10th at 11:47am 2004


I'll go play around with those soundscapes.

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

Thanks.






Post Reply