Relationships: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(wiki markup)
No edit summary
Line 1: Line 1:
{{cleanup}}
Relationships are what NPC characters use to know whether they should attack or not.
{{pov}}
the entity "ai_relationship" will adjust an NPC character's relations with the Player (referred to as ''!Player'' in Hammer)or another NPC character.


Relationships,
The entity has a number of settings built in, these though are the important ones:
Subject(s) - The NPC receiving the relationship change (''!Player'' will work also).
Target(s) - The target the picked NPC will change relationships with (''!Player'' also works).
Disposition - Type of relationship, Hate / Neutral / Like / Fear.
Reciprocal - If true it will mirror the relationship to the Target, basically turning the Target's relationship with the Subject to whatever has been set.


A relation is the attitude a NPC has towards another NPC and the Player, there are four groups in Half-Life 2,
Other settings:
Name - Essential if you plan to turn this on / off during game.
Radius for Subject - ????
Start Active - Whether the relationship should start active or not. (default FALSE)


The Combine (metros, manhacks etc.)
The Rebels (humans, vortiguants etc.)
The Zombies (headcrabs etc.)
And of course, The Antlions.


In HAMMER you can modify a NPC's Relationship with the AI_Relationship entity, you select the NPC or NPC Entity (npc_metropolice,npc_zombie etc.) to change and who its' attitude towards will change. you choose from four different attitudes: Like, Neutral, Hate, Fear.


Like: NPC will not attack and will help.
By Rasirez.
Neutral: NPC will not attack unless attacked (i'm not sure entirely on this!!)
Hate: Will attack until the enemy is killed or lost,
Fear: NPC will back away from the Player or NPC and will not attack.
 
 
That sums up the basics,
-Rasirez

Revision as of 10:48, 6 October 2007

Relationships are what NPC characters use to know whether they should attack or not. the entity "ai_relationship" will adjust an NPC character's relations with the Player (referred to as !Player in Hammer)or another NPC character.

The entity has a number of settings built in, these though are the important ones: Subject(s) - The NPC receiving the relationship change (!Player will work also). Target(s) - The target the picked NPC will change relationships with (!Player also works). Disposition - Type of relationship, Hate / Neutral / Like / Fear. Reciprocal - If true it will mirror the relationship to the Target, basically turning the Target's relationship with the Subject to whatever has been set.

Other settings: Name - Essential if you plan to turn this on / off during game. Radius for Subject - ???? Start Active - Whether the relationship should start active or not. (default FALSE)


By Rasirez.