Opening doors on control point unlock (KOTH)

therealflyguy

L1: Registered
Jun 14, 2020
8
0
On a koth map I'm making, I want to have two large blast doors near either spawn open when the control point enables. I already have the brush set as a func_door, but I see no option for it to start disabled. Any ideas?
 

Da Spud Lord

Occasionally I make maps
aa
Mar 23, 2017
1,339
994
Doors cannot be disabled or enabled, they are opened and closed. There is a Start Position open, which can be used to make the door start in its open position. (The door's position in Hammer is always considered the closed position.)

If you mean you want to enable/disable the door automatically opening/closing when a player approaches, you need to enable/disable the trigger surrounding the door, not the door itself.
 

therealflyguy

L1: Registered
Jun 14, 2020
8
0
I don't want to open/close it with a trigger when players enter. The idea of these doors is for them to automatically open when the control point is unlocked, stay open, and then close on round end.
 

ArskaWarrior

L1: Registered
May 31, 2016
31
8
You have the entity that enables/unlocks the control point. You have to tell it to open the door that you want open. The door it self must have "Delay Before Reset" set to -1 so it doesn't close. If I remember right it should reset at start of every round

From VDC wiki of func_door
Delay Before Reset (wait) <float>
Time until the door returns to the closed position. A value of -1 means the door never auto-closes.
 

MOCOLONI

L6: Sharp Member
Dec 16, 2014
373
89
Head to the Control Point's outputs and add these:
Code:
Output: OnUnlocked
Target: your doors
Input: Open


Then, add the following to either team_control_point_master or tf_gamerules:
Code:
Output: OnWonByTeam1 (and/or '2')
Target: your doors
Input: Close
 

therealflyguy

L1: Registered
Jun 14, 2020
8
0
You have the entity that enables/unlocks the control point. You have to tell it to open the door that you want open. The door it self must have "Delay Before Reset" set to -1 so it doesn't close. If I remember right it should reset at start of every round

From VDC wiki of func_door
Delay Before Reset (wait) <float>
Time until the door returns to the closed position. A value of -1 means the door never auto-closes.
Delay before reset is set to -1 already.

Head to the Control Point's outputs and add these:
Code:
Output: OnUnlocked
Target: your doors
Input: Open


Then, add the following to either team_control_point_master or tf_gamerules:
Code:
Output: OnWonByTeam1 (and/or '2')
Target: your doors
Input: Close
For whatever reason the OnWonByTeam output works fine, but the OnUnlocked output doesn't. If it helps matters, I copied my control point from Harvest. Setting the OnUnlocked output just makes the doors open at the start of each round even though the point is locked.
 

Tiftid

the Embodiment of Scarlet Devil
aa
Sep 10, 2016
602
465
Well, it doesn't matter whether the OnUnlocked output works properly or not, since you can just use an OnMultiNewRound output from the tf_gamerules with a delay equal to the time that it takes the point to unlock instead.