This article's documentation is for anything that uses the Source engine. Click here for more information.

Info node link: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (minoro)
m (→‎Inputs: Substituted IO templates)
 
(18 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{wrongtitle|title=info_node_link}}
{{LanguageBar}}
{{base_point}}
{{CD|CAI_DynamicLink|base=CServerOnlyEntity|file1=1}}
{{this is a|point entity|name=info_node_link|except=Left 4 Dead series}} It is a manually defined, dynamic connection between two navigation nodes. This could be used to create or destroy a connection in the [[nodegraph]] because of some event in your map (a bridge being created/destroyed, etc).
__NOTOC__
==Keyvalues==
{{KV Targetname}}
{{KV|Start node ID|intn=StartNode|node_dest|The node ID of one end of the node connection.}}
{{KV|End node ID|intn=EndNode|node_dest|The node ID of one end of the node connection.}}
{{KV|Initial State|intn=initialstate|choices|Makes this connection is available the moment the map loads. If there is something blocking the NPC's path while this is on, the NPC may appear to walk straight into that object/hole.}}
:* 0 : Off
:* 1 : On
{{KV|Type of Connection|intn=linktype|choices|How NPCs can use this node. Not all NPCs can do all types.}}
:* 1 : Ground
:* 2 : Jump
:* 4 : Fly
:* 8 : Climb
{{KV|Allow Pass When Off|intn=AllowUse|string|Entity or class to allow passage even when node is off}}
{{KV|Invert exclusion rules|intn=InvertAllow|boolean|Allowed entity is the only entity NOT allowed when this is set to 'yes'{{bug|Non-functional. Use {{ent|info_node_link_controller}} instead if this keyvalue is needed.}}


== Entity description ==
==Flags==
[[Image:link.png|left]]A dynamic connection between two navigation nodes.  
''See: [[NPC Hull]].''
{{fl|1|Force human connect}}
{{fl|2|Force small_centered connect}}
{{fl|4|Force wide_human connect}}
{{fl|8|Force tiny connect}}
{{fl|16|Force wide_short connect}}
{{fl|32|Force medium connect}}
{{fl|64|Force tiny_centered connect}}
{{fl|128|Force large connect}}
{{fl|256|Force large_centered connect}}
{{fl|512|Force medium_tall connect}}


You specify the node IDs of the start and end nodes, and then you can use entity [[Inputs and Outputs]] to turn on and off the connection. This could be used to create or destroy a connection in the [[nodegraph]] because of some event in your map (a bridge being created/destroyed, etc).
==Inputs==
{{clr}}
{{I|TurnOn|Turn the link on.}}
* See also [[info_node_link_controller]] - manages all connections between nodes that intersect the controller's volume. This allows for mass enabling/disabling of all node connections through a volume.
{{I|TurnOff|Turn the link off.}}


== Keyvalues ==
==See also==
* {{kv targetname}}
* {{ent|info_node_link_controller}} - manages ''all'' connections between nodes that intersect the controller's volume. This allows for mass enabling/disabling of all node connections.
* '''StartNode'''  
: <node_dest> The node ID of one end of the node connection.
* '''EndNode'''
: <node_dest> The node ID of one end of the node connection.
* '''initialstate'''
: {{boolean}}
* '''AllowUse'''
: <target_name_or_class> An entity or a class to let through even when the node is off.
* '''{{ep1 add|linktype}}'''
: <choices> Type of Connection
:{|
! Literal Value || Description
|-
| 1 || Ground
|-
| 2 || Jump
|-
| 4 || Fly
|-
| 8 || Climb
|}
 
== Flags ==
* 1 : [[NPC_Hull#human_hull|Force human connect]]
* 2 : [[NPC_Hull#small_centered_hull|Force small_centered connect]]
* 4 : [[NPC_Hull#wide_human_hull|Force wide_human connect]]
* 8 : [[NPC_Hull#tiny_hull|Force tiny connect]]
* 16 : [[NPC_Hull#wide_short_hull|Force wide_short connect]]
* 32 : [[NPC_Hull#medium_hull|Force medium permission]]
* 64 : [[NPC_Hull#tiny_centered_hull|Force tiny_centered connect]]
* 128 : [[NPC_Hull#large_hull|Force large connect]]
* 256 : [[NPC_Hull#large_centered_hull|Force large_centered connect]]
 
== Inputs ==
* {{i targetname}}
* '''TurnOn'''
: Turn the link on.
* '''TurnOff'''
: Turn the link off.
 
== Outputs ==
* {{o targetname}}


[[Category:AI]]
[[Category:AI]]
[[Category:Node entities]]

Latest revision as of 11:00, 21 April 2025

English (en)Translate (Translate)
C++ Class hierarchy
CAI_DynamicLink
CServerOnlyEntity
CBaseEntity
C++ ai_dynamiclink.cpp

info_node_link is a point entity available in all Source Source games except Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. It is a manually defined, dynamic connection between two navigation nodes. This could be used to create or destroy a connection in the nodegraph because of some event in your map (a bridge being created/destroyed, etc).

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start node ID (StartNode) <node_dest>
The node ID of one end of the node connection.
End node ID (EndNode) <node_dest>
The node ID of one end of the node connection.
Initial State (initialstate) <choices>
Makes this connection is available the moment the map loads. If there is something blocking the NPC's path while this is on, the NPC may appear to walk straight into that object/hole.
  • 0 : Off
  • 1 : On
Type of Connection (linktype) <choices>
How NPCs can use this node. Not all NPCs can do all types.
  • 1 : Ground
  • 2 : Jump
  • 4 : Fly
  • 8 : Climb
Allow Pass When Off (AllowUse) <string>
Entity or class to allow passage even when node is off

{{KV|Invert exclusion rules|intn=InvertAllow|boolean|Allowed entity is the only entity NOT allowed when this is set to 'yes'

Icon-Bug.pngBug:Non-functional. Use info_node_link_controller instead if this keyvalue is needed.  [todo tested in ?]

Flags

See: NPC Hull.

Force human connect : [1]
Force small_centered connect : [2]
Force wide_human connect : [4]
Force tiny connect : [8]
Force wide_short connect : [16]
Force medium connect : [32]
Force tiny_centered connect : [64]
Force large connect : [128]
Force large_centered connect : [256]
Force medium_tall connect : [512]

Inputs

TurnOn
Turn the link on.
TurnOff
Turn the link off.

See also

  • info_node_link_controller - manages all connections between nodes that intersect the controller's volume. This allows for mass enabling/disabling of all node connections.