This article relates to the game "Team Fortress 2". Click here for more information.
This article's documentation is for anything that uses the Source engine. Click here for more information.

Team Fortress 2/Your First Map: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(don't use lang on newly created pages, we've been moving away from it)
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:Your First Map}}{{TF2 topicon}}{{source topicon}}[[Category:Level Design]][[Category:Team Fortress 2|Basic]]
{{DISPLAYTITLE:Your First Map}}{{TF2 topicon}}{{source topicon}}[[Category:Level Design]][[Category:Team Fortress 2|Basic]]


In {{tf2|4}}, Players can play lot of community map, such as jump, dodgeball, mge, trading map, traning map, etc. Even if you are just vaguely trying to do map making, there will be a type of map you want to make. This document will cover common needs across various maps. Anyone running the Hammer editor for the first time is the intended audience for this document.
In {{tf2|4}}, Players can play lot of community map, such as jump, dodgeball, mge, trading map, traning map, etc. Even if you are just vaguely trying to do map making, there will be a type of map you want to make. This document will cover common needs across various maps. Anyone running the Hammer editor for the first time is the intended audience for this document. Whether you use hammer or hammer++, either is fine.


== Getting started ==
== Getting started ==
Line 7: Line 7:


== Create main stage and apply skybox ==
== Create main stage and apply skybox ==
Before dealing with this topic, We need to think about what sky is in source engine. Many source engine game users imagine a world is a flat platform and there is an open space above it. However, That is false! Source engine world is in a box. When players see a wallpaper with a picture of the sky on it, they think it's the sky. Now let's implement this. Let's create a cube-shaped world.
# With hitting {{key|Shift}}+{{key|B}} or selecting [[File:Hammer block.png]] "Block tool" in left tool bar.
# Now, left-click and drag in the '''Top''' 2D view in a movement that is ''Right'' and ''Downward'' as shown below.
# You should see a dotted outline of a rectangle or square as you drag.
# Create a square 512x512 units and let go of the left-mouse button. Please make the 512x512 square visible not only at '''Top''' but also at '''Right''' and '''Downward'''.
# Press {{key|Enter}} on your keyboard to create this brush that you've just drawn.
Now it's time to dig inside.
[[File:Hammer make hollow.png]]


== Make Respawn Room ==
== Make Respawn Room ==

Revision as of 08:51, 17 May 2024

In Team Fortress 2 Team Fortress 2, Players can play lot of community map, such as jump, dodgeball, mge, trading map, traning map, etc. Even if you are just vaguely trying to do map making, there will be a type of map you want to make. This document will cover common needs across various maps. Anyone running the Hammer editor for the first time is the intended audience for this document. Whether you use hammer or hammer++, either is fine.

Getting started

Hammer editor is built-in of tf2. Refer Getting Started and Run Hammer editor.

Create main stage and apply skybox

Before dealing with this topic, We need to think about what sky is in source engine. Many source engine game users imagine a world is a flat platform and there is an open space above it. However, That is false! Source engine world is in a box. When players see a wallpaper with a picture of the sky on it, they think it's the sky. Now let's implement this. Let's create a cube-shaped world.

  1. With hitting Shift+B or selecting Hammer block.png "Block tool" in left tool bar.
  2. Now, left-click and drag in the Top 2D view in a movement that is Right and Downward as shown below.
  3. You should see a dotted outline of a rectangle or square as you drag.
  4. Create a square 512x512 units and let go of the left-mouse button. Please make the 512x512 square visible not only at Top but also at Right and Downward.
  5. Press Enter on your keyboard to create this brush that you've just drawn.

Now it's time to dig inside.

Hammer make hollow.png


Make Respawn Room