View Full Version : Attack & Defend CTF Prefab
Icarus
06-20-2009, 07:00 PM
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
The Political Gamer
06-20-2009, 09:12 PM
To bad I am doing PLR. :/
eerieone
06-20-2009, 09:30 PM
/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 :)
StoneFrog
06-20-2009, 09:31 PM
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
06-21-2009, 02:24 AM
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.
Thanks a lot, I will use this. :)
A Boojum Snark
06-21-2009, 09:06 AM
When the owner of the CP changes, everyone within the trigger_capture_area will be credited with points
No, it's when the capture_area actually captures. Merely changing ownership of the CP won't do it.
eerieone
06-21-2009, 09:10 AM
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:
vBulletin® v3.8.2, Copyright ©2000-2013, Jelsoft Enterprises Ltd.