Zh/Teleporters: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
(创建页面,部分翻译)
 
m (obsolete language category)
 
(15 intermediate revisions by 5 users not shown)
Line 6: Line 6:


== 单向传送门 ==
== 单向传送门 ==
Start by creating a [[brush]] and texturing it with [[Tool_textures#trigger|tools/toolstrigger]]. Now select the brush and press {{key|CTRL}} + {{key|T}}, or right-click the brush and select ''Tie To Entity'', select [[trigger_teleport]] and click Apply. This will be the area in which a player must enter to be teleported (see picture on the right).
一开始先创建一个 {{L|brush|固体(brushes)}} 并用 [[Tool_textures#trigger|纹理工具(tools/toolstrigger)]] 添加纹理。 之后用通过 {{key|CTRL}} + {{key|T}} 选择固体 或者右键固体并选择 ''转换成实体(Tie To Entity)'', 然后选择 {{L|trigger_teleport}} 并点击应用(apply)。 这将会是玩家想要被传送则必须进入的区域 (参见右图)


:* Set the 'Remote Destination' to an appropriate name ('''teleport_destination_1''', for example).
:* '目的地(Remote Destination)' 设置成一个合适的名字 (比如 '''teleport_destination_1''')
:* Change to the 'Flags' tab and check the 'Clients' flag to allow players to teleport.
:* 切换到 '标志(Flags)' 标签栏 然后勾选 '客户端(Clients)' 标记来允许玩家传送。


Next, create an [[info_teleport_destination]] from the [[Entity_Creation|entity]] list where you want the teleport ''exit'' to be. This will be the point where the player is teleported to.
接着, 从 {{L|Entity creation|实体}} 列表之中制作一个 {{L|info_teleport_destination}}  作为你想要作为传送 ''出口'' 的地方. 这将会是玩家想要传送去的点。
:* Set the 'Name' attribute to the appropriate name that was used in the previous step ('''teleport_destination_1''').
:* 设置 '名称(Name)' 属性为前一步用过的那个合适的名字 ('''teleport_destination_1''')
{{note|Place this entity a few units above the surface. For some reason, players can become "stuck" when the entity lines up with the surface. A few units is hardly a noticeable fall after teleporting.}}
{{note|请将这个实体放在高于表面几个单位处。因为有些原因, 若是将实体对齐表面,玩家将会被 "卡住" 。 传送之后高出的几个单位几乎没有明显的下落。}}


{{clr}}
{{clr}}


Now in game, when you touch the [[trigger_teleport]], you come out at the [[info_teleport_destination]].
现在在游戏里, 当你触碰 {{L|trigger_teleport}} 时, 你将会从 {{L|info_teleport_destination}} 中被送出来.


== 双向传送门 ==
== 双向传送门 ==
[[image:Trigger_teleport_ex.jpg|thumb|right|An example of a two-way teleportation.]]
[[File:Trigger_teleport_ex.jpg|thumb|right|An example of a two-way teleportation.]]
Making a two-way teleporter is very similar to a one-way teleporter, and if you can make one of those work successfully, all thats required is common sense.
制作一个双向传送门和制作单向传送门的办法差不多, 如果你能成功做出其中一个, 那剩余的便是手到擒来。
<br><br>
<br><br>
Firstly, create the 2 [[brush|brushes]] that will become your teleport entrances, and texture them with [[Tool_textures#trigger|tools/toolstrigger]]. Now, as with one-way teleports, press {{key|CTRL}} + {{key|T}}, or right-click and select ''Tie To Entity'' and select [[trigger_teleport]] for both of them.
首先, 创建两个 {{L|brush|固体(brushes)}} 来作为你的传送门入口, 然后用 [[Tool_textures#trigger|纹理工具(tools/toolstrigger)]] 添加纹理。 现在, 和单向传送门一样, 按下 {{key|CTRL}} + {{key|T}} 或者右键并选择 ''转换成实体(Tie To Entity)'' 然后给它们全部选成 {{L|trigger_teleport}}。
:* Set the [[keyvalues]] and [[flag|flags]] the same as a one-way teleporter, except for Remote Destination.
:* 设置 {{L|keyvalues|键值(keyvalues)}} 和 {{L|flag|标志(flags)}} 与单向传送门相同, 除了 目的地(Remote Destination).
:* Set the Remote destination keyvalue of one teleport entrance to an appropriate name ('''teleport_destination_1''', for example) and the other entrance, to another name such as '''teleport_destination_2'''.
:* 设置其中一个传送入口的 目的地(Remote destination) 键值 为一个合适的名字 (比如 '''teleport_destination_1''')。 并且另一个入口为另一个名字比如 '''teleport_destination_2'''
:* Name these [[brush entities]] something appropriate, like teleport_entrance_1 and teleport_entrance_2.
:* 给这些 {{L|brush entities|固体实体}} 起个合适的名字, 比如 teleport_entrance_1 或者 teleport_entrance_2.
<br>
<br>
Now create 2 [[info_teleport_destination]] entities. These will be where you are teleported to.
现在创建两个 {{L|info_teleport_destination}} 实体, 这些会是你想传送去的地方。
:* Set the Name of each of them to the appropriate names thought up earlier ('''teleport_destination_1''' and '''teleport_destination_2''', for example).
:* 设置它们每一个的 名称(Name)为早些想出的合适的名字 ( 比如'''teleport_destination_1''' '''teleport_destination_2''')
:* Place the one ''teleport destination'' near to the ''entrance'' that does not teleport to it.
:* 将一个 ''传送目的地 (teleport_destination)'' 放在 ''入口'' 附近不会被传送的位置。(见注释和警告)
:* Place the other ''teleport destination'' near to the other ''teleport entrance''.
:* 将别的 ''传送目的地 (teleport destination)'' 放在别的 ''传送入口(teleport entrance)'' 附近。
{{note|This means '''teleport_destination_1''' would be next to '''teleport_entrance_2''', and '''teleport_destination_2''' would be next to '''teleport_entrance_1'''}}
{{note|这意味着 '''teleport_destination_1''' 应当挨着的是 '''teleport_entrance_2''', 并且 '''teleport_destination_2''' 应当挨着的是 '''teleport_entrance_1'''}}
{{warning|Make sure that no part of any ''info_teleport_destination'' entity is touching the ''trigger_teleport'' brush it is next to. If this happens, whenever you teleport, it will either fling you back through the other teleport or cause an infinite loop where you are repeatedly teleporting between the 2 destinations.}}
{{warning|确保没有任何 ''info_teleport_destination'' 实体的部分接触到旁边的 ''trigger_teleport'' 固体。 如果真的发生了: 当你传送的时候, 它将要么通过另一个传送门把你扔回来,要么引起一个你在两个目的地之间不断传送的无限循环。}}
{{note|The names of these entities are not significant, but it makes it easier to understand.}}
{{note|这些实体的名字并不关键, 但是却可以使其更容易理解}}
<br>
<br>
Now when you step into '''teleport_entrance_1''' you will be teleported to '''teleport_destination_1''' and the same with '''teleport_entrance_2''' and '''teleport_destination_2'''.
现在当你踏入 '''teleport_entrance_1''' 你将会被传送去 '''teleport_destination_1''' ,然后对于 '''teleport_entrance_2''' '''teleport_destination_2'''也一样。


<!-- Suggestion to add appropriate image for this section -->
<!-- Suggestion to add appropriate image for this section -->


==Making Teleporters Team-Specific==
==制作团队专用传送器==
{{note|This section only applies to {{Tf2}} [[Team Fortress 2]].}}
{{note|这部分仅仅应用在 {{Tf2}} {{L|Team Fortress 2}} 之中。}}
If you have teleporters in your map that are out in the open, and you want to make them team-specific, add 1 [[filter_activator_tfteam]] per teleporter that you are making team-specific.
如果在你的地图中有传送器在出生点外面,但是你却想把它设置成团队专用的, 给每一个你想改成团队传送器的传送器添加一个 {{L|filter_activator_tfteam}} 。
:*In the [[filter_activator_tfteam]] properties, name your activator, and set the 'Team' to RED/BLU based on which team you want the teleporter to be used by.
:*在 {{L|filter_activator_tfteam}} 属性中, 给你的 activator(激活器) 命名, 'Team' 设置为 RED/BLU based 基于你想要传送器被哪个队伍所使用。
:*Open your [[trigger_teleport]] properties, and set 'Filter Name' to the name of the corresponding [[filter_activator_tfteam]].
:*打开你的 {{L|trigger_teleport}} 属性, 并且将 'Filter Name' 设置成所对应的 {{L|filter_activator_tfteam}}的名字.
<br>
<br>
{{note|You can also use other filter entities that apply to objects being teleported ([[filter_activator_mass_greater]], for example).}}
{{note|你也可以使用别的适用于被传送对象的 过滤实体 (filter entities) ( 比如 {{L|filter_activator_mass_greater}}).}}


==External Links==
==外部链接==
*[http://sdknuts.net/tutorials/wiseTele.asp Teleporting (sdknuts)]
*[http://sdknuts.net/tutorials/wiseTele.asp Teleporting (sdknuts)]
*[http://www.halfwit-2.com/?page=tutorials&id=12 Teleports (halfwit-2)]
*[http://www.halfwit-2.com/?page=tutorials&id=12 Teleports (halfwit-2)]
Line 56: Line 56:
*[http://www.snarkpit.net/index.php?s=articles&article=149 Random Teleporter (snarkpit)]
*[http://www.snarkpit.net/index.php?s=articles&article=149 Random Teleporter (snarkpit)]


[[Category:Level Design Tutorials]]
{{ACategory|Level Design}}
[[Category:English]]

Latest revision as of 04:21, 22 August 2024

English (en)한국어 (ko)Português (pt)Русский (ru)中文 (zh)Translate (Translate)

传送门能通过标准的起源实体制作。

Note.png注意:若你想要重设玩家速度, 使用这个 vscript 指令
OnBlah > !activator > RunScriptCode > self.SetVelocity(Vector(0,0,0))

单向传送门

一开始先创建一个 固体(brushes)(en) 并用 纹理工具(tools/toolstrigger) 添加纹理。 之后用通过 CTRL + T 选择固体 或者右键固体并选择 转换成实体(Tie To Entity), 然后选择 trigger_teleport(en) 并点击应用(apply)。 这将会是玩家想要被传送则必须进入的区域 (参见右图)。

  • 将 '目的地(Remote Destination)' 设置成一个合适的名字 (比如 teleport_destination_1)
  • 切换到 '标志(Flags)' 标签栏 然后勾选 '客户端(Clients)' 标记来允许玩家传送。

接着, 从 实体(en) 列表之中制作一个 info_teleport_destination(en) 作为你想要作为传送 出口 的地方. 这将会是玩家想要传送去的点。

  • 设置 '名称(Name)' 属性为前一步用过的那个合适的名字 (teleport_destination_1)
Note.png注意:请将这个实体放在高于表面几个单位处。因为有些原因, 若是将实体对齐表面,玩家将会被 "卡住" 。 传送之后高出的几个单位几乎没有明显的下落。

现在在游戏里, 当你触碰 trigger_teleport(en) 时, 你将会从 info_teleport_destination(en) 中被送出来.

双向传送门

An example of a two-way teleportation.

制作一个双向传送门和制作单向传送门的办法差不多, 如果你能成功做出其中一个, 那剩余的便是手到擒来。

首先, 创建两个 固体(brushes)(en) 来作为你的传送门入口, 然后用 纹理工具(tools/toolstrigger) 添加纹理。 现在, 和单向传送门一样, 按下 CTRL + T 或者右键并选择 转换成实体(Tie To Entity) 然后给它们全部选成 trigger_teleport(en)

  • 设置 键值(keyvalues)(en)标志(flags)(en) 与单向传送门相同, 除了 目的地(Remote Destination).
  • 设置其中一个传送入口的 目的地(Remote destination) 键值 为一个合适的名字 (比如 teleport_destination_1)。 并且另一个入口为另一个名字比如 teleport_destination_2
  • 给这些 固体实体(en) 起个合适的名字, 比如 teleport_entrance_1 或者 teleport_entrance_2.


现在创建两个 info_teleport_destination(en) 实体, 这些会是你想传送去的地方。

  • 设置它们每一个的 名称(Name)为早些想出的合适的名字 ( 比如teleport_destination_1teleport_destination_2)。
  • 将一个 传送目的地 (teleport_destination) 放在 入口 附近不会被传送的位置。(见注释和警告)
  • 将别的 传送目的地 (teleport destination) 放在别的 传送入口(teleport entrance) 附近。
Note.png注意:这意味着 teleport_destination_1 应当挨着的是 teleport_entrance_2, 并且 teleport_destination_2 应当挨着的是 teleport_entrance_1
Warning.png警告:确保没有任何 info_teleport_destination 实体的部分接触到旁边的 trigger_teleport 固体。 如果真的发生了: 当你传送的时候, 它将要么通过另一个传送门把你扔回来,要么引起一个你在两个目的地之间不断传送的无限循环。
Note.png注意:这些实体的名字并不关键, 但是却可以使其更容易理解


现在当你踏入 teleport_entrance_1 你将会被传送去 teleport_destination_1 ,然后对于 teleport_entrance_2teleport_destination_2也一样。


制作团队专用传送器

Note.png注意:这部分仅仅应用在 军团要塞2 Team Fortress 2(en) 之中。

如果在你的地图中有传送器在出生点外面,但是你却想把它设置成团队专用的, 给每一个你想改成团队传送器的传送器添加一个 filter_activator_tfteam(en)


Note.png注意:你也可以使用别的适用于被传送对象的 过滤实体 (filter entities) ( 比如 filter_activator_mass_greater(en)).

外部链接