Ru/Conveyor (Portal 2): Difference between revisions
m (→Движение ленты) |
|||
Line 26: | Line 26: | ||
== Движение ленты == | == Движение ленты == | ||
5. | 5. Создайте маленький прямоугольный браш 20x24x16 с текстурой [[Tool_textures:ru#nodraw|nodraw]]. Поместите его ниже конвейерной ленты, чтобы он занимал место между моделями: | ||
[[Image:ConveyorPortal2_3.png|400px|thumb|left]]{{clr}} | [[Image:ConveyorPortal2_3.png|400px|thumb|left]]{{clr}} | ||
6. | 6. Выберите конвейерную ленту вместе с брашем и скопируйте их дубликаты в начале каждой конвейерной основы. | ||
[[Image:ConveyorPortal2_4.png|400px|thumb|left| | [[Image:ConveyorPortal2_4.png|400px|thumb|left|В данном руководстве потребуется семь секций.]]{{clr}} | ||
7. To make this next process easier, hide everything except the first conveyor belt and rectangular nodraw brush (Hammer shortcuts: {{key|H}} = Hide Selected, {{key|U}} = Show All Hidden) | 7. To make this next process easier, hide everything except the first conveyor belt and rectangular nodraw brush (Hammer shortcuts: {{key|H}} = Hide Selected, {{key|U}} = Show All Hidden) |
Revision as of 06:01, 11 January 2014
Введение
Для создания конвейера Portal 2 потребуется несколько брашевых энтитей func_tracktrain, каждая со своей целью пути path_track, объединённых в ряд, с включенным параметром Teleport TO this у первой энтити, чтобы путь зациклился.
У каждой func_tracktrain родителем должна быть модель prop_dynamic props_factory/conveyor_belt_module.mdl, которая будет следовать пути.
Создание опоры конвейера
Template:Note:ru 1. Создайте prop_static с моделью props_factory/conveyor_belt.mdl
2. Продублируйте её и выстройте в ряд их четырёх штук. Это будет конвейерная опора:
Создание конвейерной ленты
3. Создайте энтити prop_dynamic с моделью props_factory/conveyor_belt_module.mdl
4. Выровняйте её начало по началу опоры prop_static, которую мы создали на шаге 1:
Движение ленты
5. Создайте маленький прямоугольный браш 20x24x16 с текстурой nodraw. Поместите его ниже конвейерной ленты, чтобы он занимал место между моделями:
6. Выберите конвейерную ленту вместе с брашем и скопируйте их дубликаты в начале каждой конвейерной основы.
7. To make this next process easier, hide everything except the first conveyor belt and rectangular nodraw brush (Hammer shortcuts: H = Hide Selected, U = Show All Hidden)
8. Create a path_track entity and place it inside the nodraw box so that the two share an origin:
9. Make each nodraw box a func_tracktrain entity. Give each entity an individual name. In this tutorial, the naming convention will be conveyor_mover01 to conveyor_mover07. Each entity will have the following properties:
- Max Speed: 60
- Initial Speed: 60
- Change Angles: Never
- conveyor_mover01 'First stop target' is 'conveyor_path01'
- conveyor_mover02 'First stop target' is 'conveyor_path02'
- conveyor_mover03 'First stop target' is 'conveyor_path03'
Repeat this for each func_tracktrain entity.
10. Deselect and hide the nodraw func_tracktrain entities, leaving the path_tracks visible. Give each path_track a unique name similar to step 9 above. For this tutorial, they will be named conveyor_path01 to conveyor_path07
11. For each path_track, set 'Next stop target' to the next path in the track, so conveyor_path01 has a 'next stop' setting of 'conveyor_path02' and so on. The last path should point back to the first one, so conveyor_path07 target is conveyor_path01.
Завершение
12. Select the first path_track (conveyor_path01) and set the flag 'Teleport to THIS path_track':
13. Finally, parent each conveyor belt prop to the tracktrains.
Примечания
- Entities can be spawned at one end of the conveyor using an env_entity_maker entity to spawn a template, which is carried along the belt and destroyed with a trigger, or dropped into a pit.
- Paint will not stick to the belt using the method above. In order for this to happen, the moving belt sections should be tracktrain brushes and not models. Remove each prop_dynamic , and apply metal/conveyor_belt to the resized nodraw brushes (in place of the dynamic models)
- func_tracktrain accepts an input of RemovePaint
Ссылки
- Example map download: [1]