Re: NPC interaction
Posted by itisjp on
Fri Feb 18th 2005 at 2:54am
18 posts
2 snarkmarks
Registered:
Dec 3rd 2004
Occupation: Programmer
Location: USA
I am trying to get some info on how to make a single player Level using HL2. I am hopeing that someone could point me to a site or a tutorial that could direct me on how the NPC's react and talk to gordon. I need to make my own conversations and I am looking for a starting point. Any help would be great. Thanks in advance.
Sincerely,
Jp
Re: NPC interaction
Posted by itisjp on
Tue Feb 22nd 2005 at 2:44am
18 posts
2 snarkmarks
Registered:
Dec 3rd 2004
Occupation: Programmer
Location: USA
I have been able to use Face Poster to create the speaking parts and the lip sync stuff. Well now what I though would be simple is driving me crazy. How do you get someone to react to Gordon. I can't firgure out how to make an NPC walk up to Gordon since info_player start can't be named. I named the suit but it is a fixed point and the NPC's will just walk to the point the suit was spawned. I would like to figure out how to get a friendly NPC to follow me around. Any Ideas?
Re: NPC interaction
Posted by satchmo on
Tue Feb 22nd 2005 at 3:30am
satchmo
member
2077 posts
1809 snarkmarks
Registered:
Nov 24th 2004
Occupation: pediatrician
Location: Los Angeles, U.S.
I thought the friendly NPC's follow you around by default, unless you flagged "not commandable" in the properties.
Other than that, I am not sure how to accomplish what you're trying to do.
Re: NPC interaction
Posted by beguiledfoil on
Tue Feb 22nd 2005 at 5:52am
59 posts
6 snarkmarks
Registered:
Nov 7th 2004
Location: Canaedia
I might be able to help if I know more about what exactly you're trying to accomplish. Do you just want the NPC to walk up to Gordon and start talking? Walk up and start talking at the same time? I assume there are animations involved, if not your NPC will look a little lifeless, so when do you want to start those?
The simplest tip I can offerwithout more info is to check out the "flags" tab of your NPC's properties. It's often forgotten, but its full of useful features, especially for NPCS. Specifically you can force your NPC to follow Gordon, which in your case might be quite useful.
Now, if you just want your npc to walk up to gordon, and then address him or whatever, place an info_target entity where you want the npc to walk to, then reference that target (by its name) in the script you've created in face poser. That's how I THINK it works at least, hopefully things work out for you.
So, your basic setup should (if I understand your situation right) be something like the following:
Create a scenefile with faceposer. Your most basic file will probably consist of a moveTo, with your info_target as the "Move To Actor" target followed by a playing of the lip-synching/voice stuff (Grats on figuring that stuff out, btw, I've been kind of half playing with it and not gotten very far.. if you have the time I'd love a tutorial :smile: ). Now, place the scene in the map with a choreo_scene. I don't know if they work without triggers to start them, but you could experiment.
That should get you started, if that's not what you need, post again, and I'll do my best to help ya.
Re: NPC interaction
Posted by itisjp on
Tue Feb 22nd 2005 at 5:43pm
18 posts
2 snarkmarks
Registered:
Dec 3rd 2004
Occupation: Programmer
Location: USA
Thanks for the advice. I will check out the flags (your right I hardly ever use them). You gave me a good run down of what I was looking for. I am actually dooing a small presentation on face poster to a gamming class on thursday so I should have a small into tutroial sometime this week. I will try to make it web accesable.