Template:Archived Page History/Npc barnacle/en: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(This IS bug, since in Black Mesa: Source this mechanic works as expected and this bug appeared since Black Mesa 0.0.0 (the first release in Steam). Also barnacle never eat any zombies or headcrabs in the original Half-Life.)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{langsp}}It is a stationary, ceiling-mounted 'fishing' monster that tries to eat anything its tongue touches.
{{APH|npc_barnacle}}
Barnacles were originally devised in [[Half-Life]] as a simple way to limit movement in levels, and their function remains relatively the same in [[Half-Life 2]].
{{ModernPlacementTip|Most players will prefer not to get caught by a barnacle, and prefer avoiding it altogether, so unless it would be part of a puzzle, you might want to provide a way to get past the barnacle without killing it.}}
 
{{NPCNote}}
 
{{Bug|In {{Bms|4}} tongue attaching to player center, this is why it passes through player's camera. {{expand|title=The bug example.|
<br>
<gallery mode=packed heights=720px>
File:BruhHAHA.png| frame | Black Mesa - bm_c1a4b.
</gallery>
}}}}
{{Bug|In {{Bms|4}} this NPC spams TongueTipUpdated input every 0.01 seconds.}}
{{Bug|In {{Bms|4}} sometimes it may not pull player for a few seconds, and then suddenly and quickly pull player.}}
{{Bug|In {{Bms|4}} if kill barnacle who has grabbed an enemy - the enemy's body will instantly disappear, unlike {{hl2|4}}.}}
{{Bug|In {{Bms|4}} barnacle eats whole zombie, in {{hl2|4}} barnacle eats only headcrab and than drop zombie body.}}
{{warning|Eating or grabbing of [[npc_combine_camera]] and [[npc_advisor]] will cause game to crash.}}
{{warning|In {{Portal|4}} if barnacle grab [[npc_rocket_turret]] - [[npc_rocket_turret]] turns into a broken ragdoll, which has very broken physics.}}
{{bug|Some NPCs becomes invisible if barnacle eat them.}}
{{bug|Barnacle grab itown gibs (which appear after barnacle ate its enemy), fixed in {{P2CE|4}}.}}
{{warning|You must build structures from player clip similar to those in the picture, otherwise if barnacle grabs  player - player may get stuck and barnacle will eventually release him. In {{Bms|4}} this case cause to a very severe breakdown of barnacle.
<br>
<gallery mode=packed heights=320px>
File:PCAB_HammerPicture.png| frame | An example from d1_canals_02.
File:PCAB_WithPC.gif| frame | With player clip.
File:PCAB_WithoutPC.gif| frame | Without player clip.
File:PCAB_BlackMesaBug.gif| frame | Black Mesa bug example in bm_c1a4b.
</gallery>
}}
{{Note|Initially, barnacle can only grab and eat only chosen in game code NPCs. Can be customized using relationships.}}
 
==Dedicated Console Variables==
;sk_barnacle_health <[[int]]>
: Barnacle spawn health. Default: 35.
;npc_barnacle_swallow <[[bool]]>
: Enable prototype swallow code. This makes the ragdolled yummy play the <code>ACT_GESTURE_BARNACLE_STRANGLE</code> [[activity]]. Cut in {{Bms|4}}.
{{KV|sk_barnacle_357_dmg_scale|intn= |float|Magnum damage scale. Default: 1.|only=BMS}}
{{KV|sk_barnacle_blunt_dmg_scale|intn= |float|Blunt damage scale. Default: 1.|only=BMS}}
{{KV|sk_barnacle_buckshot_dmg_scale|intn= |float|Buckshot damage scale. Default: 1.|only=BMS}}
{{KV|sk_barnacle_bullet_dmg_scale|intn= |float|Bullet damage scale. Default: 1.|only=BMS}}
 
==Keyvalues==
; Rest Distance <code><[[float]]></code>
: Distance above the ground that the tongue should lie when the barnacle is at rest
{{KV BaseNPC}}
 
==Flags==
{{Fl BaseNPC}}
* {{Fl|65536|Cheap death|Don't puke gibs.}}
* {{Fl|131072|Ambush Mode|Don't start with tongue down.}}
* {{Fl|262144|Tongue will not penetate water|Barnacle's tongue will not penetrate water if this flag used.|only=BMS}}
* {{Fl|524288|Don't spawn human skull on death|Barnacle will not spawn human skull on death if this flag used. Mainly used for levels in Xen.|only=BMS}}
 
==Inputs==
{{IO|DropTongue|param=void|Drop tongue towards the ground. Use in conjunction with Ambush Mode spawnflag.}}
{{IO|SetDropTongueSpeed|param=int|Set Drop Tongue speed.}}
{{IO|LetGo|param=void|Let go of anything I am holding.}}
{{IO|TongueTipUpdated|param=void| |only=BMS}}
{{I BaseNPC}}
 
==Outputs==
{{IO|OnGrab|param=void| }}
{{IO|OnRelease|param=void|Fired when I attach/detach my tongue to/from something.}}
{{O BaseNPC}}

Latest revision as of 14:24, 18 August 2024

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