Zh/Teleporters: Difference between revisions
(创建页面,部分翻译) |
(部分翻译) |
||
Line 6: | Line 6: | ||
== 单向传送门 == | == 单向传送门 == | ||
开始创建一个 [[brush|固体(brushes)]] 并用 [[Tool_textures#trigger|纹理工具(tools/toolstrigger)]] 添加纹理。 现在选择固体通过 {{key|CTRL}} + {{key|T}} 或者右键固体并选中 ''转换成实体(Tie To Entity)'', 然后选择 [[trigger_teleport]] 然后点击应用(apply). 这将会是玩家要被传送必须进入的区域 (参见右图). | |||
:* Set the 'Remote Destination' to an appropriate name ('''teleport_destination_1''', for example). | :* Set the 'Remote Destination' to an appropriate name ('''teleport_destination_1''', for example). | ||
:* Change to the 'Flags' tab and check the 'Clients' flag to allow players to teleport. | :* Change to the 'Flags' tab and check the 'Clients' flag to allow players to teleport. | ||
接着, 从 [[Entity_Creation|实体]] 列表之中制作一个 [[info_teleport_destination]] 在你想要作为传送 ''出口'' 的地方. 这将会是玩家想要传送去的点. | |||
:* Set the 'Name' attribute to the appropriate name that was used in the previous step ('''teleport_destination_1'''). | :* Set the 'Name' attribute to the appropriate name that was used in the previous step ('''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|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.}} | ||
Line 17: | Line 17: | ||
{{clr}} | {{clr}} | ||
现在游戏中, 当你触碰 [[trigger_teleport]], 你将会从 [[info_teleport_destination]] 送出来. | |||
== 双向传送门 == | == 双向传送门 == | ||
[[image:Trigger_teleport_ex.jpg|thumb|right|An example of a two-way teleportation.]] | [[image:Trigger_teleport_ex.jpg|thumb|right|An example of a two-way teleportation.]] | ||
制作一个双向传送门和制作单向传送门的办法差不多, 如果你能成功做出其中一个, 那剩余的便是手到擒来。 | |||
<br><br> | <br><br> | ||
首先, 创建两个 [[brush|固体(brushes)]] 来作为你的传送门入口, 然后用 [[Tool_textures#trigger|纹理工具(tools/toolstrigger)]] 添加纹理。 现在, 和单向传送门一样, 按下 {{key|CTRL}} + {{key|T}} 或者右键并选择 ''转换成实体(Tie To Entity)'' 然后给它们全部选择 [[trigger_teleport]]。 | |||
:* Set the [[keyvalues]] and [[flag|flags]] the same as a one-way teleporter, except for Remote Destination. | :* Set the [[keyvalues]] and [[flag|flags]] the same as a one-way teleporter, except for 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'''. | :* 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'''. | ||
:* Name these [[brush entities]] something appropriate, like teleport_entrance_1 and teleport_entrance_2. | :* Name these [[brush entities]] something appropriate, like teleport_entrance_1 and teleport_entrance_2. | ||
<br> | <br> | ||
现在创建两个 [[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). | :* Set the Name of each of them to the appropriate names thought up earlier ('''teleport_destination_1''' and '''teleport_destination_2''', for example). | ||
:* Place the one ''teleport destination'' near to the ''entrance'' that does not teleport to it. | :* Place the one ''teleport destination'' near to the ''entrance'' that does not teleport to it. | ||
Line 36: | Line 36: | ||
{{note|The names of these entities are not significant, but it makes it easier to understand.}} | {{note|The names of these entities are not significant, but it makes it easier to understand.}} | ||
<br> | <br> | ||
现在当你踏入 '''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 --> | ||
== | ==制作团队专用传送器== | ||
{{note| | {{note|这部分仅仅应用在 {{Tf2}} [[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. | 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. | ||
:*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. | :*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. | ||
Line 48: | Line 48: | ||
{{note|You can also use other filter entities that apply to objects being teleported ([[filter_activator_mass_greater]], for example).}} | {{note|You can also use other filter entities that apply to objects being teleported ([[filter_activator_mass_greater]], for example).}} | ||
== | ==外部链接== | ||
*[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)] |
Revision as of 06:50, 16 January 2022
传送门能通过标准的起源实体制作。

OnBlah > !activator > RunScriptCode > self.SetVelocity(Vector(0,0,0))
单向传送门
开始创建一个 固体(brushes) 并用 纹理工具(tools/toolstrigger) 添加纹理。 现在选择固体通过 CTRL + T 或者右键固体并选中 转换成实体(Tie To Entity), 然后选择 trigger_teleport 然后点击应用(apply). 这将会是玩家要被传送必须进入的区域 (参见右图).
- Set the 'Remote Destination' to an appropriate name (teleport_destination_1, for example).
- Change to the 'Flags' tab and check the 'Clients' flag to allow players to teleport.
接着, 从 实体 列表之中制作一个 info_teleport_destination 在你想要作为传送 出口 的地方. 这将会是玩家想要传送去的点.
- Set the 'Name' attribute to the appropriate name that was used in the previous step (teleport_destination_1).

现在游戏中, 当你触碰 trigger_teleport, 你将会从 info_teleport_destination 送出来.
双向传送门
制作一个双向传送门和制作单向传送门的办法差不多, 如果你能成功做出其中一个, 那剩余的便是手到擒来。
首先, 创建两个 固体(brushes) 来作为你的传送门入口, 然后用 纹理工具(tools/toolstrigger) 添加纹理。 现在, 和单向传送门一样, 按下 CTRL + T 或者右键并选择 转换成实体(Tie To Entity) 然后给它们全部选择 trigger_teleport。
- Set the keyvalues and flags the same as a one-way teleporter, except for 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.
- Name these brush entities something appropriate, like teleport_entrance_1 and teleport_entrance_2.
现在创建两个 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).
- Place the one teleport destination near to the entrance that does not teleport to it.
- Place the other teleport destination near to the other teleport entrance.



现在当你踏入 teleport_entrance_1 你将会被传送去 teleport_destination_1 ,然后对于 teleport_entrance_2 和 teleport_destination_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.
- 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.
- Open your trigger_teleport properties, and set 'Filter Name' to the name of the corresponding filter_activator_tfteam.
