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

From Valve Developer Community
Jump to navigation Jump to search
(Placed all issues to separate paragraph called Issues, pretty similar to what I made with newLight entities, it's much more convenient. I'm not adding any issue from P2CE, this mod is in closed beta and it is something normal that it have tone of bugs.)
 
(11 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}}
{{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}}
 
==Issues==
===All===
====Grab itown gibs====
Barnacle grab itown gibs (which appear after barnacle ate its enemy), fixed in {{P2CE|4}}.
==={{bms|4|nt=2}}===
{{note|Most of this issues are not available in {{bms|4|nt=1}}.}}
====Broken behavior if player stuck when barnacle pull player====
Instead of player release, in {{Bms|4}} this case cause to a very severe breakdown of barnacle.
<br>
<gallery mode=packed heights=720px>
File:PCAB_BlackMesaBug.gif| frame | Bug example in bm_c1a4b.
</gallery>
====Tongue attaching is broken====
In {{Bms|4}} tongue attaching to player center for most cases, this is why it passes through player's camera.
<br>
<gallery mode=packed heights=720px>
File:BruhHAHA.png| frame | An example <code>bm_c1a4b</code>.
</gallery>
====<code>TongueTipUpdated</code> input every 0.01 seconds====
In {{Bms|4}} this NPC spams TongueTipUpdated input every 0.01 seconds.
====Pulling is broken====
Sometimes it may not pull player for a few seconds, and then suddenly and quickly pull player.
====Grabbed NPCs disappear if barnacle die====
If kill barnacle who has grabbed an enemy - the enemy's body will instantly disappear, unlike {{hl2|4}} and {{bms|4|nt=1}} version.
====Eats whole zombie====
Barnacle eats whole zombie, in {{hl2|4}} and {{bms|4|nt=1}} barnacle eats only headcrab and than drop zombie body. This does not depend on the type of zombie, it works with any zombie type.
==={{hl2|4}} and {{portal|4}}===
====Some NPCs becomes invisible====
Some NPCs becomes invisible if barnacle eat them.
====Some NPCs cause crash====
Eating or grabbing of [[npc_combine_camera]], [[npc_advisor]], [[npc_rollermine]] or [[npc_poisonzombie]] will cause game crash.
{{confirm|Is there more NPCs that cause crash if barnacle eating or grabbing them ?}}
==={{portal|4}}===
====Rocket turret create broken ragdoll====
In {{Portal|4}} if barnacle grab [[npc_rocket_turret]] - [[npc_rocket_turret]] turns into a broken ragdoll, which has very broken physics.
{{workaround| Fix the model or make barnacle friendly to [[npc_rocket_turret]].}}
<br>
<gallery mode=packed heights=720px>
File:PortalIssue1.gif| frame | An example in <code>d1_canals_01a</code>.
</gallery>
====Barnacle's gibs doesn't go through portals on spawn====
Barnacle's gibs doesn't go through portals because of gibs use <code>[4] : Debris</code> spawnflag, with this flag physics objects use simple physics on spawn that doesn't allow them to go through portals.
<br>
<gallery mode=packed heights=720px>
File:PortalIssue2.gif| frame | An example in <code>d1_canals_01a</code>.
</gallery>
====Barnacle's blood doesn't go through portals====
If you'll kill barnacle that placed above linked portal - the blood decal will not be teleported.
<br>
<gallery mode=packed heights=420px>
File:PortalIssue3_1.jpg| frame | An example in <code>d1_canals_01a</code>.
File:PortalIssue3_2.jpg| frame | An example in <code>d1_canals_01a</code>.
</gallery>

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.