Npc headcrab: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
Line 33: Line 33:
* {{fl basenpc}}
* {{fl basenpc}}
* 65536 : Start hidden
* 65536 : Start hidden
* {{ep1 add|131072 :  Start hanging from ceiling}}
* {{EP1 add|131072 :  Start hanging from ceiling}}


== Inputs ==
== Inputs ==
* {{i basenpc}}
* {{i basenpc}}
* {{i parentname}}
* {{i parentname}}
* '''{{ep1 add|StartHangingFromCeiling}}'''
* '''{{EP1 add|StartHangingFromCeiling}}'''
: Start hanging from ceiling.
: Start hanging from ceiling.
* '''{{ep1 add|DropFromCeiling}}'''
* '''{{EP1 add|DropFromCeiling}}'''
: Drop if hanging from ceiling.
: Drop if hanging from ceiling.



Revision as of 19:19, 19 January 2009

Template:Wrongtitle

Entity description

Headcrab

These are the classic, slow-moving headcrabs. They attack by jumping at the player's head and inflict a nominal amount of damage. Almost any weapon can dispatch them easily - it is usually a matter of how long it will take.

Commonly found attached to a zombie host body, they will detach if that host is sufficiently damaged below the head.

See also env_headcrabcanister which is a mortar shell containing a payload of headcrabs. The mortar shell inflicts damage within a radius of where it lands and releases headcrabs after impact. Triggers and entity options offer control over impact damage and when the headcrabs are released, among other options.

PlacementTip.gifPlacement Tip:Classic headcrabs can be paired with their fast-moving or poisonous relatives to make it more interesting.
PlacementTip.gifPlacement Tip:Avoid the cliche of placing headcrabs in vents; they would likely be more of an annoyance than a improvement on gameplay.
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_health
<integer> A headcrab's spawn health
  • sk_headcrab_melee_dmg
<integer> Melee damage

Keyvalues

  • startburrowed
<boolean>

Flags

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