Welcome to another one of my Mapping tutorials. In this tutorial, I will be teachin you how to create those simple boarded doors which are locked until you break the boards with a weapon.
Lets get Started!
- Start off by opening up your map, or just whipping up a small one for this tutorial
- Using the brush tool, create a quick and simple wall with a doorway using the clipping tool. If you don’t know how to use the clippingtool, consider reading this Tutorial.
- Now, place a prop_door_rotating entity within the doorway, and select a door model. For this tutorial, I’m usingmodels/props_doors/door01_dynamic.mdlNow give it a name, I called mine door_01. Also, head over the the Flags tab, and make sure Starts Locked is checked.
- Now, create a simple brush which will serve as one of the wooden boards, and apply a wooden texture to it. I’ll be using the texturewood/woodfloor006b
- Now, duplicate the board and edit the size of it, and the angles, just so it doesn’t look too repetetive. I have a total of 7 boardsblocking my door. (You’ll see why later)
- Now, tie each of the boards, seperatly to func_breakable with the following settings:
- Strength: 5
- Material Type: Wood
- Now, using the entity tool (Shift+E) place the entity math_counter within your map. Open up its properties menu and giveit a name. I’ve called mine counter_01
- The only other option you should change, is the Maximum Legal Value. For this, you put the number of boards that you haveblocking your door. Since I have 7 boards, my maximum legal value has to be 7.
- Now go to the Outputs Tab and add an Output with the following:
- My Output Named: OnHitMax
- Target Entities Named: door_01
- Via This Output: Unlock
- Now, select all of the boards you have, open up the properties menu and head over to the Outputs tab and add the followingoutput:
- My Output Named: OnBreak
- Target Entities Named: counter_01 (Or whatever you named your math_counter)
- Via This Input: Add
- WIth a Parameter Override of: 1
This will make it so that, for each borad you break, it adds +1 to the math_counter. Since there are 7 boards, once you break them all, it adds +7 to the counter, which s the maximum. Once it hits the maximum, the counter will fire an output to the door to unlock it, allowing you to open it.
You’re done! The last thing to do is add in a spawn point, and a weapon, and go test out your new door.
Thank you for reading my tutorial, if you have any questions, please do not hesitate to PM me or leave a comment.















