Npc barnacle: Difference between revisions
Jump to navigation
Jump to search
Placement Tip: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.
Note:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.
m (Robot: fixing template case.) |
m (Robot: fixing template case.) |
||
Line 24: | Line 24: | ||
==Flags== | ==Flags== | ||
* {{ | * {{Fl BaseNPC}} | ||
* 65536 : Cheap death | * 65536 : Cheap death | ||
* {{EP1 add|131072 : Ambush Mode}} | * {{EP1 add|131072 : Ambush Mode}} |
Revision as of 19:21, 19 January 2009
Entity Description
Stationary ceiling-mounted 'fishing' monster. They 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.


Dedicated Console Variables
- sk_barnacle_health (Default: 35)
- <integer> Barnacle spawn health.
- npc_barnacle_swallow (Default: 0)
- <boolean> Use prototype swallow code.
- This makes the ragdolled yummy play this activity: ACT_GESTURE_BARNACLE_STRANGLE
Keyvalues
- Template:Kv basenpc
- RestDist
- <float> Distance above the ground that the tongue should lie when the barnacle is at rest
Flags
BaseNPC flags
- Wait Till Seen : [1]
- Prevents this NPC from seeing (or being seen) until it enters a player's viewcone.
- Gag : [2]
- Won't make IDLE sounds until it's angry.
- Fall to ground (unchecked means teleport to ground) : [4]
- Drop Healthkit : [8]
- Causes this NPC to drop an item_healthvial upon dying.
- Efficient : [16]
- Don't acquire enemies or avoid obstacles
- Wait For Script : [128]
- Forces this NPC to "wait" in an idle state until it finishes playing a scripted_sequence.
- Long Visibility/Shoot : [256]
- By default, increases a NPC's sight range to
6,000
units and allows it to attack from anywhere within that distance.
- Fade Corpse : [512]
- Think outside PVS : [1024]
- Allows this NPC to run its regular AI outside of any player's PVS.
- Template NPC : [2048]
- Marks this NPC as a template for entities like npc_template_maker. The NPC will not spawn on its own. This is not needed for point_template.
- Do Alternate collision for this NPC (player avoidance) : [4096]
- Don't drop weapons : [8192]
- Ignore player push : [16384] (in all games since
)
- Entity won't give way to player.
- 65536 : Cheap death
- 131072 : Ambush Mode (in all games since
)
Inputs
- DropTongue (in all games since
)
- Drop tongue
- SetDropTongueSpeed <integer> (in all games since
)
- Set Drop Tongue speed