Ru/Diversity Vent

From Valve Developer Community
Jump to navigation Jump to search

Template:Otherlang2

Вакумные трубы или Система Доставки вырезанный игровой элемент. Но инструменты и модели для создания этого элемента остались. Они являются частью вакуумных труб в P2 которые там только для красоты. Вакуумные трубы служат системой доставки разнообразных тестовых элементов, таких как cubes, turrets, and gel. Или в качестве игровых элементов что бы всасывать их.

Кубы и турели которые двигаются в них имеют анимацию. Если хотите посмотрите в папку "props_vac_anim".

Tubes

Создание вакуумной системы

Note.pngПримечание:В этом туторе есть три прямых трубы и одна со сгибом. Введите vactube в загрузчике моделей что бы увидеть больше вариантов.
  • Создайте энтитю prop_static и введите в поле "World model" props_bts\vactube_128_straight_b.mdl.
  • Соедините их и сделайте ещё одну энтититю prop_static и присвойте ей модель props_bts\vactube_90deg_01.mdl. Это закончит рубу.
  • Чтобы было красивее сделайте опять же энтитю prop_static и присвойте ей модель props_bts\vactube_connector.mdl

Создаем вакуум

О какая сложная часть. Рекомендую использовать info_placement_helper чтобы помочь вам найти правильное направление для триггера, trigger_push.info_placement_helperбудет иметь красную стрелку, которая будет показавать направление пыли и всасывания, когда её значения будут установлены, направление будет соответствовать направлению тяги у trigger_push, просто скопируйте направление из info_placement_helper в свойства trigger_push.

  • For straight tubes: create a 64x64 trigger_push brush entity and texture it with the Trigger texture. Place it inside the straight tubes and line it up with the origin of the straight tubes to ensure it's directly in the center.
  • Make the brush length as long as the vent tubes.
  • For the curved tube: create another 64x64 trigger_push brush entity textured with Trigger. Place it inside the curved tube and stretch it down to the floor and up to the bottom of the straight tube's trigger_push entity. This will lift physics objects into the straight tubes, then carried away.

В свойствах всех trigger_push ентитей, поставьте флаг Physics Objects. Speed of Push установите равной 1500, и установите Push Direction в зависимости от направления трубы.

Removing vacuumed objects

  • At the opposite end of the tube, where the player may lose sight of objects being carried away by the vacuum, place a trigger_multiple brush entity that is 128x128x16 large. This will be used to remove the physics objects in the tube.
  • For the trigger_multiple entity:
My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnStartTouch !activator Kill 0.00 No
Note.pngПримечание: Make sure you check the "physics objects" flag in the properties of the trigger. You may also want to uncheck the "client" flag.

Finishing up

Finished Vent
  • Directly underneath the entry tube where objects will be sucked in, place a info_placement_helper on the floor. Set the Radius to 64, and set the Force placement to Yes.
  • Above the info_placement_helper, and below the entry tube, place a point_push facing up (-90, 0, 0). Adjust the Radius to about 250, and set the Magnitude to -40. This will add an effect of dust being sucked into the portal when placing portals.
  • At the opening of the vent place an info_particle_system facing down (90, 0, 0) with Particle System Name of broken_tube_suck. Make sure Start Active? is set to yes. This will add an effect of dust being sucked in the vent, not only to the portal, but also from it.

External links