The Source engine is a 3D game engine developed by Valve Corporation. Its unique features include a large degree of modularity and flexibility, an artist-driven, shader-based renderer, accurate lip sync and facial expression technology, and a powerful, efficient and completely network-enabled physics system.

Report article RSS Feed HD Video Tutorial - NPC Relationships

Learn how to alter the minds of those puny NPCs to change what they think about other people or things.

Posted by Silverfisk on Dec 4th, 2009
Intermediate Mapping/Technical.

Rundown
We start out with a Combine Soldier and a player start. We create an ai_relationship entity and use it to make the Combine like the player.

Then we add a trigger_once entity that reverts the disposition change when triggered so that the Combine will try to kill the player again.


Please give me a comment telling me what you think.
Also, don't forget to give me tutorial requests!

Post comment Comments
Chrissstrahl
Chrissstrahl Dec 5 2009, 2:17am says:

Interesting :),
perhaps you can do a example mini mission how to make a interactive mission map with simple basic objects(not just doors) for starters.

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 5 2009, 9:14am replied:

Thank you!
I want to keep my tutorials focused and then let the mapper decide what to do with it. So I'd rather make many focused tutorials than one tutorial on a loose subject. :)

+5 votes   reply to comment
SysOp.
SysOp. Dec 6 2009, 1:20am replied:

Exactly, excellent work!

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 6 2009, 5:22pm replied:

Thank you!

+1 vote   reply to comment
Radu_IceMan
Radu_IceMan Dec 5 2009, 6:06am says:

Keep them coming! These tutorials are really helpful.

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 5 2009, 9:14am replied:

Thank you!
I'm glad you like them!

+1 vote   reply to comment
Minuit
Minuit Dec 5 2009, 8:09am says:

Cool tutorial. I've never really looked into mapping for Source too much, but it seems like it's got a LOT of customisation features. Kinda like Spirit of Half-Life for GoldSrc, but already built into the game.

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 5 2009, 9:17am replied:

Thank you!
Yeah you can really do a lot of things with Hammer, if you've got a Source game I suggest you check it out. It's pretty easy to use also.

+1 vote   reply to comment
Minuit
Minuit Dec 5 2009, 10:00am replied:

Yeah, I've been mapping for GoldSrc with Hammer for years now, but I've just never felt any inspiration for making anything on Source. Maybe I should try and make a miniproject sometime, to try and familiarise myself with all these new entities.

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 5 2009, 10:29am replied:

You might as well do that, GoldSrc is very old compared to the newer engines and it's always nice keeping yourself up to date. :)

+1 vote   reply to comment
MrCake
MrCake Dec 5 2009, 12:19pm says:

I have a question: Is it possible to make a NPC drive a car? (if you could do this in a mod the player wouldn't have to do everything in a mission)

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 5 2009, 4:53pm replied:

I'm afraid you can't do that easily, no. :(
You can have AI controlled Combine APCs though.

+1 vote   reply to comment
Croco15
Croco15 Dec 5 2009, 12:52pm says:

Great tutorial.

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 5 2009, 4:53pm replied:

Thank you!

+1 vote   reply to comment
cW#Ravenblood
cW#Ravenblood Dec 5 2009, 2:24pm says:

awesome tuto
and this is the ony english tuto where i can understand :D
thx m8 and keep up more!

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 5 2009, 4:54pm replied:

Thank you!
You bet I'll keep going! :)

+1 vote   reply to comment
Relto
Relto Dec 5 2009, 11:05pm says:

Another good tutorial, mate.

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 6 2009, 11:23am replied:

Thanks!
More are to come!

+1 vote   reply to comment
wazanator
wazanator Dec 6 2009, 1:47pm says:

Think you could make a tutorial on optimizing a map? To me that seems where most people have problems mapping at as they don't know what exactly to func_detail or where to put hint brushes

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 6 2009, 2:25pm replied:

Good request, it's been added to the list!
Thank you!

+1 vote   reply to comment
Holymac
Holymac Dec 8 2009, 10:03am says:

Hey can you add a tutorial on func_tank i think that actually shoots bullets or something like that oh and also make the cancop i know thats a scripted_sequence but its so funny. Good tutorial I watched NPC animations and NPC_navigation aswell as this. Keep up the good work.

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 13 2009, 2:07pm replied:

I've added your requests to the list!
Thank you, I'm glad you like my tutorials!

+1 vote   reply to comment
SneakySoft
SneakySoft Dec 15 2009, 12:01pm says:

AWESOME TUTORIALS
-I would like to see an advanced lighting tutorial.

+2 votes     reply to comment
Silverfisk Author
Silverfisk Dec 15 2009, 4:32pm replied:

Thank you! :D
Great, thanks for the request, it's been added to the list!

+1 vote   reply to comment
SneakySoft
SneakySoft Dec 16 2009, 11:27am replied:

ohh, I have another one, how about a tutorial show how to let a character walk a path while looking at you, talking to you and having the right voice audio with that.

lik eall teh alyx moments ingame

+1 vote     reply to comment
Silverfisk Author
Silverfisk Jan 6 2010, 9:13am replied:

That's choreography, I'll add it to the request list, thank you.

+1 vote   reply to comment
ruanito
ruanito Jul 30 2010, 4:40pm says:

So what if you make it reverse the relationship when it's programmed to fear or ignore? "fear --> ignore" and "ignore --> fear"?

+1 vote     reply to comment
Seaal
Seaal Aug 18 2010, 11:38pm says:

If you make a vortigaunt bad, are you able to kill it?

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Platforms
Windows, PS3, X360, XBOX
Company
Valve
Contact
Send Message
Official Page
Valvesoftware.com
Licence
Commercial
Release Date
Released Oct 31, 2004
Engine Watch
Track this engine
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Engines
Source
Source Commercial Released Oct 31, 2004
Related Groups
Level Design Group
Level Design Group Hobbies & Interests group with 588 members
The Human Pond
The Human Pond Hobbies & Interests group with 9 members
Valve
Valve Developer & Publisher