Npc headcrab black: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
m (Robot: fixing template case.)
Line 21: Line 21:


== Flags ==
== Flags ==
* {{fl basenpc}}
* {{Fl BaseNPC}}
* 65536 : Start hidden
* 65536 : Start hidden
* {{EP1 add|131072 :  Start hanging from ceiling}}
* {{EP1 add|131072 :  Start hanging from ceiling}}

Revision as of 19:21, 19 January 2009

Template:Wrongtitle

Entity description

Black headcrab - click to enlarge

Black headcrabs, upon biting the player, temporarily reduce the player's health to 1. They are best used in tandem with other melee NPCs like regular headcrabs to make fighting more intense. However, it is risky to group them near NPCs with ranged attacks, as the player will die very easily. In fact, many players are conditioned to kill black headcrabs first because of the threat they pose compared to other enemies.

Commonly found in groups covering a single host poison zombie which hurls its parasite cargo towards the player, they can make a formidable foe so should be placed carefully. Killing the poison zombie will not necessarily kill any of the headcrabs it is carrying, much less all of them (the sole exception may be AR2 secondary fire energy balls). They are also quite resistant to fire and will attack while burning.

Note.pngNote:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.

Dedicated CVars

  • sk_headcrab_poison_health
<integer> A poison headcrab's spawn health

Keyvalues

  • startburrowed
<boolean>

Flags

BaseNPC flags 
Wait Till Seen : [1]
Prevents this NPC from seeing (or being seen) until it enters a player's viewcone.
Gag : [2]
Won't make IDLE sounds until it's angry.
Fall to ground (unchecked means teleport to ground) : [4]
Drop Healthkit : [8]
Causes this NPC to drop an item_healthvial upon dying.
Efficient : [16]
Don't acquire enemies or avoid obstacles
Wait For Script : [128]
Forces this NPC to "wait" in an idle state until it finishes playing a scripted_sequence.
Long Visibility/Shoot : [256]
By default, increases a NPC's sight range to 6,000 units and allows it to attack from anywhere within that distance.
Fade Corpse : [512]
Think outside PVS : [1024]
Allows this NPC to run its regular AI outside of any player's PVS.
Template NPC : [2048]
Marks this NPC as a template for entities like npc_template_maker. The NPC will not spawn on its own. This is not needed for point_template.
Do Alternate collision for this NPC (player avoidance) : [4096]
Note.pngNote:This flag is disabled in Half-Life 2: Episode One Half-Life 2: Episode Two episodic for player companions, because the StartScripting input does this.
Don't drop weapons : [8192]
Ignore player push : [16384] (in all games since Source 2006)
Entity won't give way to player.
  • 65536 : Start hidden
  • 131072 : Start hanging from ceiling (in all games since Half-Life 2: Episode One)

Inputs

Start hanging from ceiling.
  • DropFromCeiling (in all games since Half-Life 2: Episode One)
Drop if hanging from ceiling.

Outputs

Template:Otherlang:en Template:Otherlang:en:ru