Pick up the crowbar of research scientist Gordon Freeman, who finds himself on an alien-infested Earth being picked to the bone, its resources depleted, its populace dwindling. Freeman is thrust into the unenviable role of rescuing the world from the wrong he unleashed back at Black Mesa. And a lot of people, people he cares about, are counting on him.

Report article RSS Feed Hammer Beginners Tutorial Part 2

This tutorial is an addition to Beginners Tutorial Part 1. I suggest you follow that one first before doing this one. In this tutorial we will be covering, doors, windows, and skyboxes.

Posted by BeginnersMod on Nov 16th, 2008
Basic Mapping/Technical.

I am writing another tutorial to expand on the first tutorial I made about creating a room.

Ok so in this tutorial we will be giving our room:

  • A Window
  • A Door
  • and a skybox

Ok lets get started then. Were going to add the door first. Using the Block tool User Posted Image drag a brush that's 56 units wide 4 units thick and 112 units in height.

Your brush should look like this:

User Posted Image

With your brush selected, click the Toggle Texture Application tool User Posted Image

Click "Browse..." and in the filter type in "dev/dev_measuredoor01"

You will get an orange door texture this is so we can line up our brush and make the correct cuts to have a nice frame.

Click "Apply"

You might notice your texture is not aligned with the brush properly, this is an easy fix. Click the Toggle Texture Application tool User Posted Image again and just play around with the "Texture Shift" part of it until you got it right.

User Posted Image

Ok now we have the dev texture lined up we can start cutting out the frame. Select your door brush and select the Clipping tool User Posted Image

User Posted Image

Make sure your grid is on the smallest grip possible. Adjust it by pressing "[" or "]"

Now make a cut 4 units into the frame like seen above. Your brush has to be all white. If it has any red it will cut the piece off rather then just making a cut into it. For example see below.

User Posted Image

to get rid of that read press Shift+X until its gone and then press enter to make the cut.

Repeat this step on the other side of the brush and in the side view make a cut 4 units down from the top. Now we have a door frame. Using the Selection tool User Posted Image select the brush in the middle and delete it.

You should now have a door frame that looks like this:

User Posted Image

Select a wall on the room, you will notice the entire room gets selected we don't want that. Press ctrl+U (control+U) to ungroup it and now you should be able to select individual walls.

Ok now we need to make the cut on the wall for the door, using the Selection tool User Posted Image

Select the wall the frame is on, using the frame as a guideline make 2 cuts where the inside of the frame would be (See example below)

User Posted Image

ok now is the side view make a cut beside the cut you made for the frame (see below)

User Posted Image

Now, using the Selection tool User Posted Image select the middle brush again and delete it. Now you have a doorway.

User Posted Image

Select all three parts of your door frame. Hold shift and drag a new one and put on the other side of the wall.

User Posted Image

Make the outsides of each frame skinnier so that the door will fit properly. (See below for example)

User Posted Image

Connect the insides on the 2 frames so that there isn't a gap (See above)

Ok now we need to change the texture on this door. Select all parts of the door frames and click the Toggle Texture Application tool User Posted Image Click "Browse..." and you should in the filter search "door" find the door you want to use and double click it. Click "Apply" and your texture will now be on your frame. The texture I used was metal/metaldoor008a

Ok now we need a door to go in the frame. Using the Block tool User Posted Image drag a brush that's 48 units wide 4 units thick and 112 units in height. This should fit in the door frame perfectly. click the Toggle Texture Application tool User Posted Image and use the texture shift settings to line it up right. (see below for both examples)

User Posted Image

Ok now we need to make this door open able. So with your door selected go to "Tools>Tie to entity"

User Posted Image

the window above will appear (For some reason it is transparent when I take a SS but in editor it isn't)

Where it says "Class" change that to a "func_door_rotating" and click "Apply"

You will now get a blue sphere on your door and that is what we just created it allows the door to open.

User Posted Image

The blue sphere we created acts as a hinge. Wherever we put that sphere is where the door will rotate from, so n this case we want to put it on the opposite side on the handle. That will look like the picture below.

User Posted Image

Ok if we compiled right now our door would open and everything would work so lets move on to the window.

Ok using the using the Block tool User Posted Image drag a brush to whatever size you want your window to be. For my window I used 48 width 8 thickness and 40 height.

Using the Clipping tool User Posted Image cut a square out of the middle by making cuts 4 units away from each side.

User Posted Image

ok now select the piece in the middle and delete it.

Now we need to select the wall behind it and cut out the window opening like we did with the door

User Posted Image

Ok now delete the middle and you have a untextured window.

So we need to give this a texture. Select the Toggle Texture Application tool User Posted Image and click "Browse..." search wood in the filter and find one you like. (you can use any texture you want, go ahead and search concrete or tile and see what you can get looking good on your window)

Ok now we got a textured window. And we need to add a skybox.

Make a big box that goes over your whole map.

My box was 1200x1200x1200

Press ctrl+H to hollow, set it to -4 again.

Select the Toggle Texture Application tool User Posted Image and click "Browse..."

In the filter type in "tools/toolsskybox" apply this to the box and it should now be tiles blue texture.

User Posted Image

Compile map the same way we did it in part 1 and go ahead and run it. Thanks for reading this tutorial.

Post comment Comments
razorb
razorb Nov 17 2008, 9:25am says:

nice to see people doing these tutorials :) good job

