<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE Resource SYSTEM "map-0.3.1-a.dtd">
    <Resource type="aamap" name="doors" version="0.0.1" author="ed" category="zones_v2">
        <Map version="2">
            <Settings>
                <Setting name="INCLUDE" value="examples/cvs_test/fortress_physics.cfg" />
                <Setting name="TEAMS_MAX" value="1" />
                <Setting name="SP_TEAMS_MAX" value="1" />
            </Settings>
            <World>
                <Field>
<Ownership>
<TeamOwnership teamId="blue" playerId="azure,cobalt,midnight,royal"/>
<TeamOwnership teamId="red" playerId="cerise,mauve,rust,sangria"/>
<TeamOwnership teamId="green" playerId="emerald,jade,lime,olive"/>
<TeamOwnership teamId="yellow" playerId="amber,goldenrod,lemon,navajowhite"/>
</Ownership>
                    <Spawn x="255" y="50" xdir="0" ydir="1" />
                    <Wall>
                        <Point x="0" y="0" />
                        <Point x="0" y="300" />
                        <Point x="100" y="300" />
                        <Point x="100" y="350" />
                        <Point x="0" y="350" />
                        <Point x="0" y="800" />
                        <Point x="500" y="800" />
                        <Point x="500" y="350" />
                        <Point x="400" y="350" />
                        <Point x="400" y="300" />
                        <Point x="500" y="300" />
                        <Point x="500" y="0" />
                        <Point x="0" y="0" />
                    </Wall>

<Zone name="left_door">
 <ShapePolygon scale="1.0" rotation="0;0">
  <Point x="100" y="350"/>
  <!-- 0x007fff azure -->
  <Color red="0.0" green="0.027" blue="1.0"/>
  <Point x="0" y="0"/>
  <Point x="0" y="-50"/>
  <Point x="150" y="-50"/>
  <Point x="150" y="0"/>
  <Point x="0" y="0"/>
 </ShapePolygon>
 <Enter>
  <EffectGroup owners="">
   <User user="all">
    <Target target="self">
     <Effect effect="death"/>
    </Target>
   </User>
  </EffectGroup>
 </Enter>
</Zone>

<Zone name="right_door">
 <ShapePolygon scale="1.0" rotation="0;0">
  <Point x="400" y="350"/>
  <!-- 0x007fff azure -->
  <Color red="0.0" green="0.027" blue="1.0"/>
  <Point x="0" y="0"/>
  <Point x="0" y="-50"/>
  <Point x="-150" y="-50"/>
  <Point x="-150" y="0"/>
  <Point x="0" y="0"/>
 </ShapePolygon>
 <Enter>
  <EffectGroup owners="">
   <User user="all">
    <Target target="self">
     <Effect effect="death"/>
    </Target>
   </User>
  </EffectGroup>
 </Enter>
</Zone>

   <Monitor name="moni_open_doors" init="0.0" drift="-0.3" low="0.0" high="1.0" >
     <InRange low="0.0" high="1.0" >
       <ZoneInfluence name="left_door">
         <Rotation rotationSpeed="0;0.5" />
       </ZoneInfluence>
       <ZoneInfluence name="right_door">
         <Rotation rotationSpeed="0;-0.5" />
       </ZoneInfluence>
     </InRange>
   </Monitor>

   <Monitor name="moni_fort_doors" init="0.0" drift="-0.3" low="0.0" high="1.0" >
     <InRange low="-0.1" high="1.1" >
       <ZoneInfluence name="fort_doors">
         <Rotation rotationSpeed="0;6.282" />
       </ZoneInfluence>
     </InRange>
     <OnOver value="0.8">
       <ZoneInfluence name="fort_doors">
         <!-- Danger -->
         <Color red="1.0" green="0" blue="0" />
       </ZoneInfluence >
     </OnOver>
     <OnUnder value="0.8">
       <ZoneInfluence name="fort_doors">
         <!-- Not as critical -->
         <Color red="0.0" green="0.027" blue="1.0" />
       </ZoneInfluence >
     </OnUnder> 
   </Monitor>

   <Zone name="fort_doors">
     <ShapeCircle scale="30" rotation="0;0.3">
       <Point x="250" y="150" />
       <Color red="0.0" green="0.027" blue="1.0" />
     </ShapeCircle>
     <Inside>
       <EffectGroup owners="">
         <User user="all">
           <MonitorInfluence name="moni_open_doors" influenceSlide="0.5" marked="true"/>
           <MonitorInfluence name="moni_fort_doors" influenceSlide="0.5" marked="true"/>
         </User>
       </EffectGroup>
     </Inside>
   </Zone>

                </Field>
            </World>
        </Map>
    </Resource>
