Team Fortress 2/Creating a Spawnroom

From Valve Developer Community
Jump to navigation Jump to search

Creating your room

A simple room.

First of all, you should have an area which you consider the spawnroom. This may be of any shape, color, and size. For this example, the room you see on the right will be transformed into a spawnroom for the RED team.

Making it a respawn room

Fill the room with func_respawnroom.

Create a func_respawnroom brush-based entity with material tools/toolstrigger that fills your area. Name it something like red_respawn_room_01 and set its team to RED. Name it accordingly due to how many spawn rooms you may have for the same team.

Bring the players inside

Now add 12 to 16 spaced out player spawns to your room.

Now you need to add the player spawns. Create an info_player_teamspawn in your room. Change the spawn's team to RED. Make 11 to 15 copies of the player spawn entity, giving each of them plenty of space. Give your Info_player_teamspawn entity's all the same name. In example Team_red_player_01. This naming system can later help also with which entity spawns in what spawnroom.

Respawn and resupply

Add a resupply somewhere obvious.

It may be a good to have a resupply area inside your respawn. A resupply consists of 2 things: a prop_dynamic, representing the resupply locker, and a func_regenerate, which gives it functionality. Create a prop_dynamic somewhere in the room, set its model to models/props_gameplay/resupply_locker.mdl, and give it a name resup1. Now create a func_regenerate brush-based entity with material tools/toolstrigger, making sure it occupies a larger area around the prop. However note that you might need to make the volume a certain size that way it does not create exploits in anyway. Set its Associated Model to the name of the dynamic prop its and Team to RED.

Keeping the bullies out

Access denied.

Some players like to camp in spawn rooms, spawn-killing players. There, however, is an easy solution. Create a func_respawnroomvisualizer brush-based entity with material tools/nodraw. Assign material overlay/no_entry to the side that faces away from the spawn area. Be sure to set its Associated Respawn Room accordingly. This will block only the opposite Team Players.

Making a Door

The next step is to make a door that will seal off (non-vis) the room from most fire and allow it privacy for the team. First things first. Place a prop_dynamic down and give it the model:

  • models/props_gameplay/door_slide_large_door.mdl
Note.pngNote:There is also a lot of other available door models to be used. You can choose whatever you would like, but for not the tutorial uses this main model.Also note that the door does not require a name for now, However you can name it if you wish.

The next step is to create a func_door entity. The best thing to do is shape and size the brush to the exact size and width of the model door. Name it to something that helps with the current naming system depending on the number of rooms you are going to make. For example: Door_red_spawnroom_01.

Things you will have to change individually:

  • Speed: changing this will effect how fast the door will open and close. Most times this can be set to 400 for a fast moving door that allows for quick entrances and fast exits. Any lower and the door will close and open at a slower rate.
  • Delay Before reset: This value will effect how long it takes for the door to close once it has been opened. A default would be 4 seconds.
  • Lip: Mainly for effect you can change this that way a bit of the door itself will be slightly sticking out. For this tutorial the value is 3. Each Digit represents a unit.
  • Move direction: This is the final thing to edit and the most important. Doors open upwards, however you can change this if you would like. the move direction though, should be set to Up.

Now reselect the door prop, and parent it to the Func_door you have just created.


The final thing to do is to make a trigger_multiple volume that will tell the door when to open and close. The trigger should be large to accommodate player size and for the door to allow its open state before the player fully reaches it.

Now its time to edit the inputs/outputs tab. Your inputs and outputs should look like this.

Door outputs tf.JPG

The Main problem however is that some of the new output commands do not yet exist in the current SDK. However the game itself will still recognize these commands, and execute them properly.

Thats it! You just made a spawn room. Yet dont forget about lighting and even good placement in your maps. Most maps in TF2 only have three to two Rooms.