Player Companion: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Ninjaofsauce (talk | contribs) mNo edit summary |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
A player companion helps the player through the | 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)