Player Companion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Fixed spelling, again. Take more care in the article, rather then what you've don to write it like it's a race :p)
mNo edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
A player companion helps the player through the hole game. Take these npc's for example [[npc_alyx]], [[npc_barney]]. You know how long they've been in the game and how many people they take out, there built to have more health then allies like the [[npc_rebel]]. They are mostly scripted with max health, so they can protect and live longer defined by there ai or sequences or even the type of person. Allies are a rough good help with tactics able to take down a army. Barney is a disguised kind of guy who is neat and uses many weapons unlike Alyx with the shotgun and alyxgun also known as the Super Pistol. Companions will have a longer lifetime. CS:S Bots are companions, they have a lot of health, and can take down a player real easy.
A player companion helps the player through the majority of the game. Examples include [[NPC]]s [[npc_alyx]] and [[npc_barney]]. Distinguished from a [[Player Ally]] who is a generic expendable character (such as a rebel) and assists the player only briefly.
 
In some games a Player Companion is invincible; they may be knocked down or play pain animations but cannot actually die. In other cases the Companion has signifiantly more health than normal, but can still die, resulting in a game over.
 
Setting an NPC as vital/essential can be done several ways.
=Keyvalues=
This NPC will cause the game to end if killed.
* Is this a vital ally? ('''GameEndAlly''') <boolean> (in all games since Half-Life 2: Episode One)
=Inputs=
Determines whether the game should end if this character dies.
* '''MakeGameEndAlly'''  (in all games since Half-Life 2: Episode One)
* '''MakeRegularAlly'''  (in all games since Half-Life 2: Episode One)
 
 
{{stub}}
[[Category:Half-Life 2]]

Latest revision as of 14:11, 27 October 2024

A player companion helps the player through the majority of the game. Examples include NPCs npc_alyx and npc_barney. Distinguished from a Player Ally who is a generic expendable character (such as a rebel) and assists the player only briefly.

In some games a Player Companion is invincible; they may be knocked down or play pain animations but cannot actually die. In other cases the Companion has signifiantly more health than normal, but can still die, resulting in a game over.

Setting an NPC as vital/essential can be done several ways.

Keyvalues

This NPC will cause the game to end if killed.

  • Is this a vital ally? (GameEndAlly) <boolean> (in all games since Half-Life 2: Episode One)

Inputs

Determines whether the game should end if this character dies.

  • MakeGameEndAlly (in all games since Half-Life 2: Episode One)
  • MakeRegularAlly (in all games since Half-Life 2: Episode One)


Stub

This article or section is a stub. You can help by expanding it.