Talk:Npc barnacle (hlvr): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (small note)
(Blanked the page)
Tag: Blanking
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Note|If someone does make the page, remember that {{tl2|lang}} and {{tl2|entity}} are out of date templates, and you should use {{tl2|multipage}} and {{tl2|this is a}} instead.}}
'''Working on it'''
{| class=wikitable
| {{tl2|Lang|<page name>}} || Adds the flags on the top right for language pages and adds this page to an appropriate language [[Help:Categories|Category]]. For example, this page uses {{tlc|lang|Entity Article Template}}.
|-
| {{tl2|Distinguish|NPC_Barnacle}} || Adds a note with a link to a page that this page should not be confused with.
|-
| {{Code|1=<nowiki>{{</nowiki>[[Template:Entity|entity]]{{!}}<entity class name>{{!}}type=<entity type>{{!}}game=<full game name><nowiki>}}</nowiki>}}
| Creates a first sentence with a link to the game.
{{syntax2 |in=<nowiki>{{entity|type=e0|ammo_57mm|game=Counter-Strike: Source}}</nowiki>|out={{Code|select=1|ammo_57mm}} is a [[point entity]] available in {{css|4}}.}}
{{tip|If the entity is ''available in all Source games'', don't use {{Code|style=1|{{Param|game}}}}. If available in multiple games, use {{Code|style=1|{{Param|game1}}}} (See [[Template:Entity|the documentation of the template]] for details).}}{{Note|See [[Template:Entity|the documentation of the template]] for the details of entity types.}}
|}


==Entity Description==
The Barnacle from [[Half-Life: Alyx]]. A stationary enemy which hangs its tongue down to capture enemies and objects that make contact with the tongue. The barnacle retracts the object/entity upwards towards its origin and ‘bites’ to apply damage. The primary damage is inflicted at the body of the barnacle. This will detonate any explosive containers, potentially damaging nearby barnacles/entities including other explosive containers. If ammo/resin is caught, the barnacle will retain that until death.
[[.fgd|FGDs]] (and by extension the Hammer properties window) are good sources for information on an entity's keyvalues, inputs, outputs, and flags, however FGDs often will not list ''everything'' available for an entity. Because of this, the wiki uses a mix of [[Help:Templates|templates]] that roughly follow the engine's class hierarchy and ones that follow FGDs.
Also include [[:Template:Code class]]:
{{syntax2
|in={{tlc|code class|CEntityClass|entityfile}}
|out={{code class|CEntityClass|entityfile}}
}}
The entity's code class name can be found by searching <code>LINK_ENTITY_TO_CLASS</code> in the CPP file defining it.
==Dedicated Console Variables and Commands (omit if none exist)==
Console variables and commands can be found by searching <code>ConVar</code> and <code>ConCommand</code> in the CPP file that defines the entity. Note a parameter if any exist.
;cvar_name <data type>
:Description.
;sk_barney_health <integer>
:Barney's spawn health.
==Flags (omit if none exist)==
{{Tip|See [[:Category:Flag Templates]] for a list of available templates.}}
For each flag, write one of the following.
{{tl2|fl|<integer>|<flag name>}}
{{tlc|fl|<integer>|<flag name>|<description>}}
Which could look like this:
{{fl|Integer value|Flag Name|Description if necessary.}}
{{fl|16|Start Silent|The map will start without this sound playing. Enabled by default.}}
==Keyvalues==
Since every entity inherits {{ent|CBaseEntity}}, all entity pages should have [[:Template:KV BaseEntity]] if not more. The only exceptions are [[:Category:Internal entities|internal entities]], which are removed during the compiling of a map and cannot receive I/O and most base keyvalues. This all applies to inputs and outputs as well.
Individual keyvalues are defined with [[:Template:KV]].
{{Tip|See [[:Category:Keyvalue Templates]] for a list of available templates.}}
{{KV|Keyvalue Name (non-SmartEdit name)|vartype|A description of the keyvalue.}}
{{KV|Render Amount (renderamt)|integer|Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.}}
==Inputs==
Individual inputs (and outputs) are defined with [[:Template:IO]]
{{Tip|See [[:Category:Input Templates]] for a list of available templates.}}
{{IO|InputName|A description of the input.|param=optional vartype}}
{{IO|SetSpeed|Set the speed of the train, as a ratio of max speed [0, 1]|param=float}}
==Outputs==
{{Tip|See [[:Category:Output Templates]] for a list of available templates.}}
{{IO|OutputName|A description of the output.}}
{{IO|OnPressed|Fired when the button is pressed.}}
==See also==
{{Note|Add links to related articles, entities, or tutorials here.}}
*[[Assault]]s
*{{ent|ambient_generic}}
[[Category:Entities]]

Latest revision as of 19:56, 21 April 2025