Doors and approach triggers
Build a moving brush for each door leaf. Put the access rule on the brush the player actually touches.
Use a sliding or lifting door
Tie the door geometry to func_door. An unnamed door with ordinary flags and health 0 opens when a player or bot pushes into it. Set angle for its travel direction, speed in map units per second, lip for the width left in the opening, and wait for the open time in seconds. angle -1 moves up and -2 moves down. Set team_no on the door for restricted direct contact.
"classname" "func_door"
"angle" "90"
"speed" "100"
"lip" "4"
"wait" "3" Open two leaves together
Give both func_door brushes the same targetname and opposite travel angles. Place a trigger_multiple brush across the approach and give it the matching target. For a shared entry use team_no 0 on the trigger. Use 1 or 2 for a team entrance. Named doors receive the trigger’s signal. Keep ordinary flags so repeated approaches hold the doors open and the leaves close again after departure.
Left leaf
{ "classname" "func_door" "targetname" "inner_gate" "angle" "0" "wait" "3" }
Right leaf
{ "classname" "func_door" "targetname" "inner_gate" "angle" "180" "wait" "3" }
Approach brush
{ "classname" "trigger_multiple" "target" "inner_gate" "team_no" "2" "wait" "0.5" } Hinge a rotating door
Tie the leaf to func_door_rotating and place its compiled rotation origin on the hinge. The default axis is vertical. distance sets the swing angle in degrees and speed controls degrees per second. As with a sliding door, name it when a button or trigger should open it. Test the hinge from both sides in game.
"classname" "func_door_rotating"
"distance" "90"
"speed" "90"
"wait" "3" Open a door with Use
Place a func_button brush at hand height and point its target to the named door. Leave health at 0 and the touch-only flag off. A stationary button can use spawnflags 1. A button_target brush with spawnflags 1 is another supported Use receiver and sends an on/off state. A trigger_once fires when entered once, while trigger_multiple can fire again after its wait.