Player Ally: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (A description of Allies, and the ways inwhich to change their behavior.)
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 it's own weapon. Allys 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.


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.
The difference between an ally and a companion is that a companion is normally a long term helper, Examples include:
 
Alyx
and Barney
 
Where as, Allys accompany you temporarily. Examples include:
 
Citizens ( unless a specific keyvalue is set)
,Refugees
and Rebels
 
 
A rebel is a good example ally, because he/she's goal is to attack anything that they decide is an enemy
( Use the point - entity [http://developer.valvesoftware.com/wiki/Ai_relationship]to change the enemies that it Dislikes, and likes )
 
The only main way that This branch of AI specificaly differs from others, is that it automaticly
Likes the player. ( this can be changed with the afore mentioned Ai_relationship )

Revision as of 04:15, 20 April 2009

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


The difference between an ally and a companion is that a companion is normally a long term helper, Examples include:

Alyx and Barney

Where as, Allys accompany you temporarily. Examples include:

Citizens ( unless a specific keyvalue is set) ,Refugees and Rebels


A rebel is a good example ally, because he/she's goal is to attack anything that they decide is an enemy ( Use the point - entity [1]to change the enemies that it Dislikes, and likes )

The only main way that This branch of AI specificaly differs from others, is that it automaticly Likes the player. ( this can be changed with the afore mentioned Ai_relationship )