Diversity Vent

From Valve Developer Community
Revision as of 14:47, 7 June 2011 by Mattshu (talk | contribs) (Complete revision of the tutorial. May need some edits here and there, I'm not the best at explaining things. :P)
Jump to navigation Jump to search

Diversity vents are used to suck puzzle elements, such as turrets, out of the chambers. They were scrapped from the game as a testing element and were used instead as an updated version of the Vital Apparatus Vent. However, the tools to create them are still available.

Tubes

Creating the vent

Note.pngNote:For the purpose of this tutorial, there are three straight vents and one angled vents in use. Browse for vactube under props_bts for more vent options.
  • Create several prop_static entities with the model name props_bts\vactube_128_straight_b.mdl.
  • Line up the tubes, then place another prop_static entity with the model name props_bts\vactube_90deg_01.mdl. This is the curved tube.
  • To finish the vent, place one more prop_static entity with the model name props_bts\vactube_connector.mdl

Creating the vacuum

  • 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.

In the object properties of all trigger_push entities, ensure the Physics Objects flag is checked. The Speed of Push should be set to 1500, and make sure the Push Direction is correctly set with the direction of the tubes.

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

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 Floor 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 a smoke effect when placing portals.

External links