Ru/L4D Level Design/Ladders: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
No edit summary
m (Multipage removal)
 
(18 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{L4D level intro menu:ru}}
{{LanguageBar}}
{{Underlinked|date=January 2024}}
 
{{L4D level intro menu}}


Сначала вернитесь в Hammer, чтобы добавить в нашу карту лестницу.
Сначала вернитесь в Hammer, чтобы добавить в нашу карту лестницу.
Line 7: Line 10:
В первую очередь нам нужно создать новую версию карты, что мы использовали в предыдущем разделе.
В первую очередь нам нужно создать новую версию карты, что мы использовали в предыдущем разделе.


Откройте файл карты <code>tutorial01.vmf</code> который вы создали ранее в Hammer (если он еще не открыт). Он расположен в папке mapsrc, по умолчанию:  
Откройте файл карты <code>tutorial01.vmf</code> который вы создали ранее в Hammer (если он еще не открыт). Он расположен в папке mapsrc, по умолчанию:


  C:\Program Files\Steam\steamapps\common\left 4 dead\sdk_content\mapsrc\
  C:\Program Files\Steam\steamapps\common\left 4 dead\sdk_content\mapsrc\
Line 17: Line 20:
== Создание комнаты ==
== Создание комнаты ==


Сначала, выберите потолок второй комнаты, созданной в прошлом уроке.  
Сначала, выберите потолок второй комнаты, созданной в прошлом уроке.


Передвинте браш на 128 юнитов выше текущего положения.
Передвинте браш на 128 юнитов выше текущего положения.
Line 23: Line 26:
Выделите браши стены во второй комнате и продублируйте их таким образом, чтобы новый набор стен располагался точно над сделанными ранее.
Выделите браши стены во второй комнате и продублируйте их таким образом, чтобы новый набор стен располагался точно над сделанными ранее.


{{note|Дублируя стены и располагая их выше на уровень или несколько, вы создаете себе больше простора для текстурирования стен.}}
{{Note|Дублируя стены и располагая их выше на уровень или несколько, вы создаете себе больше простора для текстурирования стен.}}


Теперь, модифицированная вами комната должна выглядеть так:
Теперь, модифицированная вами комната должна выглядеть так:


[[Image:l4d_hammer_ladder_01.jpg|thumb|left|500px|caption|Дублирование стен для увеличения комнаты.]]
[[File:l4d_hammer_ladder_01.jpg|thumb|left|500px|caption|Дублирование стен для увеличения комнаты.]]


{{clr}}
{{clr}}


Вы увидите темную дыру ведущую вне наших комнат и коридора. Карта скомпилируются неправильно и не запустится при наличии таких дыр или "[[щелей]]" выходящих за границы созданного уровня. Поправим это.
Вы увидите темную дыру ведущую вне наших комнат и коридора. Карта скомпилируются неправильно и не запустится при наличии таких дыр или "{{L|щелей}}" выходящих за границы созданного уровня. Поправим это.


[[Image:l4d_hammer_ladder_02.jpg|thumb|left|500px|caption|Убедитесь, что запечатали уровень должным образом.]]
[[File:l4d_hammer_ladder_02.jpg|thumb|left|500px|caption|Убедитесь, что запечатали уровень должным образом.]]


Веберите верхную часть стен со стороны дырки.
Веберите верхную часть стен со стороны дырки.
Line 40: Line 43:


== Creating a ledge ==
== Creating a ledge ==
[[Image:l4d_hammer_ladder_03.jpg|thumb|left|500px|caption|Создание уступа около одной из стен.]]
[[File:l4d_hammer_ladder_03.jpg|thumb|left|500px|caption|Создание уступа около одной из стен.]]


Выберите нижнюю часть задней стены второй комнаты нажатием на нее в окне 3D-вида.
Выберите нижнюю часть задней стены второй комнаты нажатием на нее в окне 3D-вида.
Line 54: Line 57:
Просто, чтобы показать, как сменить текстуры брашей, давайте покроем весь пол и потолок на нашей карте текстурой <code>dev/dev_measuregeneric01b</code>.
Просто, чтобы показать, как сменить текстуры брашей, давайте покроем весь пол и потолок на нашей карте текстурой <code>dev/dev_measuregeneric01b</code>.


