Area Portals?

Discussion in 'Mapping Questions & Discussion' started by Agentkid, Sep 10, 2009.

  1. Agentkid

    Agentkid L1: Registered

    Messages:
    45
    Positive Ratings:
    15
    I am working on my 3rd map and have a few questions about area portals
    This is what i think is correct
    The area portal, when it makes a room it has to be free of leaks
    You cant have two brushs tied to one func_areaportal
    The texture of the block has to be All areaportal

    My questions
    Can you have two seprate area portals put right next to each other (touching) and it work?
    Can area portals touch displacements and the skybox to seal an cp area (like one area of granary) off or do i need a normal block in the ground and sky to seal it off?
    Can area portals go throught walls and displacements without problems?
     
  2. strangemodule

    strangemodule L5: Dapper Member

    Messages:
    223
    Positive Ratings:
    59
    Areaportals are meant to seperate areas that are rendered, if I recall correctly. It hides what you can't/shouldn't be able to see anyway in order to optimize your map.

    As for how to do them:

    -I don't believe you can have two separate areaportals touch each other.
    -Displacements apparently don't count as brushes that an areaportal has to touch (learned this the hard way...).
    -Yes, areaportals can go through walls and stuff, as long as only 2 sides (and 2 sides only) are actually not touching anything.
     
    • Thanks Thanks x 1
  3. WastedMeerkat

    WastedMeerkat L3: Member

    Messages:
    144
    Positive Ratings:
    142
    Your questions:
    1. No.

    2. They can touch skyboxes, but displacements function like func_details, so you need to make a nodraw textured block under or around the placement and touch the areaportal to that to seal it off.

    3. They can go through displacements, but any walls they go through would have to still expose the front/back or top/bottom sides.
     
    • Thanks Thanks x 1
  4. Agentkid

    Agentkid L1: Registered

    Messages:
    45
    Positive Ratings:
    15
    Thank you
     
  5. jpr

    aa jpr

    Messages:
    1,095
    Positive Ratings:
    507
    1. Yes, I've tried. The compile log gives an error but it does still work
    2. Sky, yes, but not displacements
    3. Displacements and brush entities yes, normal walls no
     
  6. Psy

    aa Psy The Imp Queen

    Messages:
    1,705
    Positive Ratings:
    1,465
    You can have more then 1 brush tied to an areaportal. Also if you have two areaportals close to each other they merge together.
     
  7. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    Note that they can't cross the water surface. You need to slice it down the middle and have one above, one below.

    Also this odd note from the VDC.
     
    Last edited: Sep 11, 2009