Ru/Entity creation

From Valve Developer Community
< Ru
Revision as of 04:53, 14 May 2008 by 00000 (talk | contribs)
Jump to navigation Jump to search

Template:Totranslate:ru Ентити дают жизнь вашему уровню! Это монстры, двери, выключатели и лампочки, превращающие вашу статичную архитектуру уровня в динамичное окружение. Разумное использование ентитей очень важно для создания интересного, уникального и увлекательного уровня.

В отличие от геометрических примитивов, ентити не создаются в окне редактора Hammer. Большинство пользователей просто выбирают их из списка существующих ентитей. Как только вы выбрали нужную ентити, в редакторе Hammer вы можете изменить её расположение и другие свойства.

Существуют два типа ентитей: точечные и брашевые.


Точечные ентити существуют только в определённой точке. Например, источники освещения, монстры и игроки. (монстры и игроки делают определённые действия, но их действия в карте не изменишь. Они изменяются в игровом коде.) Некоторые точечные ентити являются обычными точками. Например, ентити env_beam, контролирующая лучевые эффекты, использует 2 точечные ентити как цели: вы помещаете 2 точки и луч света проходит между ними.

Брашевые ентити основаны на брашах для их материального существования на карте. Например, двери, платформы и другие двигающиеся объекты. Триггер - это другой тип брашевой ентити; он требует зону для активации, которая задаёт дальнейшие действия для триггера. Точечные ентити, основанные на модели, находящейся в файле на диске, рендерятся движком.

Расположение точечных ентитей

Select an entity to place using the New Objects toolbar.

Placement of point entities is simple:

  1. Select the Entity Tool.
  2. From the New Objects toolbar, select the entity you want from the "Objects" selection box.
    Note.pngПримечание:The entity list in the "New Objects" dialog is for point-based entities only. For information on brush-based entities, please refer to the next section.
  3. Click in a 2D window, then position the entity cursor with the mouse. You can also click on a brush surface in the 3D view, and the point entity will be created there.
  4. Pressing Enter will create the entity.
  5. Fine tune the entity position in the 2D and 3D views.
  6. Choose Properties under the Edit menu if you wish to edit the entity parameters.
Tip.pngСовет:You can also use the shortcut Alt+Enter to open the Object Properties dialog box for the current selection.

Brush-based entity creation

Select an entity for the solid from the Class list in Object Properties dialog.

Brush-based entities are a bit more complicated than point-based entities, but should not pose any difficulties once you know their basics.

  1. Create a brush where you would like it. You can use as many brushes as you'd like when building a brush-based entity.
  2. Select the entire object.
  3. Select "Tie to Entity" from the Tools Menu, or press the Ctrl+T shortcut. This will turn the selected objects into a brush based entity.
  4. In the Object Properties dialog, select the appropriate entity from the "Class" list box. Once the entity type is selected, you can modify the entity properties as needed.
Tip.pngСовет:You can access the Object Properties dialog for a brush-based entity the same way you do for a point-based entity: select it and press Alt+Enter.

You will notice that brush-based entities appear as a different color in the 2D windows, typically purple.

Combining solid entities

Multiple solid entities can be also combined into a single entity:

  1. Select the entities or brushes you wish to combine.
  2. Select "Tie to Entity" from the Tools menu, or press Ctrl+T.
  3. A dialog will open with a list of entities in the current selection. Choose which of the entities you wish to keep for the final, combined entity. Select one of the entities, and that entity will also be highlighted in the 2D and 3D Views. Click "OK" to confirm your choice.
  4. The Object Properties dialog will appear, allowing you to change the parameters for the combined entity.

Using entities

Once an entity has been made, it can be controlled through the Entity I/O system. This system controls how entities interact with each other to make the game.

See also

Template:Otherlang:ru Template:Otherlang:ru:en Template:Otherlang:ru:jp