Чтобы редактировать отдельные стороны брашей, нажмите на кнорпку [[Image:Hammer_toggletextureapplicationicon.jpg]] '''Texture application mode''' на панели '''Tool'''.
Чтобы редактировать отдельные стороны брашей, нажмите на кнорпку [[File:Hammer_ToggleTextureApplication.png]] '''Texture application mode''' на панели '''Tool'''.


[[Image:l4d_hammer_face_edit_00.jpg|thumb|right|300px|caption|Окно Face Edit Sheet.]]
[[File:l4d_hammer_face_edit_00.jpg|thumb|right|300px|caption|Окно Face Edit Sheet.]]


Вы увидите появившееся окно '''Face Edit Sheet'''.
Вы увидите появившееся окно '''Face Edit Sheet'''.
Line 62: Line 65:
{{clr}}
{{clr}}


[[Image:l4d_hammer_texture_face_01.jpg|thumb|right|500px|caption|Захват текстуры с браша.]]
[[File:l4d_hammer_texture_face_01.jpg|thumb|right|500px|caption|Захват текстуры с браша.]]


Вы можете найти нужную вам текстуру нажатием на кнопку '''Browse''' на панели '''Texture''', либо вы можете сделать ''захват'' уже использованной текстуры с брашей.
Вы можете найти нужную вам текстуру нажатием на кнопку '''Browse''' на панели '''Texture''', либо вы можете сделать ''захват'' уже использованной текстуры с брашей.
Line 71: Line 74:
{{clr}}
{{clr}}


[[Image:l4d_hammer_texture_face_02.jpg|thumb|right|500px|caption|Примениение текстуры на фейс браша.]]
[[File:l4d_hammer_texture_face_02.jpg|thumb|right|500px|caption|Примениение текстуры на фейс браша.]]


Чтобы применить текстуру на другой фейс, просто нажмите '''ПКМ''' на фейсе, у которого хотите заменить текстуру.
Чтобы применить текстуру на другой фейс, просто нажмите '''ПКМ''' на фейсе, у которого хотите заменить текстуру.
Line 79: Line 82:
{{clr}}
{{clr}}


== Placing a Ladder Model ==
== Создаём модель лестницы ==


Switch to the [[Image:Hammer entitytoolicon.jpg]] '''Entity Tool''' and select "<code>prop_static</code>" from the '''Objects''' drop-down menu on the '''Entity''' bar if it isn't already set as this.
Нажмите на кнопку [[File:Hammer_entity.png]] '''Entity Tool''' и выберите "<code>prop_static</code>" в окне '''Objects''' в выпадающем списке выберите '''Entity''' если еще не выбрано.


Place a prop_static by clicking on the back wall that you just widened.
Поместите свой prop_static на заднюю стенку, которую вы только что расширили.


[[Image:l4d_hammer_ladder_04.jpg|thumb|right|500px|caption|Selecting a ladder from the Model Browser.]]
[[File:l4d_hammer_ladder_04.jpg|thumb|right|500px|caption|Выбираем модель лестницы в Model Browser.]]


Deselect the prop_static by pressing the {{key|Esc}} key then '''double-click''' on it to bring up its properties.
Отмените выделение prop_static нажимая кнопку {{key|Esc}} ,затем щелкните два раза для редактирования свойств.


Click on the '''World Model''' row.
Нажмите на кнопку '''World Model'''.


Click on the '''Browse''' on the right of the O'''bject Properties''' dialog box.
Нажмите на кнопку '''Browse''' справа от '''Object Properties'''.


Type "<code>ladder</code>" into the '''Filter''' field.
Введите "<code>ladder</code>" в поле '''Filter'''.


Select "<code>props_c17/metalladder002.mdl</code> and then click '''OK'''.
Выберите "<code>props_c17/metalladder002.mdl</code> и нажмите '''OK'''.


Click '''Apply''' on the '''Object Properties''' dialog.
Нажмите '''Apply''' в диалоге'''Object Properties'''.


{{clr}}
{{clr}}


