WiseDoor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
 
(14 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== Model Doors ==
{{DISPLAYTITLE:WiseDoor: Model Doors}}
{{SDKNuts Tutorials}}
{{wisemxport|[[User:Plykkegaard|Peter [AGHL]]] 20:35, 5 Feb 2008 PST}}
[[File:wiseDoor04.jpg|thumb|150px|right|A model of a door]]


There are other Door tutorials on this site</em>
==Introduction==
There are many ways to create a door in the {{src|4}} engine and it’s much easier now than it ever was.


==Creation==
The first thing to do is create a {{ent|prop_door_rotating}} and we’re going to use a HL2 door model for it. The door we are using has 14 skins, which means that with this same tutorial, you have 14 doors you can use. The door can also have a '''Lever''' or '''Pushbar''' style handle, which won't show in {{hammer|4}} (unless using {{hpp|4}}{{confirm}}) but will when you run the map.


* This door can be Flagged to be Oneway and Reverse direction:
[[File:wiseDoor01.jpg|thumb|250px|right|A {{ent|prop_door_rotating}}]]
[[wiseDoorBreak|Breakable door]]


* These doors can be made to move in directions:  
*'''World Model''': <code>models\props_c17\door01_left.mdl</code>
[[wiseSlidingDoor|Sliding doors]]
*'''Skin''': 4
*'''Hardware Type''': Lever
*'''Spawn Position''': Closed
*'''Rotation Degrees''': 95
*'''Speed''': 80
*'''Fully Open Sound''': Doors.FullOpen4
*'''Fully Closed Sound''': Doors.FullClose4
*'''Moving Sound''': Doors.Move3
*'''Delay Before Close''': 30
*'''Damage Inflicted when Blocked''': 10
*'''Health''': 0
*'''Locked Sound''': DoorHandles.Locked1
*'''Unlocked Sound''': DoorHandles.Unlocked1
*'''Force Closed''': Yes
*''Flag: Uses closes''
Experiment with these settings to fit your own needs, you may for example not want the door to close by itself.


* Directional door:
===Door Placement===
[[wiseOneWayDoor|One-way]]
There are a few ways to place your door, I find it easiest to put the door in place and then build the wall around it but that method doesn’t always fit the need.


In this example I’ve placed the <code>prop_door_rotating</code> and set the '''World model''' to the door model we are going to use, now I’ve placed it in the spot I want it and will create a few walls for this tutorial. If you do, you will probably want to create a door frame for most of your doors so allow enough space for the frame and the door, but for this example, it’s just a door and the walls.


[[image:wiseDoor04|thumb|150px|right|Caption]]
Once I've created the walls around the door and applied the texture to my walls, which only takes a few minutes, our door doesn’t look too bad. Granted it would be improved if I took the time to create a door frame before I built the walls. You’ll find the method that works best for your needs.


This is the fastest way to create a door in the Source engine and it’s much easier now than it ever was.
[[File:wiseDoor03.jpg|thumb|300px|right|It helps to experiment with the placement of this hinge, a little forward or back can make a big difference.]]
 
The first thing to do is create a [[prop_door_rotating]] and we’re going to use a HL2 door model for it. The door we are using has 14 skins, which means that with this same tutorial you have 14 doors you can use.
 
The door can also have a ''Lever'' or ''Pushbar'' style handle, which won't show in Hammer but will when you run the map.
 
 
prop_door_rotating
World Model: models/props_c17/door01_left.mdl
Skin: 4
Hardware Type: Lever
Spawn Position: Closed
Rotation Degrees: 95
Speed: 80
Fully Open Sound: Doors.FullOpen4
Fully Closed Sound: Doors.FullClose4
Moving Sound: Doors.Move3
Delay Before Close: 30
Damage Inflicted when Blocked: 10
Health: 0
Locked Sound: DoorHandles.Locked1
Unlocked Sound: DoorHandles.Unlocked1
Force Closed: Yes
 
Flag- Uses closes: Checked
 
Experiment with these settings to fit your own needs, you may not for example want the door to close by itself.
 
There’s a few ways to place your door, I find it easiest to put the door in place and then build the wall around it but that method obviously doesn’t always fit the need.
 
In this example I’ve placed the prop_door_rotating and set the World model to the door model we are going to use, now I’ve placed it in the spot I want it and will create a few walls for this tutorial. You will probably want to create a door frame for most of your doors so allow enough space for the frame and the door when you do, for this example it’s just the door and the walls.
 
I’m using the basic room from the Clipping tutorial for our door</em>.
 
 
[[image:wiseDoor01|thumb|150px|right|Caption]]
 
 
Once I create the walls around the door and apply the texture to my walls, which only took a few minutes, our door doesn’t look too bad. Granted it would be improved if I took the time to create a door frame before I build the walls. You’ll find the method that works best for your needs.
 
 
[[image:wiseDoor02|thumb|150px|right|Caption]]
 
 
The only thing left is to use the Helper tool to set the hinge for this door.
This is the part a lot of mappers are missing in Source but it’s really very easy.
 
# With the selection tool click on our door in the 3D view port to select it.
# Press Ctrl+E to center all the 2D views over our door.
# Now at the top of Hammer click on the little world looking icon “Toggle Helpers”, make sure it’s enabled.
# Move the white handles with your mouse until you have created the hinge joint for your door.
# Click to turn the Helpers back off. Only use them when you need too.
 
It helps to experiment with the placement of this hinge, a little forward or back can make a big difference.
 
 
[[image:wiseDoor03|thumb|150px|right|Caption]]


Here are the 14 doors
Here are the 14 doors
<gallery>
Image:wisepropdoors0000.jpg
Image:wisepropdoors0001.jpg
Image:wisepropdoors0002.jpg
Image:wisepropdoors0003.jpg
Image:wisepropdoors0004.jpg
</gallery>


[[image:wisepropdoors0000|thumb|150px|right|Caption]]
==See also==
 
*[http://type3studios.com/downloads/tutorials/SdkNutsTutorials/WiseDoor.zip Example VMF]
[[image:wisepropdoors0001|thumb|150px|right|Caption]]
*[https://cdn.discordapp.com/attachments/434089157875466242/461665001351151636/WiseDoor.zip Example VMF backup]
 
*[[WiseDoorBreak]]
[[image:wisepropdoors0002|thumb|150px|right|Caption]]
*[[WiseSlidingDoor]]
 
*[[WiseOneWayDoor]]
[[image:wisepropdoors0003|thumb|150px|right|Caption]]
[[Category:Level Design]]
 
[[image:wisepropdoors0004|thumb|150px|right|Caption]]
 
 
There’s a lot more you can do, I hope I’ve stimulated your imagination.
 
The example used in this tutorial.

Latest revision as of 08:48, 16 April 2024


This tutorial was originally created by wisemx. It was originally posted on SDKnuts.net.

A model of a door

Introduction

There are many ways to create a door in the Source Source engine and it’s much easier now than it ever was.

Creation

The first thing to do is create a prop_door_rotating and we’re going to use a HL2 door model for it. The door we are using has 14 skins, which means that with this same tutorial, you have 14 doors you can use. The door can also have a Lever or Pushbar style handle, which won't show in Hammer Hammer (unless using Hammer++ Hammer++[confirm]) but will when you run the map.

  • World Model: models\props_c17\door01_left.mdl
  • Skin: 4
  • Hardware Type: Lever
  • Spawn Position: Closed
  • Rotation Degrees: 95
  • Speed: 80
  • Fully Open Sound: Doors.FullOpen4
  • Fully Closed Sound: Doors.FullClose4
  • Moving Sound: Doors.Move3
  • Delay Before Close: 30
  • Damage Inflicted when Blocked: 10
  • Health: 0
  • Locked Sound: DoorHandles.Locked1
  • Unlocked Sound: DoorHandles.Unlocked1
  • Force Closed: Yes
  • Flag: Uses closes

Experiment with these settings to fit your own needs, you may for example not want the door to close by itself.

Door Placement

There are a few ways to place your door, I find it easiest to put the door in place and then build the wall around it but that method doesn’t always fit the need.

In this example I’ve placed the prop_door_rotating and set the World model to the door model we are going to use, now I’ve placed it in the spot I want it and will create a few walls for this tutorial. If you do, you will probably want to create a door frame for most of your doors so allow enough space for the frame and the door, but for this example, it’s just a door and the walls.

Once I've created the walls around the door and applied the texture to my walls, which only takes a few minutes, our door doesn’t look too bad. Granted it would be improved if I took the time to create a door frame before I built the walls. You’ll find the method that works best for your needs.

It helps to experiment with the placement of this hinge, a little forward or back can make a big difference.

Here are the 14 doors

See also