Npc barnacle: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Replaced content with "right|150px|Barnacle {{entity|type=e0|npc_barnacle|series=Half-Life 2}} {{Multipage}} B")
Tag: Replaced
Line 1: Line 1:
{{langsp}}
[[File:Barnacle.jpg|right|150px|Barnacle]]
[[File:Barnacle.jpg|right|150px|Barnacle]]
{{entity|type=e0|npc_barnacle|series=Half-Life 2}} It is a stationary, ceiling-mounted 'fishing' monster that tries to eat anything its tongue touches.
{{entity|type=e0|npc_barnacle|series=Half-Life 2}}  
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]].
{{Multipage}}
{{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}}
 
== 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]].
 
==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}}


[[Category:Half-Life 2 NPCs|B]]
[[Category:Half-Life 2 NPCs|B]]

Revision as of 08:07, 25 June 2023