Help with control points

Flambe

L1: Registered
Dec 12, 2009
9
3
Currently I am trying to work on a varient of the control point gamemode. How it works isn't really important.

What I am trying to do is make it so once the point is captured the next is unlocked, simple. But if the point is then capped by the opposing team it is locked.

Example: Point 1 gets capped by blu and unlocks point 2 for both teams. Point 1 then gets capped by red. Point 1 gets disabled.

I need help trying to disable point 1 after 2 caps. Though I've "used" hammer for a while I'm still fairly new to more complex stuff.
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
The easiest method would be to use the SetLocked input to the team_control_point, it is a boolean input where the parameter 0 = unlocked and 1 = locked.
 

Flambe

L1: Registered
Dec 12, 2009
9
3
The easiest method would be to use the SetLocked input to the team_control_point, it is a boolean input where the parameter 0 = unlocked and 1 = locked.

So, if I did this output on my capture_area: OnCapTeam1; cp1 ;SetLocked;1
Where cp1 is my team_control_point.
It should disable the capture point for only team 1?
 

Flambe

L1: Registered
Dec 12, 2009
9
3
No, it would lock it for everyone which is what it seemed like you needed. If you want to do team-specific locking you'll need to use the SetTeamCanCap input.

What I want to do is have the point neutral to start. Then when a team caps the point, it can still be capped by the opposing team. When the opposing team caps it (if they want to cap it), the cap is disabled.

But I will have a look at what you've said as well.
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
Ah, ok. Make a math_counter and set it's max value to 2.
On your trigger_capture_area add OnEndCap > math_counter > Add > 1
Give the math_counter an OnHitMax > team_control_point > SetLocked > 1
That will lock it after it has been captured twice.
 

Flambe

L1: Registered
Dec 12, 2009
9
3
Ah, ok. Make a math_counter and set it's max value to 2.
On your trigger_capture_area add OnEndCap > math_counter > Add > 1
Give the math_counter an OnHitMax > team_control_point > SetLocked > 1
That will lock it after it has been captured twice.

I thought more entites may be involved. Thank you for the help!