Attack & Defend CTF Prefab

Attack & Defend CTF Prefab 1.0

Icarus

aa
Sep 10, 2008
2,245
1,210
NOTE FROM THE FUTURE: This prefab is more or less obsolete, as Valve has since added more support for this game mode.

I've been getting lots of questions regarding how I did things in Vector, I've put together this prefab to help others.

http://forums.tf2maps.net/downloads.php?do=file&id=1713

Includes:
-Fully working Attack/Defend entity setup
-Security Alert system
-Command Point Print names
-Players are awarded Capture points
-Fixed return timer display
-Custom announcements
 
Last edited:
Aug 19, 2008
1,011
1,158
/giant bump
/giant thanks

and sorry for another question
since i have everything already set up
which thingy is responsible for rewarding properly for the cap?
which thingy is responsible for the command point print?
i just cant find it :/


this setup is gonna be a huge help in the contest, thx for sharing :)
 
Last edited:

StoneFrog

L6: Sharp Member
May 28, 2008
395
81
I'm just going to give a heads up here. The way the announcer's phrases are accessed (in ALL gametypes, including "Invade" which is the system for CTF A/D maps if you're using Youme's prefab) is hard-coded into the game, or at least in some .txt file somewhere.

Basically, you can rename Icarus' sound clips and change the "attack_defend_" prefix to "invade_" if you want them to function in your map if you're using Youme's prefab. Of course there are a ton of great unused announcer sound clips in the GCF that I urge all contestants to take a look through.
 

Icarus

aa
Sep 10, 2008
2,245
1,210
and sorry for another question
since i have everything already set up
which thingy is responsible for rewarding properly for the cap?
which thingy is responsible for the command point print?
i just cant find it :/

It's actually super-simple.

Just surround the CP with a trigger_capture_area with a cap time of 99999 seconds. Set it so only BLU can capture. When the owner of the CP changes, everyone within the trigger_capture_area will be credited with points, and their names will be shown in the corner along with the CP's Print Name. Just make sure the trigger_capture_area is larger than the actual capture zone.
 

Hanz

Ravin' Rabbid
aa
Jan 18, 2009
844
479
Thanks a lot, I will use this. :)
 
Aug 19, 2008
1,011
1,158
i had a look at it and saw the CaptureCurrentCP output, and it works fine

and i /facepalm myself for asking the question in the first place, because the trigger is right there, clearly visible etc. , but i just overlooked it entirely :blushing: