npc_barnacle

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Edit Tabs

npc_barnacle is a model entity available in Half-Life: Alyx Half-Life: Alyx. Barnacle.

Keyvalues

Rest Distance (RestDist) <float>
Distance above the ground that the tongue should lie when the barnacle is at rest
Override Pull Speed (basepullspeed) <float>
If set, this will override the base pull speed of 80. The lower the value, the slower it'll pull objects up.
Hold Grabbed Items Forever (holdforever) <boolean>
Lightmap Static (lightmapstatic) <choices>
How this geometry influences baked lighting.
  • 0: No
  • 1: Yes
  • 2: Bounce Only

BaseFadeProp:

Start Fade Dist (fademindist) <float>
Distance at which the entity starts to fade.
End Fade Dist (fademaxdist) <float>
Max fade distance at which the entity is visible.
  • If start fade is <0, the entity will disappear instantly when end fade is hit.
  • If end fade is <0, the entity won't disappear at all. (This is the default behavior.)
The values will scale appropriately if the entity is in a 3D Skybox.
Fade Scale (fadescale) <float>
If you specify so in worldspawn, or if the engine is running below DirectX 8 (DX7 in Source 2006), props will fade out even if the fade distances above aren't specified. This value gives you some control over when this happens: numbers smaller than 1 cause the prop to fade out at further distances, while those greater than 1 cause it to fade out at closer distances. Using 0 turns off the forced fade altogether. See also the QC command $noforcedfade.
Source 2 BaseNPC
Target Path Corner (target) <targetname>
If set, the name of a path_corner entity that this NPC will walk to, after spawning.
Squad Name (squadname) <string>
NPCs that are in the same squad (i.e., have matching squad names) will share information about enemies and will take turns attacking and covering each other.
Hint Group (hintgroup) <string>
Hint groups are used by NPCs to restrict their hint-node searching to a subset of the map's hint nodes. Only hint nodes with matching hint group names will be considered by this NPC.
Hint Limit Nav (hintlimiting) <boolean>
Limits NPC to using specified hint group for navigation requests. Does not limit local navigation.
If a Hint Group is specified, whether to also allow the use of generic nodes. (allowgenericnodes) <boolean>
Initial Idle Activity (initialidle) <string> Obsolete
Leftover in FGD.
Activity the NPC should use to idle until becomes alert
Sleep State (sleepstate) <choices>
Holds the NPC in stasis until specified condition. See also Wake Radius and Wake Squad.
  • 0: None
  • 1: Waiting for threat
  • 2: Waiting for PVS
  • 3: Waiting for input, ignore PVS
  • 4: Auto PVS
  • 5: Auto PVS after PVS
Wake Radius (wakeradius) <float>
Auto-wake if player comes within this distance.
Wake Squad (wakesquad) <boolean>
Wake all of the NPCs squadmates if the NPC is woken.
Enemy Filter (enemyfilter) <targetname>
Filter by which to filter potential enemies
Ignore unseen enemies (ignoreunseenenemies) <boolean>
Prefers visible enemies, regardless of distance or relationship priority.
Physics Impact Damage Scale (physdamagescale) <float>
Scales damage energy when this object is hit by a physics object. With a value of 0 the NPC will take no damage from physics.
Nav Restriction Volume (NavRestrictionVolume) <targetname>
Markup volume entity to restrict unit navigation
Spawn as Temp Ragdoll (spawnasragdoll) <choices>
Specifies if the NPC will spawn as a temporary ragdoll and the behavior after becoming a ragdoll.
  • 0: Disabled
  • 1: Ragdoll and get up when settled
  • 2: Ragdoll and remain ragdoll
Use Alt NPC Avoidance (UseAltNpcAvoid) <choices>
Specifies if the NPC should be using any algorithm variants when avoiding other NPCs.
  • 0: Disabled
  • 1: Alt 1
Preview Animation (DefaultAnim) <sequence>
Name of an animation to preview in Hammer, does not do anything in game.
Source 2 Transform
Note.pngNote: These are "Embedded Properties" which are hard-coded to appear on every entity in Hammer, regardless of their presence in any FGD files.
Origin (origin) <coordinates>
The world space origin of the entity.
Angles (angles) <angles>
The pitch, yaw, roll orientation of the entity.
Scale (scales) <vector>
The x, y, z scales of the entity. Not all entities can use this.
Transform Locked (transformLocked) <boolean>
Lock the transform at its current value, preventing the transform of the node from being modified. Only applies within Hammer.
Force Hidden (force_hidden) <boolean>
Visually hides the entity from the viewports. The Outliner pane will still list hidden entities.
Editor Only (editorOnly) <boolean>
Entity is only displayed in Hammer and will not appear in game.

Flags

Cheap death : [65536]
Ambush Mode : [131072]
Source 2 BaseNPC
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]
Entity won't give way to player.

Inputs

DropTongue
Drop tongue
SetDropTongueSpeed <integerRedirectInput/integer>
Set Drop Tongue speed. This will be discarded when it next pulls up an entity.
LetGo
Let go of anything I am holding.
Source 2 BaseNPC
OverrideHealth <integerRedirectInput/integer>
SetRelationship <string|targetname or classname> <string|disposition> <int|rank>
Changes whether this NPC likes or dislikes certain others. Used like the ai_relationship entity, with this NPC as the subject.
Values for disposition are:
  • D_HT: Hate
  • D_FR: Fear
  • D_LI: Like
  • D_NU: Neutral
