Forward Spawn Spawn Doors

WombatSauce

L3: Member
Dec 22, 2015
115
5
Hi guys! On my map cp map, cp_UrbanLegend (close to a1!), I'm having problems with locking forward spawn spawn doors. My forward spawn is near mid, and I don't want players to be able to enter it during the mid fight for full health, but I don't know how to lock it. Can someone tell me?
 

Moonrat

nothing left
aa
Jul 30, 2014
932
585
Send a lock input when a point is captured. If you're doing a 5CP map, just use an ABS prefab instead, as they come with doors that lock.
 

WombatSauce

L3: Member
Dec 22, 2015
115
5
No I mean spawn doors, but moonrat said that they were in abs prefab, and the only thing that sounded like what i was asking for were was the stage doors.
 

radarhead

Basically? Kind of a Huge Mess
aa
Mar 6, 2013
1,045
625
Send a lock input when a point is captured. If you're doing a 5CP map, just use an ABS prefab instead, as they come with doors that lock.
It's best to learn how these things work before slapping down premade versions.

You could look at the logic associated with the ABS Pack's doors, or search the Valve Developer Wiki for entity documentation. (I believe what you want is to send a "disable" input to the associated trigger when the corresponding point is capped by the other team, and "enable" when it is capped by the spawn's team.)
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
Going with the assumption that you're making a 5CP map.

You're looking for standard shutter doors with the trigger only on the inside like Mikroscopic said - no locking or disabling required. That's how every other 5CP map does one-way doors on its forward spawns (and with the exception of Badlands second, none of them have resupply lockers either, because they're useless if you can't get back in).

Now if I'm mistaken, and you want to allow players to re-enter forward spawns at specific times during the round, be careful about locking the door or disabling its trigger. You don't want to accidentally trap players inside.