Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Basic Door - Breakable Glass

From HalfLife 2 Knowledge Base

Jump to: navigation, search
  • By Madball

DESCRIPTION

  • The aim of this tutorial is to make a generic door for you map which has breakable glass in it. You must know some basics on how to create a room to complete this tutorial so if you have never created a room please go through the tutorial My First CS:S Room first and then move onto this tutorial.
==CONSTRUCTION==
Step 1
Enlarge
Step 1
  • Please follow the steps carefully to successfully complete the tutorial.


1) Start the Hammer Editor and select New map. Create a large room and then create a wall down the middle to split it up into two rooms. Make sure that the depth of the wall is about 6.




Step 2
Enlarge
Step 2

2) Now that you have your room we will start by creating a hole in the wall, which will be replaced with your door. Using the Block Tool size up a block that is about 56 Wide by 112 high and has the same depth as the wall that you created to split your main room into two.


Now that you have created the block move it in the wall and align it up so that it is at the same level as floor. With the block still selected right mouse click, which will bring up a list of options. From these options please select carve. This will carve a hole in the wall the size of the block that you created.



Steps 3 & 4
Enlarge
Steps 3 & 4

3) Using the existing block that you used to carve the hole resize the depth to 2. This will be used as the door and have the depth quite thin makes the door more real life looking.


4) With the door block still selected, assign a door texture to with which has glass on it.



Steps 5 & 6
Enlarge
Steps 5 & 6

5) Using the Block Tool again create another that is the same size of the glass in your door. Place the block so that you have it inside the glass part of the door and select Carve again. This will carve out the old glass from the door.


6) Using the existing block select it and apply the nodraw texture to it. The reason for this is because glass only needs one surface texture.



Step 7
Enlarge
Step 7

7) Now assign the glass/glasswindowbreak070 texture to one surface of the block.



Steps 8, 9 & 10
Enlarge
Steps 8, 9 & 10

8) Now select the door and Right Mouse Click, from the list of options select Tie to Entity and another dialog box appears. Type into the Class input box func_door_rotating and select apply.


9) Still with the Object Properties dialog box open select Name from the keyvalues list and called it door01 and select apply again and close the dialog box down.


10) You have now created an entity for the door. If you now deselect the door and using the Selection Tool drag the small blue ball that is inside the door to the edge of the door. The blue ball is the point of axis that it will pivot on.


Steps 11 & 12
Enlarge
Steps 11 & 12


11) Now that you have completed the door, Select the Glass and right mouse click and select tie to entity from the list of options. From the object properties list enter the class name func_breakable_surf.


12) With the object properties dialog box still open select the parent option from the keyvalues list and type in the name of the door which is door01 and select apply. Close the dialog box and save. Compile and run your map. There you have it a door that opens and closes and has breakable glass.

Personal tools