Level Standards

From Valve Developer Community
Jump to: navigation, search
English (en)Русский (ru)中文 (zh)Translate (Translate)

There are other examples in the tutorial_standards level that most Left 4 Dead levels need.

Cubemaps

You will notice that there are these reflective spheres placed throughout the tutorial_standards level:

An env_cubemap entity.

Cubemaps are basically information that some materials need to render correctly. Mainly, any material that is reflective needs a cubemap. It's safe to place one env_cubemap entity in every room in a level.

Note.pngNote:To get the information for the cubemaps, they need to be built in the game. Load up your level in the game and type "buildcubemaps" and press the Enter key to build the cubemaps. This will change the bsp so make sure it isn't read-only.

Overlays

Overlays are sheets of materials that you can place on top of a brush. We used overlays to show dirt/trash/rugs on the ground, graffiti/signs on the walls, and door frames.

Let's start with an easy placement for one on the ground.

The room with the staircase has an example of trash on the ground.

A trash overlay on the floor.

To place an overlay, click on the Hammer ApplyOverlays.png Overlay Tool.

Click on the Browse button on the Texture box to select an overlay texture.

Type "decal" in the Filter Field and find the texture "decals/trashdecal01a"

One of the trash overlay textures.

Double-click on the texture in the browser to make it the current texture.

Point to the ground in the Camera viewport and left-click to place the overlay.

Placing an overlay on the floor.

Press Esc to go to the Selection Tool and you can move/rotate/scale the overlay similar to brushes.

Overlays have assigned brush faces. If you move an overlay to another brush, you will need to assign the brush that it is on top of to it.

Move the overlay to the hallway behind the door shown in the image above. You will notice that the texture does not appear anymore on the floor.

Moving the overlay to a different brush.

Now open its properties by pressing Alt+ Enter.

Click on the "Brush faces" row and click on the "Pick..." button on the right side.

Picking the new brush face in the info_overlay properties.

With the properties still open, left-click on the floor that the overlay is now on top of in the Camera viewport.

You should see a brush face number appear in the row that is different from the original.

Click on Apply and close the properties to see the overlay on the hallway floor.

Now, take a look at the door frame in the first room of the tutorial_standards map.

The doorframe overlay.

You will see an overlay that has multiple brush faces assigned to it. When you click on the Pick... button, you can assign multiple brush faces to have the overlay appear on top of each brush.

Creating an Infected-Only Ladder

An infected-only ladder.

Creating an Infected-only ladder is much the same as creating a ladder for everyone to use.

In Left 4 Dead, the convention is that infected can climb up gutters and pipes as if they are ladders where survivors can not.

The Face Edit Sheet with the tools/climb texture selected.

Start out making a brush with the Block Tool.

Texture the brush with the tools/toolsnodraw texture.

Then enter the Texture application mode and select the front face of the ladder.

Click on the Browse button in the Face Edit Sheet.

The tools/climb texture.

Select the texture tools/climb texture.

Double-click on the texture to make it the current texture in the Face Edit Sheet.

Click Apply to apply it to the front face and close the Face Edit Sheet.

Select the brush and use Ctrl+T to make it a brush entity.

Change it to a func_ladder in the Class drop-down list.

The nav generated from the infected-only ladder.

Press F9 to save, compile, and run your map in the game.

Switch to nav editing mode (Page_Down), point at the ladder with your cursor and use "nav_build_ladder" or press P in the default nav configuration.

Note.pngNote:Only the common Infected and the Tank can jump and climb up to a height of 180 units or less. Hunters can leap when they are spawned a great distance. However, Smokers, Boomers, and Hunters (that are in ghost mode) must use infected ladders or survivor ladders to get over some obstacles.