[[Image:l4d_hammer_ladder_05.jpg|thumb|right|500px|caption|Placing the ladder.]]
[[File:l4d_hammer_ladder_05.jpg|thumb|right|500px|caption|Вставка лестницы.]]


You should now have the ladder where you placed your prop_static.
У Вас должна теперь появиться лестница, куда Вы поместили свой prop_static.


{{clr}}
{{clr}}


[[Image:l4d_hammer_ladder_06.jpg|thumb|right|500px|caption|Moving the ladder into position.]]
[[File:l4d_hammer_ladder_06.jpg|thumb|right|500px|caption|Двигаем лестницу на позицию.]]


Switch back to the '''Selection tool''' and rotate and move your ladder so that it is in the middle of this back wall and the bottom touches the floor.
Переключаемся обратно '''Selection tool''' и поворачиваем, двигаем вашу лестницу так, чтобы она была в середине этой задней стенки и её низ касался пола.


{{clr}}
{{clr}}


== Creating a func_ladder ==
== Создание func_ladder ==
 
Now that you have the model that shows where your ladder is, you will need to place the actual entity that allows players and and other characters to climb it.


[[Image:l4d_hammer_nodraw.jpg|thumb|right|200px|caption|Making the tools/toolsnodraw texture the current texture.]]
Теперь, когда у вас есть модель лестницы, you will need to place the actual entity that allows players and and other characters to climb it.


Click on the '''Browse''' button on the '''Texture''' bar.
[[File:l4d_hammer_nodraw.jpg|thumb|right|200px|caption|Making the tools/toolsnodraw texture the current texture.]]


Type "<code>nodraw</code>" into the filter.
Нажмите на кнопку '''Browse''' находящуюся на панели '''Texture'''.
Напишите "<code>nodraw</code>" в поле filter.


Double-click on the texture "<code>tools/toolsnodraw</code>" to select it and close the browser.
Двойным щелчком выберите текстуру "<code>tools/toolsnodraw</code>" и закройте browser.


