Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 65 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Tutorials

»
Left 4 Dead
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Adding Elevators
Versions: You must be logged in to view history.
In this tutorial I am going to show you how to add Elevators to your left 4 dead map

Left 4 Dead has a unique system for creating elevators that the survivors can ride up and/or down. The nav mesh needs to connect seamlessly throughout the level from where the survivors start to where they need to get. Therefore, the elevators need to connect nav mesh areas vertically.

The brush entity to use for an elevator is called a func_elevator. You can also use a prop that is parented to an invisible func_elevator or a prop with its own animations that with an invisible func_elevator.

An example of a func_elevator made purely from brushes can be found in tutorial_standards.vmf.

l4d_hammer_elevator_01_492

Create a brush or multiple brushes that you want to be the func_elevator.

Select them and press Ctrl+T to tie them into an entity. Select "func_elevator" from the drop down menu.

500pxl4d_hammer_elevator_02_500

Change the name to a unique name.

Change the 3rd number in the Bottom floor position to be below the Top floor position by any amount (this will help you move the helper nodes).

Set the Speed value.

In the Front or Side viewports, you can see the helper nodes that represent the Top and Bottom floor positions.

500pxl4d_hammer_elevator_06_500

Note: The elevator has been placed in its own user VisGroup. Click on the Auto tab in the VisGroups Box and uncheck Auto. Then, switch back to the User tab and check the Elevator box to just see the elevator and its related entities.

Move the Bottom floor position helper node by left-clicking inside the circle of the node and dragging down to where you want the elevator to descend to.

In order for you to be able to tell the elevator to go to a certain floor, you'll need to place info_elevator_floor entities.

Go to the Entity Creation Tool and select info_elevator_floor from the Objects drop-down menu.

Place 2 in the Camera viewport under the elevator.

In the Side or Front viewports move them so that one is where the Top floor position of the func_elevator is and one is where the Bottom floor position of the func_elevator is.

500pxl4d_hammer_elevator_03_500

Open the properties for the bottom one by pressing Alt+Enter. 

500pxl4d_hammer_elevator_04_500

Change the Name to "bottom".

Open the top one and change its name to "top".

Now, you'll need something to send an input to the func_elevator to tell it to move.

In the tutorial_standards map, I've used a func_button that the survivors can press.

500pxl4d_hammer_elevator_07_500

To create a func_button, create a brush and use Ctrl+T to tie it to an entity. Choose "func_button" from the drop down menu. 

500pxl4d_hammer_elevator_08_500

There are several properties that depend on how you want your button to work, but for now, simply leave them all as default but change the Name to "button".

Switch to the Flags tag in the Object Properties window and check the following boxes:

  • Don't move
  • Use Activates

500pxl4d_hammer_elevator_09_500

This means that the survivors can press it with +use and the button won't move when pressed.

Now switch to the Outputs tab.

Add an Output by clicking on the Add… button near the bottom of the window.

500pxl4d_hammer_elevator_10_500

Change the My output named field to "OnPressed".

Change the Target entities named field to "elevator_down_relay".

Change the Via this input field to "Trigger".

Now, we need to create the elevator_down_relay entity that will relay the messages we want sent when the button is pressed.

In the Entity Creation Tool, select "logic_relay" from the Objects drop-down field.

Place the logic_relay near the func_button.

Open its properties with Alt+Enter.

500pxl4d_hammer_elevator_11_500

Change the name to "elevator_down_relay" to match the output we are sending from the func_button.

Switch to the Outputs tab.

Add an output with the following fields:

500pxl4d_hammer_elevator_12_500

My output named: OnTrigger

Targets entities named: elevator

Via this input: MoveToFloor

With a parameter override of: bottom

After a delay in seconds of: 0

This will send the elevator down when the relay is triggered which we trigger when a survivor presses the button.

Depending on the setting for your elevator, you might need to tell the elevator to move to the other position. Look at the func_button on the func_elevator in tutorial_standards.vmf for an example.

Editing the nav for a func_elevator requires you to put the elevator in each position it can be in, placing a nav_mark_walkable on it and building incremental.

500pxl4d_nav_elevator_01_500

That's it for this tutorial hope it helps

Welshy / Valve

Source http://www.l4d.com/LevelDesignDocs.zip

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»