npc_hunter_maker

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)

npc_hunter_maker is a point entity available in Half-Life 2: Episode One Half-Life 2: Episode One, Half-Life 2: Episode Two Half-Life 2: Episode Two, and Portal Portal. An entity that creates hunters. The NPCs it creates are clones of a template NPC.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

BaseNPCMaker:

Num. of NPCs (MaxNPCCount) <integer>
Number of NPCs that will spawn before this spawner is exhausted.
Frequency (SpawnFrequency) <string>
How often (in seconds) a new NPC will be spawned. If set to -1, a new NPC will be made when the last NPC dies.
Max Live NPCs (MaxLiveChildren) <integer>
Maximum number of live children allowed at any one time (new ones will not be made until one dies). If set to -1, no limit is applied.
Name of template NPC (TemplateName) <targetname>
Name of template NPC that this maker should be creating clones of.
Radius (Radius) <float>
Radius around this maker within which NPCs are to be placed. Spawned NPCs will try and find empty space within this radius to spawn.
Name of Destination Group (DestinationGroup) <targetname>
Name of Destination Group. If you'd like spawned NPCs to be created at an info_npc_spawn_destination entity, enter the name of that entity here. If you have more than one destination entity by that name, the Destination Criteria will be used to select one from the group
Dest. Criterion: Visible to player? (CriterionDistance) <choices>
Should the NPC try to spawn at a destination that the player can see? Only applicable if a Destination Group is being used.
  1.  : Yes
  2.  : No
  3.  : Don't Care
Dest. Criterion: Distance to player? (CriterionVisibility) <choices>
Should the NPC try to spawn at a destination that the player can see? Only applicable if a Destination Group is being used.
  1.  : Nearest
  2.  : Farthest
  3.  : Don't Care
Minimum spawn distance from player (MinSpawnDistance) <integer>
The spawn destination node distance to the player will have to be further or equal than this value.

Inputs

SpawnNPCInRadius
Spawn an NPC somewhere within the maker's radius.
SpawnNPCInLine
Spawn an NPC somewhere within a line behind the maker.
SpawnMultiple
Spawn multiple NPCs (uses destination group, else radius).
ChangeDestinationGroup
Switch to a different set of Destination entities.
SetMinimumSpawnDistance
Set the minimum spawn distance from player to destination node.

Spawnflags

Always use radius spawn : [256]
Don't preload template models : [512]