{{Tip|Nodraw is a special "tools" texture that has special properties in the game. In this case, it a creates a solid object that does not render ("draw") when the level is played in-game. Essentially an invisible, but solid object.}}
{{Tip|Nodraw это специальная "tools" текстура которая имеет специальные свойства в игре. В нашем случае, она создает браш, которого невидно в игре.}}
   
   
{{clr}}
{{clr}}
Line 131: Line 133:
Decrease your grid size to 2 units in order to fit the ladder better by pressing the {{key|[}} key twice.
Decrease your grid size to 2 units in order to fit the ladder better by pressing the {{key|[}} key twice.


[[Image:l4d_hammer_ladder_07.jpg|thumb|right|500px|caption|Drawing a brush over the front of the ladder model.]]
[[File:l4d_hammer_ladder_07.jpg|thumb|right|500px|caption|Drawing a brush over the front of the ladder model.]]


Click [[Image:Hammer block.png]] '''Block Tool''' and then create a brush in the '''Top''' viewport in front of the ladder.
Click [[File:Hammer block.png]] '''Block Tool''' and then create a brush in the '''Top''' viewport in front of the ladder.


The brush should be approximately 32 units wide, 128 units tall, and 2 units thick. If necessary, resize the brush by dragging the corner handles and drag into place in front of the ladder model as shown in the image.
The brush should be approximately 32 units wide, 128 units tall, and 2 units thick. If necessary, resize the brush by dragging the corner handles and drag into place in front of the ladder model as shown in the image.
Line 139: Line 141:
{{clr}}
{{clr}}


[[Image:l4d_hammer_face_edit_01.jpg|thumb|right|300px|caption|The Face Edit Sheet dialog box with the nodraw texture on it.]]
[[File:l4d_hammer_face_edit_01.jpg|thumb|right|300px|caption|The Face Edit Sheet dialog box with the nodraw texture on it.]]


Now, you will need to make one face of the brush (the face that points out from the ladder) a ladder tool texture. To edit individual faces of brushes, click the [[Image:Hammer_toggletextureapplicationicon.jpg]] '''Texture application mode''' button.
Now, you will need to make one face of the brush (the face that points out from the ladder) a ladder tool texture. To edit individual faces of brushes, click the [[File:Hammer_ToggleTextureApplication.png]] '''Texture application mode''' button.


You will see the '''Face Edit Sheet''' dialog box appear again.
You will see the '''Face Edit Sheet''' dialog box appear again.
Line 147: Line 149:
{{clr}}
{{clr}}


[[Image:l4d_hammer_ladder_08.jpg|thumb|right|200px|caption|The tools/toolsinvisibleladder texture.]]
[[File:l4d_hammer_ladder_08.jpg|thumb|right|200px|caption|The tools/toolsinvisibleladder texture.]]


With this dialog box still appearing, select the face pointing away from the ladder in the '''Camera''' viewport by clicking it with the left mouse button.
With this dialog box still appearing, select the face pointing away from the ladder in the '''Camera''' viewport by clicking it with the left mouse button.
Line 155: Line 157:
Type "<code>ladder</code>" into the '''Filter''' field.
Type "<code>ladder</code>" into the '''Filter''' field.


Double-click the texture "<code>tools/toolsinvisibleladder</code>".
Двойным щелчком выбираем текстуру "<code>tools/toolsinvisibleladder</code>".


{{tip|This is another of those special "tools" textures. This one marks the brush face as one that can be climbed in-game.}}
{{tip|This is another of those special "tools" textures. This one marks the brush face as one that can be climbed in-game.}}
Line 161: Line 163:
{{clr}}
{{clr}}


[[Image:l4d_hammer_ladder_09.jpg|thumb|right|500px|caption|The ladder texture in the '''Face Edit Sheet'''.]]
[[File:l4d_hammer_ladder_09.jpg|thumb|right|500px|caption|The ladder texture in the '''Face Edit Sheet'''.]]


You should see the <code>LADDER</code> texture now occupying the thumbnail in the '''Face Edit Sheet'''.
You should see the <code>LADDER</code> texture now occupying the thumbnail in the '''Face Edit Sheet'''.
Line 167: Line 169:
{{clr}}
{{clr}}


[[Image:l4d_hammer_ladder_10.jpg|thumb|right|500px|caption|Applying the current texture to the selected face.]]
[[File:l4d_hammer_ladder_10.jpg|thumb|right|500px|caption|Applying the current texture to the selected face.]]


Now click the '''Apply''' Button and your selected face should change to the <code>LADDER</code> texture.
Now click the '''Apply''' Button and your selected face should change to the <code>LADDER</code> texture.
Line 173: Line 175:
{{clr}}
{{clr}}


[[Image:l4d_hammer_ladder_11.jpg|thumb|right|300px|caption|Selecting '''Tie to Entity''' from the '''Tools''' menu.]]
[[File:l4d_hammer_ladder_11.jpg|thumb|right|300px|caption|Selecting '''Tie to Entity''' from the '''Tools''' menu.]]


Exit the Texture application mode by closing the '''Face Edit Sheet''' dialog box.
Exit the Texture application mode by closing the '''Face Edit Sheet''' dialog box.
Line 183: Line 185:
{{clr}}
{{clr}}


[[Image:l4d_hammer_func_ladder_01.jpg|thumb|right|500px|caption|Changing the func_detail to a func_ladder.]]
[[File:l4d_hammer_func_ladder_01.jpg|thumb|right|500px|caption|Changing the func_detail to a func_ladder.]]


This will make the brush a ''[[brush entity]]''. This changes the solid block of geometry we had before into a special brush that can have properties that can be changed to affect the game.
This will make the brush a ''{{L|brush entity}}''. This changes the solid block of geometry we had before into a special brush that can have properties that can be changed to affect the game.


The default brush entity is a <code>func_detail</code> which we will talk about a little later.
The default brush entity is a <code>func_detail</code> which we will talk about a little later.
Line 197: Line 199:
== Compile the level ==
== Compile the level ==


[[Image:l4d_hammer_ladder_12.jpg|thumb|right|400px|caption|The ladder in the game.]]
[[File:l4d_hammer_ladder_12.jpg|thumb|right|400px|caption|The ladder in the game.]]


Now compile the level by pressing the {{key|F9}} key and then clicking on the '''OK''' Button.
Now compile the level by pressing the {{key|F9}} key and then clicking on the '''OK''' Button.


{{note|When the game launches, dismiss the "'''Map is unplayable!'''" dialog by pressing the '''Continue''' button. This is expected because we haven't created a navigation file for our level yet.}}
{{Note|When the game launches, dismiss the "'''Map is unplayable!'''" dialog by pressing the '''Continue''' button. This is expected because we haven't created a navigation file for our level yet.}}


Your ladder look something like this in-game.
Your ladder look something like this in-game.
Line 209: Line 211:
{{clr}}
{{clr}}


{{NavBar|:L4D Level Design/Your First L4D Level:ru|L4D Level Design Basics Tutorial:ru|L4D Level Design/Visibility:ru}}
{{NavBar|:L4D Level Design/Your First L4D Level|L4D Level Design Basics Tutorial|L4D Level Design/Visibility}}
 
{{ACategory|Left 4 Dead}}
[[Category:Left 4 Dead:ru]]
{{ACategory|Left 4 Dead 2}}
[[Category:Level Design:ru]]
{{ACategory|Level Design}}

Latest revision as of 07:44, 12 July 2024

English (en)Português do Brasil (pt-br)Русский (ru)中文 (zh)Translate (Translate)
Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

Сначала вернитесь в Hammer, чтобы добавить в нашу карту лестницу.

Создайте tutorial02.vmf

В первую очередь нам нужно создать новую версию карты, что мы использовали в предыдущем разделе.

Откройте файл карты tutorial01.vmf который вы создали ранее в Hammer (если он еще не открыт). Он расположен в папке mapsrc, по умолчанию:

C:\Program Files\Steam\steamapps\common\left 4 dead\sdk_content\mapsrc\

Итак мы сделаем новую рабочую версию и скомпилируем ее:

  • Для этого проходим в меню File и выбираем Save As...
  • Меняем имя на tutorial02.vmf.

Создание комнаты

Сначала, выберите потолок второй комнаты, созданной в прошлом уроке.

Передвинте браш на 128 юнитов выше текущего положения.

Выделите браши стены во второй комнате и продублируйте их таким образом, чтобы новый набор стен располагался точно над сделанными ранее.

Note.pngПримечание:Дублируя стены и располагая их выше на уровень или несколько, вы создаете себе больше простора для текстурирования стен.

Теперь, модифицированная вами комната должна выглядеть так:

Дублирование стен для увеличения комнаты.

Вы увидите темную дыру ведущую вне наших комнат и коридора. Карта скомпилируются неправильно и не запустится при наличии таких дыр или "щелей(en)" выходящих за границы созданного уровня. Поправим это.

Убедитесь, что запечатали уровень должным образом.

Веберите верхную часть стен со стороны дырки.

Увеличьте размер "заплатки" перемещая мышкой метку на углу.

Creating a ledge

Создание уступа около одной из стен.

Выберите нижнюю часть задней стены второй комнаты нажатием на нее в окне 3D-вида.

При помощи окна просмотра Сверху, расширьте стену в сторону комнаты так, чтобы ее ширина составляла 128 юнитов.

Снимите выделение с браша нажатием кнопки Esc.

Текстурирование брашей

Просто, чтобы показать, как сменить текстуры брашей, давайте покроем весь пол и потолок на нашей карте текстурой dev/dev_measuregeneric01b.

Чтобы редактировать отдельные стороны брашей, нажмите на кнорпку Hammer ToggleTextureApplication.png Texture application mode на панели Tool.

Окно Face Edit Sheet.

Вы увидите появившееся окно Face Edit Sheet.

Захват текстуры с браша.

Вы можете найти нужную вам текстуру нажатием на кнопку Browse на панели Texture, либо вы можете сделать захват уже использованной текстуры с брашей.

Чтобы захватить текстуру с фейса одного из брашей, просто нажмите ЛКМ на полу, где вы видите серую текстуру.

Вы заметите, что это заменит миниатюру текущей текстуры на панели Face Edit на выбранную вами measuregeneric.

Примениение текстуры на фейс браша.

Чтобы применить текстуру на другой фейс, просто нажмите ПКМ на фейсе, у которого хотите заменить текстуру.

Right-click on the top of the ledge you created to give it the same gray texture as the floor.

Создаём модель лестницы

Нажмите на кнопку Hammer entity.png Entity Tool и выберите "prop_static" в окне Objects в выпадающем списке выберите Entity если еще не выбрано.

Поместите свой prop_static на заднюю стенку, которую вы только что расширили.

Выбираем модель лестницы в Model Browser.

Отмените выделение prop_static нажимая кнопку Esc ,затем щелкните два раза для редактирования свойств.

Нажмите на кнопку World Model.

Нажмите на кнопку Browse справа от Object Properties.

Введите "ladder" в поле Filter.

Выберите "props_c17/metalladder002.mdl и нажмите OK.

Нажмите Apply в диалогеObject Properties.

Вставка лестницы.

У Вас должна теперь появиться лестница, куда Вы поместили свой prop_static.

Двигаем лестницу на позицию.

Переключаемся обратно Selection tool и поворачиваем, двигаем вашу лестницу так, чтобы она была в середине этой задней стенки и её низ касался пола.

Создание func_ladder

Теперь, когда у вас есть модель лестницы, you will need to place the actual entity that allows players and and other characters to climb it.

Making the tools/toolsnodraw texture the current texture.

Нажмите на кнопку Browse находящуюся на панели Texture. Напишите "nodraw" в поле filter.

Двойным щелчком выберите текстуру "tools/toolsnodraw" и закройте browser.

Tip.pngСовет:Nodraw это специальная "tools" текстура которая имеет специальные свойства в игре. В нашем случае, она создает браш, которого невидно в игре.

Decrease your grid size to 2 units in order to fit the ladder better by pressing the [ key twice.

Drawing a brush over the front of the ladder model.

Click Hammer block.png Block Tool and then create a brush in the Top viewport in front of the ladder.

The brush should be approximately 32 units wide, 128 units tall, and 2 units thick. If necessary, resize the brush by dragging the corner handles and drag into place in front of the ladder model as shown in the image.

The Face Edit Sheet dialog box with the nodraw texture on it.

Now, you will need to make one face of the brush (the face that points out from the ladder) a ladder tool texture. To edit individual faces of brushes, click the Hammer ToggleTextureApplication.png Texture application mode button.

You will see the Face Edit Sheet dialog box appear again.

The tools/toolsinvisibleladder texture.

With this dialog box still appearing, select the face pointing away from the ladder in the Camera viewport by clicking it with the left mouse button.

Click on the Browse button in the Face Edit Sheet dialog box and you will see the Texture browser window appear again.

Type "ladder" into the Filter field.

Двойным щелчком выбираем текстуру "tools/toolsinvisibleladder".

Tip.pngСовет:This is another of those special "tools" textures. This one marks the brush face as one that can be climbed in-game.
The ladder texture in the Face Edit Sheet.

You should see the LADDER texture now occupying the thumbnail in the Face Edit Sheet.

Applying the current texture to the selected face.

Now click the Apply Button and your selected face should change to the LADDER texture.

Selecting Tie to Entity from the Tools menu.

Exit the Texture application mode by closing the Face Edit Sheet dialog box.

Select the brush with the LADDER texture on the one face.

Go to the Tools menu and pick Tie to Entity.

Changing the func_detail to a func_ladder.

This will make the brush a brush entity(en). This changes the solid block of geometry we had before into a special brush that can have properties that can be changed to affect the game.

The default brush entity is a func_detail which we will talk about a little later.

We want to make this brush entity a func_ladder. Pull down the drop-down menu choices and select "func_ladder".

Then click on the Apply button to confirm the change and close the Object Properties dialog box.

Compile the level

The ladder in the game.

Now compile the level by pressing the F9 key and then clicking on the OK Button.

Note.pngПримечание:When the game launches, dismiss the "Map is unplayable!" dialog by pressing the Continue button. This is expected because we haven't created a navigation file for our level yet.

Your ladder look something like this in-game.

You should be able to move up to your ladder and move up it to climb up onto the ledge. If you can't, it's possible it was not created correctly. Try going back to Hammer, deleting your ladder and creating it again.


← [[ru/
L4D Level Design/Your First L4D Level|:L4D Level Design/Your First L4D Level]](en)