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

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(22 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Language subpage}}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>
}}}}
 
{{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>
}}
 
== 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]].
{{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}}
* '''65536 : Cheap death''' - don't puke gibs
* '''131072 : Ambush Mode''' - don't start with tongue down
 
==Inputs==
 
; <code>DropTongue</code>
: Drop tongue towards the ground. Use in conjunction with Ambush Mode spawnflag.
; <code>SetDropTongueSpeed <[[int]]></code>
: Set Drop Tongue speed
; <code>LetGo</code>
: Let go of anything I am holding.
{{I BaseNPC}}
 
==Outputs==
 
; <code>OnGrab <[[targetname]]></code>
; <code>OnRelease <[[targetname]]></code>
: 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.