2 flags, one CP?

Snoodleking

L1: Registered
Oct 21, 2010
6
1
I'm currently working on a new map and have very little scripting skills. I came up with an idea to have 2 flags (briefcases) and a CP point that is located on the opposite side of the map.

Essentially it would work like this: The only team allowed to cap is the one that controls the capture point.

Would this be possible?

The setup would require doors that always allow one team through, but only the other team through if they controlled the point.

I imagine this would be relatively simple to set up, but wanted to check to make sure it was possible before I wasted hours setting up the map.

Thanks!
 

re1wind

aa
Aug 12, 2009
644
588
another way is to have two trigger_mult around the door area, one for blu team, one for red team. they're initially disabled, but the appropriate trigger gets enabled when the appropriate team captures the point.

i.e. red captures the point. -> trigger_red is enabled -> door works for red team only. blu team trigger still disabled, blu team can't use the door that red team can.
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
I have something like this working in ctf_spring. Certain doors in a base are forced open when the point is held by the opposing team, while other doors only open for team members.

The main problem (partly solved) is that in order to have the CTF arrows-to-briefcase HUD as well as the control-point HUD... you don't have the "number of captures" anymore. (The kind where it takes three captures to end the round.)

Had to work around that with drawing text on the screen, but it's much uglier than a "real" way.
 
Last edited:

Snoodleking

L1: Registered
Oct 21, 2010
6
1
Cool, thanks for the suggestions!

I'll download Spring and see what I can glean from that. Bummer to hear about the HUD issue, that didn't even occur to me, but it's a good point!

Thanks again!
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
IIRC that last-uploaded version doesn't have the number-of-caps display logic, though, but I have a VMF that does it somewhere here.
 

Snoodleking

L1: Registered
Oct 21, 2010
6
1
Terr, maybe I'm being a noob here, but I searched this site (and others) and can't find your spring map anywhere. How can I get my hands on it!?

Thanks again!
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
Should be here. Maybe I should make some sort of prefab-ish thing with just the entities...