Player Ally: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (serious cleanup)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
A player ally is an NPC or a bot that will try to help the player by protecting him or provide cover.
A player ally is an [[NPC]] or a [[bot]] that will help the player, by providing covering fire if the ally has its own weapon. Allies can also be used to open special locked doors, with keypads If scripted so.


The difference between an ally and a companion is that the companion will try to help you throughout the game whereas the ally could leave your side at any point in order to succed its own goals. So the goal of the companion is to help you, but the goal of the ally could be something else. This also means that one should not trust the ally NPC.
The difference between an ally and a [[Player Companion]] is that a companion is normally a long term helper, Examples include Alyx and Barney. Allies accompany you temporarily. Examples include: Citizens, Refugees, and Rebels.


An example is the rebel. The rebel is a good ally because their goal is to protect you and attack anything that you attack such as [[npc_combine_s]]'s, [[npc_antlion]]'s and a [[npc_zombie]]'s. Last the rebel is a perfect ally as they die easily but are still as strong as a combine.
A rebel is a good example ally, because his/her goal is to attack anything that they decide is an enemy. Use the [[point entity]] ''[[ai_relationship]]'' to change what it likes and dislikes.
 
The only main way that this branch of AI specificaly differs from others, is that it automatically Likes the player, though this can be changed with the aforementioned ai_relationship.
 
[[Category:AI]]

Latest revision as of 14:16, 19 March 2011

A player ally is an NPC or a bot that will help the player, by providing covering fire if the ally has its own weapon. Allies can also be used to open special locked doors, with keypads If scripted so.

The difference between an ally and a Player Companion is that a companion is normally a long term helper, Examples include Alyx and Barney. Allies accompany you temporarily. Examples include: Citizens, Refugees, and Rebels.

A rebel is a good example ally, because his/her goal is to attack anything that they decide is an enemy. Use the point entity ai_relationship to change what it likes and dislikes.

The only main way that this branch of AI specificaly differs from others, is that it automatically Likes the player, though this can be changed with the aforementioned ai_relationship.