Attack & Defend CTF Prefab 1.0

Made by Icarus

  1. Icarus

    aa Icarus

    Messages:
    2,246
    Positive Ratings:
    1,182
    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
     
    • Thanks Thanks x 8
    Last edited: Apr 10, 2011
  2. The Political Gamer

    aa The Political Gamer

    Messages:
    4,468
    Positive Ratings:
    1,682
    To bad I am doing PLR. :/
     
    • Thanks Thanks x 1
  3. eerieone

    aa eerieone

    Messages:
    1,009
    Positive Ratings:
    569
    /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 :)
     
    • Thanks Thanks x 1
    Last edited: Jun 20, 2009
  4. StoneFrog

    StoneFrog L6: Sharp Member

    Messages:
    395
    Positive Ratings:
    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.
     
  5. Icarus

    aa Icarus

    Messages:
    2,246
    Positive Ratings:
    1,182
    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 Thanks x 1
  6. Hanz

    aa Hanz Ravin' Rabbid

    Messages:
    844
    Positive Ratings:
    466
    Thanks a lot, I will use this. :)
     
  7. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,531
    No, it's when the capture_area actually captures. Merely changing ownership of the CP won't do it.
     
  8. eerieone

    aa eerieone

    Messages:
    1,009
    Positive Ratings:
    569
    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:
     
    • Thanks Thanks x 1