SetEnemyFilter <stringRedirectInput/string>
Changes this NPC's enemy filter to the named filter
SetHealth <integerRedirectInput/integer>
Set the NPC's health.
SetBodyGroup <stringRedirectInput/string>
ets NPC bodygroup. Format is <BodygroupName,index>
physdamagescale <floatRedirectInput/float>
Sets the value that scales damage energy when this character is hit by a physics object. NOTE: 0 means this feature is disabled for backwards compatibility.
Ignite
Ignite, burst into flames
IgniteLifetime <floatRedirectInput/float>
Ignite, with a parameter lifetime.
IgniteNumHitboxFires <integerRedirectInput/integer>
Ignite, with a parameter number of hitbox fires.
IgniteHitboxFireScale <floatRedirectInput/float>
Ignite, with a parameter hitbox fire scale.
Break
Break, smash into pieces
StartScripting
Enter scripting state. In this state, NPCs ignore a variety of stimulus that would make them break out of their scripts: They ignore danger sounds, ignore +USE, don't idle speak or respond to other NPC's idle speech, and so on.
StopScripting
Exit scripting state.
SetSquad <stringRedirectInput/string>
Change the name of this NPC's squad. It will be removed from any existing squad automatically. Leaving the parameter blank will remove the NPC from any existing squad.
Wake
Wakes up the NPC if it is sleeping.
ForgetEntity <targetnameRedirectInput/string>
Clears out the NPC's knowledge of a named entity.
GagEnable
Turn on the NPC Gag flag. NPC won't speak outside of choreographed scenes.
GagDisable
Turn off the NPC Gag flag.
IgnoreDangerSounds <floatRedirectInput/float>
Ignore danger sounds for the specified number of seconds.
HolsterWeapon
Force the NPC to holster their weapon. Ignored if the NPC is scripting, if the NPC's weapon is already holstered, or if the NPC doesn't use weapons.
HolsterAndDestroyWeapon
Identical to HolsterWeapon, except the weapon is destroyed once it has been holstered and concealed.
UnholsterWeapon
Force the NPC to draw their weapon. Ignored if the NPC is scripting, if the NPC's weapon is already drawn, or if the NPC doesn't use weapons.
ForceInteractionWithNPC <string> <string>
Force the NPC to use a dynamic interaction with another NPC. Parameter format: <target NPC name> <dynamic interaction name>
UpdateEnemyMemory
Update (or Create) this NPC's memory of an enemy and its location
BecomeRagdoll
This NPC will instantly become a ragdoll with ZERO force (just go limp). OnDeath, OnHalfHealth, etc. Outputs will **NOT** BE FIRED.
BecomeTemporaryRagdoll <floatRedirectInput/float>
Become a temporary ragdoll that then can be later unrgadolled.
StopTemporaryRagdoll
Rise from your grave.
StopTemporaryRagdollAndSetEnemy <stringRedirectInput/string>
Rise from your grave to attack an enemy. Animgraph NPCs will turn to face the enemy during their unragdoll. Parameter is the enemy, usually the !activator on the trigger that's firing this input.
WalkTowardsTarget <targetnameRedirectInput/string>
Walks towards a target.
StartResilientPathFollow <stringRedirectInput/string>
Walks towards the specified path corner. Will resiliently restart the walk if it's interrupted for any reason.
SetAnimGraphParameter <stringRedirectInput/string>
SetEasingParameter <stringRedirectInput/string>
EnableTeleportBuffer
Enable the teleport buffer around this NPC, if it's been disabled previously.
DisableTeleportBuffer
Disable the teleport buffer around this NPC.
EnableChoreoPhysProxy
Enable the phys proxy.
DisableChoreoPhysProxy
Disable the phys proxy.

Outputs

OnGrab
When I attach my tongue to something
OnRelease
When I let go of something
Source 2 BaseNPC
OnDamaged
!activator = damage inflictor.
!caller = this entity
Fired when this NPC takes damage.
OnDamagedByPlayer
!activator = attacker or vehicle driver [if friendly fire].
!caller = this entity
Fired when this NPC is hurt by a player.
OnDamagedByPlayerSquad
!activator = attacker or vehicle driver [if friendly fire].
!caller = this entity
Fired when this NPC is hurt by a player OR by one of the player's squadmates.
OnDeath
!activator = killer.
!caller = this entity
Fired when this NPC is killed.
OnDenyCommanderUse
Fired when this NPC has refused to join the player's squad.
OnForcedInteractionStarted
Fired when the NPC starts a forced interaction.
OnForcedInteractionAborted
Fired when the NPC aborts a forced interaction for some reason (target NPC died, couldn't be pathed to, etc)
OnForcedInteractionFinished
NPCs in actbusies can no longer perform dynamic interactions.
OnHalfHealth
Fired when this NPC reaches half of its maximum health.
OnHearCombat
Fired when this NPC hears combat sounds.
OnHearPlayer
Fired when this NPC hears the player.
OnHearWorld
Fired when this NPC hears a sound (other than combat or the player).
OnFoundEnemy <targetname*RedirectOutput/ehandle>
Fired when this NPC establishes line of sight to its enemy (outputs entity).
OnLostEnemy
Fired when this NPC loses its enemy. Usually due to the enemy being killed/removed, or because this NPC has selected a newer, more dangerous enemy.
OnLostEnemyLOS
Fired when this NPC loses line of sight to its enemy.
OnFoundPlayer <targetname*RedirectOutput/ehandle>
Fired when this NPC establishes line of sight to its enemy, and that enemy is a player (outputs player entity).
OnLostPlayer
Fired when this NPC loses its enemy, and that enemy was a player. Usually due to the enemy being killed/removed, or because this NPC has selected a newer, more dangerous enemy.
OnLostPlayerLOS
Fired when this NPC loses line of sight to its enemy, and that enemy is a player.
OnSleep
Fired when this NPC enters a sleep state.
OnWake
Fired when this NPC comes out of a sleep state.
OnUnragdollFinished
This NPC just finished getting up after being a ragdoll.