Npc headcrab: Difference between revisions
Jump to navigation
Jump to search
Placement Tip:Classic headcrabs can be paired with their fast-moving or poisonous relatives to make it more interesting.
Placement Tip:Avoid the cliche of placing headcrabs in vents; they would likely be more of an annoyance than a improvement on gameplay.
Note:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.
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}} | ||
== Inputs == | == Inputs == | ||
* {{i basenpc}} | * {{i basenpc}} | ||
* {{i parentname}} | * {{i parentname}} | ||
* '''{{ | * '''{{EP1 add|StartHangingFromCeiling}}''' | ||
: Start hanging from ceiling. | : Start hanging from ceiling. | ||
* '''{{ | * '''{{EP1 add|DropFromCeiling}}''' | ||
: Drop if hanging from ceiling. | : Drop if hanging from ceiling. | ||
Revision as of 19:19, 19 January 2009
Entity description
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.



Dedicated CVARs
- sk_headcrab_health
- <integer> A headcrab's spawn health
- sk_headcrab_melee_dmg
- <integer> Melee damage
Keyvalues
- startburrowed
- <boolean>
Flags
- Template:Fl basenpc
- 65536 : Start hidden
- 131072 : Start hanging from ceiling (in all games since
)
Inputs
- Template:I basenpc
- Template:I parentname
- StartHangingFromCeiling (in all games since
)
- Start hanging from ceiling.
- DropFromCeiling (in all games since
)
- Drop if hanging from ceiling.