Info ladder dismount: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Add internal name of LadderName keyval key)
m (Gender-neutrality)
Line 2: Line 2:


==Entity description==
==Entity description==
It sets the dismount points for ladders in [[Half-Life 2]] and [[Half-Life 2: Deathmatch]]. When the player is on a ladder, near an <code>info_ladder_dismount</code>, and facing it, he can press his [[use]] key to dismount into the position of the <code>info_ladder_dismount</code>. This entity also allows the player to dismount a ladders endpoints by simply walking in the direction of the <code>info_ladder_dismount</code>.
It sets the dismount points for ladders in [[Half-Life 2]] and [[Half-Life 2: Deathmatch]]. When the player is on a ladder, near an <code>info_ladder_dismount</code>, and facing it, they can press their [[use]] key to dismount into the position of the <code>info_ladder_dismount</code>. This entity also allows the player to dismount a ladders endpoints by simply walking in the direction of the <code>info_ladder_dismount</code>.


{{in code|class=class_c_info_ladder_dismount.html CInfoLadderDismount|file=func__ladder_8cpp-source.html func_ladder.cpp}}
{{in code|class=class_c_info_ladder_dismount.html CInfoLadderDismount|file=func__ladder_8cpp-source.html func_ladder.cpp}}

Revision as of 20:44, 21 January 2022

Template:Base point

Entity description

It sets the dismount points for ladders in Half-Life 2 and Half-Life 2: Deathmatch. When the player is on a ladder, near an info_ladder_dismount, and facing it, they can press their use key to dismount into the position of the info_ladder_dismount. This entity also allows the player to dismount a ladders endpoints by simply walking in the direction of the info_ladder_dismount.

Template:In code

Keyvalues

LadderName (target) <targetname>
If multiple ladders are near multiple endpoints, use this to stop them from interfering with each other.
Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.

Inputs

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

See also