Zh/Info survivor position: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
{{KV|Game Mode|intn=GameMode|string|Use this position for a particular game mode only (coop,versus,survival,scavenge)}}
{{KV|Game Mode|intn=GameMode|string|Use this position for a particular game mode only (coop,versus,survival,scavenge)}}
{{KV|Survivor Concept|intn=SurvivorConcept|string|Response rule concept to play when survivor is moved here}}
{{KV|Survivor Concept|intn=SurvivorConcept|string|Response rule concept to play when survivor is moved here}}
{{KV|Hide Weapons|intn=HideWeapons|boolean|Hide Survivor's weapon while locked to this position.}}
{{KV|Hide Weapons|intn=HideWeapons|boolean|Hide Survivor's weapon while locked to this position.:zh-cn}}
{{KV Targetname}}
{{KV Targetname:zh-cn}}
{{KV Angles}}
{{KV Angles:zh-cn}}
{{KV Parentname}}
{{KV Parentname:zh-cn}}


== Inputs ==
== Inputs ==

Revision as of 11:57, 3 August 2022

English (en)中文 (zh)Translate (Translate)

Template:Translate in Progress:zh-cn Template:L4d series point:zh-cn 它定义了特定幸存者可以移动或锁定的点位/解锁点位由 info_director 通过info_director的输入/输出. 这对于创建使用镜头介绍场景是有用的, 因为它可以让你保证每一个幸存者不仅会站在特定的地方,还可以通过你使用 point_viewcontrol_survivor 来让幸存者玩家的视角转到此实体,不考虑每个幸存者的身高差异.这对于为战役的第一张地图创建专业的介绍场景镜头非常重要.

Icon-Bug.png错误:不要使用 logic_auto 的 OnMapSpawn 的 输入 来触发 info_director 来强制让幸存者出生在设定好的 info_survivor_position . info_director将忽略它的输入,这取决于地图是如何加载的.简而言之,简单的用 info_director 进行输出或输入是最好的选择, 触发它自己的 ForceSurvivorPosition,并使用 info_director 的 OnGameStart 输入ReleaseSurvivorPosition.  [todo tested in ?]

Keyvalues

Order (Order) <整数(en)>
Index of spot based on order people got on board. (1-4)
Survivor Name (SurvivorName) <字符串(en)>
Force this survivor to use this position (Zoey, Louis, etc.)
Survivor Intro Sequence (SurvivorIntroSequence) <字符串(en)>
Sequence to play when the intro starts
Game Mode (GameMode) <字符串(en)>
Use this position for a particular game mode only (coop,versus,survival,scavenge)
Survivor Concept (SurvivorConcept) <字符串(en)>
Response rule concept to play when survivor is moved here
Hide Weapons (HideWeapons) <布尔值(en)>
Hide Survivor's weapon while locked to this position.:zh-cn
Name (目标名称) <target_source>[ Edit ]
这个名称是其他实体通过 输入/输出(en) 或其他 关键值(en)(如 parentnametarget) 来引用该实体时使用的标识符。
该名称也会显示在 Hammer 编辑器的 2D 视图和 实体报告(en) 中。
参见:  所有实体均可使用的 通用键值、输入与输出(en)

角度:
Pitch Yaw Roll (Y Z X) <angle(en)>
这个实体在世界的方向。Pitch是围绕Y轴旋转,Yaw是围绕Z轴的旋转,Roll是围绕X轴的旋转。
Parentname:
Parent (parentname) <目标名(en)>
指定一个实体作为父实体(跟随移动)。实体的父级实体,该实体可以与父实体保持移动偏移。名称后面可以添加一个附属点,以逗号隔开。

Inputs

SetViewControl <字符串(en)>
If a survivor is assigned to this position, set his view to a point_viewcontrol


Parentname:
SetParent <字符串(en)>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <字符串(en)>
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 <字符串(en)>
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.

Outputs

See also