Check for buildings?

Discussion in 'Mapping Questions & Discussion' started by Beesafree, Jul 11, 2011.

  1. Beesafree

    Beesafree L1: Registered

    Messages:
    32
    Positive Ratings:
    3
    is there a way to see if part of a building (or all of it) is in a certain area?
    and by building i mean engies buildings....

    like a trigger
    or anything
     
  2. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,561
    For what purpose?

    If we knew why you need it, we could tell you how.

    There's no trigger who's purpose is for this, but there might be I/O commands that can interact with them under certain circumstances. A Boojum Snark will probably be the one to know 100% though.
     
    Last edited: Jul 11, 2011
  3. Beesafree

    Beesafree L1: Registered

    Messages:
    32
    Positive Ratings:
    3
    mmk
    im making a destroyable terrain (lag city/whatever/no gibs)
    i want buildings to be place-able (so engies aren't useless)
    although the obvious problem is that if the building is placed and the ground below is destroyed, we have a floating building

    so.....
    i want to check the place above the destroyable terrain for a building, and if there is a building:
    set hp to 500000/whatever of the block it's on, do this every minute or so (or have a logic controller)
    when building is destroyed set the terrains hp back to starting hp (i realize this causes the block to heal, not to big of a deal)

    ...
     
  4. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,906
    I don't know a super direct way, but you could do it by the follow: Whenver the terrain is destroyed, it enables a Nobuild for that area. When the terrain is set back up, it disables it. Not sure if that will work though.
     
    • Thanks Thanks x 1
  5. Beesafree

    Beesafree L1: Registered

    Messages:
    32
    Positive Ratings:
    3
    does nobuild destroy buildings already there, though?
    if not it doesnt matter....
    as the terrain in which they could build on would be gone, rendering nobuild useless

    i've thought of using this idea if another way didn't seem evident
     
    Last edited: Jul 11, 2011
  6. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,561
    The "payload" setup has a trigger_hurt on the front of the cart which affects engi buildings but not clients. So when the payload reaches a building it destroys it. Obviously the payload doesn't hurt players. You could look into implementing that. When the ground is destroyed it triggers the trigger_hurt and destroys all buildings within its volume.
     
    • Thanks Thanks x 1
  7. skinnynerd

    skinnynerd L2: Junior Member

    Messages:
    57
    Positive Ratings:
    10
    You could also take a look at this:

    http://forums.tf2maps.net/showthread.php?t=8862

    You can use the filters there with a trigger_hurt to destroy the buildings. If I could remember how it was done I'd explain it, but I don't and I'm too lazy to download it and check it out.
     
    • Thanks Thanks x 1
  8. Beesafree

    Beesafree L1: Registered

    Messages:
    32
    Positive Ratings:
    3
    hmmm
    that link helped a lot.....
    although my trigger isn't triggering it seems....

    hmmm, might just have to destroy buildings XD, have a "safe" area, for them to camp, since in arena maps, engies dont move much
     
  9. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    Either the trigger or the buildings must be in motion for them to interact. You'll have to parent your trigger to a door or something that moves 3 units or so when you want the destruction to occur. (Also, make sure you have the Everything flag checked on the trigger)
     
    • Thanks Thanks x 1
  10. Beesafree

    Beesafree L1: Registered

    Messages:
    32
    Positive Ratings:
    3
    that's .... interesting