Template:Archived page history/Npc headcrab/en: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Multipage removal)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{APH|npc_headcrab}}
[[Category:TODO Finish Multipage Removal Manually]]
{{LanguageBar}}
{{tabs|Npc headcrab|goldsrc=1|source=1|source2=1|main=source}}
[[File:headcrab.jpg|right|250px|{{autolang|Headcrab|ru=Хэдкраб}}]]
{{CD|CHeadcrab|file1=npc_headcrab.cpp}}
{{this is a|point entity|name=npc_headcrab|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch|game4=Black Mesa}}
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.
 
Commonly found attached to a [[Npc_zombie|zombie]] host body, they will detach if that host is sufficiently damaged below the head.
 
There are several other [[headcrab]] variants and associated zombie types.
 
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.
{{ModernPlacementTip|Classic headcrabs can be paired with their [[npc_headcrab_fast|fast-moving]] or [[npc_headcrab_black|poisonous]] relatives to make it more interesting.}}
{{ModernPlacementTip|Avoid the cliche of placing headcrabs in vents; they would likely be more of an annoyance than an improvement on gameplay.}}
 
{{NPCNote}}
{{code class|CHeadcrab|npc_headcrab.cpp}}
 
== Dedicated Console Variables ==
;sk_headcrab_health <[[int]]>
: A headcrab's spawn health.
;sk_headcrab_melee_dmg <[[int]]>
: Melee damage.
;g_debug_headcrab <[[bool]]>
: Toggle headcrab debugging.
;sk_headcrab_min_jump_dist <[[int]]>
: Headcrab min jump distance. Only in {{bms12|1|nt=2}}.
;sk_headcrab_max_jump_dist <[[int]]>
: Headcrab max jump distance. Only in {{bms12|name|nt=2}}.
;sv_headcrab_can_latch_on_player <[[bool]]>
: Toggles headcrab's ability to attach player's head (if player catches it with head). Only in {{bms12|name|nt=2}}. Requires [https://gamebanana.com/mods/7739 this texture] to display properly as the texture has been removed.
 
== Keyvalues ==
{{KV BaseNPC}}
{{KV Parentname}}
{{KV|Start burrowed|bool|Should this npc start burrowed? Will unburrow via input or if an enemy gets near.}}
 
== Flags ==
{{Fl BaseNPC}}
{{Fl|65536|Start hidden}}
{{Fl|131072|Start hanging from ceiling}}
 
== Inputs ==
{{IO|Burrow|param=void|Burrow.}}
{{IO|BurrowImmediate|param=void|Burrow immediate.}}
{{IO|Unburrow|param=void|Unburrow.}}
 
{{I BaseNPC}}
 
{{I Parentname}}
 
{{IO|StartHangingFromCeiling|Start hanging from ceiling.|}}
 
{{IO|DropFromCeiling|Drop if hanging from ceiling.|}}
 
== Outputs ==
{{O BaseNPC}}
 
==See also==
*[[env_headcrabcanister]]
[[Category:Half-Life 2 NPCs|H]]
[[Category:Headcrabs]]

Latest revision as of 18:36, 15 July 2024

Note.pngNote:Archived rest of page history of page npc_headcrab
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.