+2 votes     reply to comment
holloweddarkness
holloweddarkness Nov 17 2008, 10:10am says:

i want to see optimization of a complex map. there isnt enough about it out there

+2 votes     reply to comment
Tyrantar
Tyrantar Nov 17 2008, 12:25pm replied:

See here: Student.ru.nl

+2 votes     reply to comment
Mrksmt9
Mrksmt9 Nov 17 2008, 12:07pm says:

Brilliant, look forward to your lighting and optimization tutorial

+2 votes     reply to comment
BeginnersMod
BeginnersMod Nov 17 2008, 3:16pm says:

Ya I def could do lighting next

+2 votes     reply to comment
General_Atrox
General_Atrox Nov 17 2008, 3:55pm says:

Great Stuff... the more tutorials the more great mods we can get out there ;)

+3 votes     reply to comment
canned
canned Nov 18 2008, 1:25am says:

I have always read that using the clipping tool is a bad idea, and in general, a sloppy way to map. It makes a mess out of simple geometry. I recommend just using simple brushes to make the doorway. Many experienced mappers believe that using simple brushes in addition to the Vertex Manipulation tool is the preferable method to using the Clipping tool.

+2 votes     reply to comment
IZaNaGI
IZaNaGI Nov 18 2008, 5:00am replied:

Depends on the mappers ability's. Skilled level designers that know how the engine works (optimisation wise) are able to use the clipping tool without a problem. It only becomes an issue if somebody who doesn't know anything about visleaves and the such, start clipping absolutely everything and generally not func_detailing odd shaped geometry.

Nice tutorials mate, should help a lot of people out!

+2 votes     reply to comment
slicksd
slicksd Jan 10 2009, 4:59pm says:

the door function does not work. help?

+2 votes     reply to comment
Dippeggs
Dippeggs Mar 5 2009, 6:49pm replied:

I too can't get the door to work

+2 votes     reply to comment
westsidazrhidaz
westsidazrhidaz May 6 2009, 4:16pm replied:

Developer.valvesoftware.com

you have to toggle show helpers to see the origin, then you may have to change the axis in flags section, or reverse dir may do the trick as well.

+2 votes     reply to comment
Stevic
Stevic Apr 14 2009, 1:02pm says:

Hi super BeginnersMod!
A rather short and simple tutorial.
I feel like that I've just dipped my big toe in the ocean, the first simple step to swimming with whales.
Thanks!

+2 votes     reply to comment
Aebonka
Aebonka May 20 2009, 11:41pm says:

I found the first part of this tutorial direct and informative, but I'm feeling like I have to guess what to do in this second part, especially when it says "Make the outsides of each frame skinnier so that the door will fit properly. (See below for example)"
and then the image and

"Connect the insides on the 2 frames so that there isn't a gap (See above)"

How do I connect these? Am I using the cutting tool for the first part on the side view? I'm not getting the same screenshots but the connect part was unexplained so I can't progress any further :[

+3 votes     reply to comment
ZaneLear
ZaneLear Jan 5 2010, 7:47pm says:

You need to work on your tuts some more man, this is kinda hard to understand, like how do I know where to cut and what windows ur in, like you should redo your guide/guides.

I like how you're trying to help out and etc but if I can't understand the door section then I will not understand the rest, I had to guess on how in your last guide to fix my textures since you said them either wrong and or never mentioned about the "Fit" button in some parts.

+2 votes     reply to comment
orex
orex Feb 9 2010, 5:10pm says:

I like this tutorial alot it helped me very much but here is something i figured out the hard way. For the door when you are making it a func_door_rotating go to flags and select open on use/touch or the door will not work.

+2 votes     reply to comment
Johny11fingers
Johny11fingers Mar 12 2010, 10:52am says:

Nice tutorial but i used the carve function to create a door frame. It's easier for me.

+2 votes     reply to comment
splater116
splater116 May 17 2010, 10:26am says:

when ever i create the door (the first step) and hit enter it just disapperes.... Help please? :)

+2 votes     reply to comment
JK4ever
JK4ever Sep 13 2010, 10:55am says:

Argh, now i did make my door open able :) by using "New func_door + USE rules" or "use open" in "flags". doesn't matter wich one thats doing it, but it works with both on :)

+3 votes     reply to comment
felixninja
felixninja Aug 19 2011, 7:12am says:

my door didn't work! nooooo!

+2 votes     reply to comment
Guest
Guest Jun 22 2014, 5:44pm says:

This comment is currently awaiting admin approval, join now to view.

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Half-Life 2
Platforms
Windows, PS3, X360, XBOX
Developer & Publisher
Valve
Engine
Source
Contact
Send Message
Official Page
Half-life2.com
Release Date
Released Nov 15, 2004
Game Watch
Track this game
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Games
Half-Life 2
Half-Life 2 Single & Multiplayer First Person Shooter
Related Engines
Source
Source Commercial Released Oct 31, 2004
Related Groups
Level Design Group
Level Design Group Hobbies & Interests group with 586 members
Valve
Valve Developer & Publisher