#
# DO NOT MODIFY THIS FILE !
#
# We Want War - Level Description File
# Level 2 - Through the Warehouse
#
<wewantwar_level>

    <general_information>
        mapfile: maps/level_2.fmp
        weather: 0
        music: snd/music/music2.mp3
        timebonus: 16000
    </general_information>


    #
    # Create the player
    #
    <player>
        pos: 3 4
        angle: 64
        id: 1
    </player>



    #
    # Define the tilesequences we use when animating the opening/closing
    # of the doors.
    #
    <doors>
        <small_v_door>
            <upper_half> 141 142 143 144 145 </upper_half>
            <lower_half> 146 147 148 149 150 </lower_half>
        </small_v_door>

        <small_h_door>
            <left_half> 151 152 153 154 155 </left_half>
            <right_half> 156 157 158 159 160 </right_half>
        </small_h_door>
    </doors>


    #
    # This level has one objective
    #
    <objective>
        <message> GO THROUGH THE WAREHOUSE </message>
        
        <finishing_conditions>
            <countdown>
                status: off
            </countdown>
            
            <player_inside>
                status: on
                rect: 95 89 98 94
            </player_inside>
            
            <area_clear>
                status: off
            </area_clear>
            
            <killed_id>
                status: off
            </killed_id>
        </finishing_conditions>
        

        #
        # These objects are created as we start the level.
        #
        <event>
            tl: 0 0
            br: 100 100
            <spawn>
                <corpse> pos: 17 5 </corpse>
                <corpse> pos: 23 14 </corpse>
                <corpse> pos: 58 16 </corpse>
                <corpse> pos: 53 14 </corpse>
                <corpse> pos: 43 15 </corpse>
                <corpse> pos: 56 18 </corpse>
                <corpse> pos: 45 32 </corpse>
                <corpse> pos: 51 38 </corpse>
                <corpse> pos: 34 51 </corpse>
                <corpse> pos: 51 51 </corpse>
                
                <corpse> pos: 59 64 </corpse>
                <corpse> pos: 52 64 </corpse>
                <corpse> pos: 72 69 </corpse>
                <corpse> pos: 86 69 </corpse>
                <corpse> pos: 85 79 </corpse>
                <corpse> pos: 87 81 </corpse>
                <corpse> pos: 90 89 </corpse>
        
                <sentrygun>
                    t: 0 pos: 30 11 angle: 192 offset: 0 -5
                </sentrygun>
                <sentrygun>
                    t: 0 pos: 63 16 angle: 128
                </sentrygun>
                <sentrygun>
                    t: 0 pos: 52 55 angle: 64
                </sentrygun>
                
                <bonusitem> t: firstaid pos: 50 73 </bonusitem>
                <bonusitem> t: shotgun pos: 51 73 </bonusitem>
                <bonusitem> t: shotgun pos: 53 73 </bonusitem>
                <bonusitem> t: rifle pos: 44 6 </bonusitem> # bathroom 1
                # Toilet in electric corridor
                <bonusitem> t: firstaid pos: 28 55 offset: 16 5 </bonusitem>

                # The secret room to the right
                <bonusitem> t: firstaid pos: 87 33 </bonusitem>
                <bonusitem> t: rifle pos: 94 36 </bonusitem>
                <bonusitem> t: rifle pos: 94 38 </bonusitem>
                <alien> t: carnivore pos: 91 33 </alien>
                <alien> t: carnivore pos: 91 34 </alien>
                <alien> t: carnivore pos: 91 35 </alien>
                <alien> t: carnivore pos: 91 36 </alien>
                <alien> t: smallworm pos: 91 33 </alien>
                <alien> t: smallworm pos: 91 34 </alien>
                <alien> t: winged pos: 91 33 </alien>
                <alien> t: winged pos: 91 34 </alien>
                <alien> t: winged pos: 91 34 </alien>

                #
                # Score bonuses
                #
                # First room
                <bonusitem> t: 100pts pos: 21 19 </bonusitem>
                <bonusitem> t: 100pts pos: 22 19 </bonusitem>
                <bonusitem> t: 100pts pos: 23 19 </bonusitem>
                # Bathroom in "bird" room
                <bonusitem> t: 200pts pos: 44 4 </bonusitem>
                <bonusitem> t: 100pts pos: 44 5 </bonusitem>
                # Big room with lots of aliens
                <bonusitem> t: 100pts pos: 33 40 </bonusitem>
                <bonusitem> t: 100pts pos: 34 40 </bonusitem>
                <bonusitem> t: 100pts pos: 34 40 </bonusitem>
                <bonusitem> t: 200pts pos: 55 41 </bonusitem>
                # The "secret room" inside the Big room
                <bonusitem> t: 200pts pos: 56 26 </bonusitem>
                <bonusitem> t: 200pts pos: 58 26 </bonusitem>
                <bonusitem> t: 100pts pos: 56 28 </bonusitem>
                <bonusitem> t: sniperrifle pos: 60 28 </bonusitem>
                # The "secret room" to the right
                <bonusitem> t: 100pts pos: 87 43 </bonusitem>
                <bonusitem> t: 100pts pos: 87 44 </bonusitem>
                <bonusitem> t: 200pts pos: 87 45 </bonusitem>
                <bonusitem> t: 200pts pos: 94 43 </bonusitem>
                <bonusitem> t: 100pts pos: 88 37 </bonusitem>
                <bonusitem> t: 100pts pos: 88 39 </bonusitem>
                
                #
                # Decorative objects
                #
                <decorative> t: monitor pos: 50 19 angle: 64 offset: 16 0 </decorative>
                <decorative> t: microwave pos: 40 18 angle: 192 offset: 20 0 </decorative>
                <decorative> t: monitor pos: 50 46 angle: 140 offset: 16 16 </decorative>
                <decorative> t: laptop pos: 57 46 angle: 110 offset: 24 14 </decorative>
                <decorative> t: chair1 pos: 58 45 angle: 160 </decorative>
                <decorative> t: chair1 pos: 51 45 angle: 100 </decorative>
                # The conference room
                <decorative> t: chair2 pos: 52 63 offset: 16 20 angle: 10 </decorative>
                <decorative> t: chair2 pos: 54 63 offset: 10 24 angle: 230 </decorative>
                <decorative> t: chair2 pos: 56 63 offset: 26 18 </decorative>
                <decorative> t: chair2 pos: 59 61 offset: 24 20 angle: 160 </decorative>
                <decorative> t: chair2 pos: 52 59 offset: 6 2 angle: 130 </decorative>
                <decorative> t: chair2 pos: 54 59 offset: 16 6 angle: 100 </decorative>
                <decorative> t: chair2 pos: 56 59 offset: 20 0 angle: 120 </decorative>
                <decorative> t: television pos: 52 61 offset: 28 16 angle: 196 </decorative>
                
                #
                # Barrels
                #
                <barrel> t: 0 pos: 28 30 </barrel>
                <barrel> t: 0 pos: 29 30 </barrel>
                <barrel> t: 0 pos: 30 30 </barrel>
                <barrel> t: 0 pos: 28 31 </barrel>
                <barrel> t: 0 pos: 29 31 </barrel>
                <barrel> t: 0 pos: 30 31 </barrel>
                <barrel> t: 0 pos: 28 32 </barrel>
                <barrel> t: 0 pos: 29 32 </barrel>
                <barrel> t: 0 pos: 30 32 </barrel>
                
                <barrel> t: 0 pos: 74 44 offset: 16 16 </barrel>
                <barrel> t: 0 pos: 75 44 offset: 16 16 </barrel>
                <barrel> t: 0 pos: 74 45 offset: 16 16 </barrel>
                <barrel> t: 0 pos: 75 45 offset: 16 16 </barrel>
                
                #
                # The electric sparks in the narrow corridor
                #
                <lightfence>  t: electric
                              node1: 34 50 0 0
                              node2: 34 52 0 0
                              sequence: 1 80
                                        0 10
                                        1 40
                                        0 5
                                        1 65
                                        0 50 * </lightfence>
                <lightfence>  t: electric
                              node1: 36 50 0 0
                              node2: 36 52 0 0
                              sequence: 1 40
                                        0 10
                                        1 40
                                        0 10
                                        1 40
                                        0 10
                                        1 50
                                        0 50 *
                </lightfence>
                <lightfence>  t: electric
                              node1: 38 50 0 0
                              node2: 38 52 0 0
                              sequence: 1 90
                                        0 10
                                        1 50
                                        0 10
                                        1 40
                                        0 50 *
                </lightfence>
                
                
                #
                # Teleporters
                #
                # From the corridor to the secret room
                <teleporter>
                  rect: 42 72 43 73
                  dest: 87 50 128
                </teleporter>
                
                # From the secret room back to the corridor
                <teleporter>
                  rect: 87 48 88 49
                  dest: 44 72 64
                </teleporter>
            </spawn>
            
            #
            # And when playing with hard difficulty level, we create these
            # aliens as well.
            #
            <spawn>
              difficulty: hard
              # Near the elevator
              <alien> t: carnivore pos: 10 3 offset: 16 16 angle: 64 flags: 1 </alien>
              <alien> t: carnivore pos: 22 21 offset: 16 20 angle: 140 flags: 1 </alien>
              # The bird room
              <alien> t: winged pos: 51 15 </alien>
              <alien> t: winged pos: 52 15 </alien>
              # First big room with lots of aliens
              <alien> t: proctor pos: 45 25 offset: 16 18 angle: 140 </alien>
              # The secret room
              <alien> t: proctor pos: 57 27 angle: 192 </alien>
              # The vertical rooms full of aliens
              <alien> t: carnivore pos: 66 40 </alien>
              <alien> t: winged pos: 66 40 </alien>
              <alien> t: predator pos: 70 40 </alien>
              <alien> t: predator pos: 70 41 </alien>
              <sentrygun> t: 0 pos: 67 48 angle: 160 </sentrygun>
              <alien> t: carnivore pos: 80 40 </alien>
              <alien> t: carnivore pos: 81 40 </alien>
              # The dark room with weapons
              <alien> t: mediumworm pos: 80 55 </alien>
              # The last room before level exit
              <alien> t: mediumworm pos: 86 73 </alien>
              <alien> t: mediumworm pos: 86 72 </alien>
              <alien> t: smallworm pos: 86 71 </alien>
              <alien> t: carnivore pos: 85 81 angle: 20 flags: 1 </alien>
              <alien> t: carnivore pos: 79 81 angle: 100 flags: 1 </alien>
              <sentrygun> t: 0 pos: 92 83 angle: 128 </sentrygun>
              #
              # And some more bonuses
              #
              <bonusitem> t: rifle pos: 63 49 offset: 0 10 </bonusitem>
            </spawn>
        </event>

        #
        # At the very begining of the level there are 3 boxes filled with
        # aliens that come out as player picks up the shotgun.
        #
        <event>
            tl: 17 7
            br: 19 11
    
            <spawn>
                sound: 1
                <alien> t: carnivore pos: 15 6 </alien>
                <alien> t: carnivore pos: 16 14 </alien>
                <alien> t: carnivore pos: 24 11 </alien>
            </spawn>
    
            <modify>
                at: 14 5 set: 165
                at: 15 5 set: 166
                at: 14 6 set: 167
                at: 15 6 set: 168
        
                at: 15 13 set: 165
                at: 16 13 set: 166
                at: 15 14 set: 167
                at: 16 14 set: 168
        
                at: 23 10 set: 165
                at: 24 10 set: 166
                at: 23 11 set: 167
                at: 24 11 set: 168
            </modify>
        </event>

        #
        # The "bird" room
        #
        <event>
          tl: 44 2
          br: 45 7
          <spawn> sound: 30 <animation> uid: 301 pos: 48 4 offset: 16 16 dir: -2 0 </animation> </spawn>
          <modify> at: 48 4 set: 352 </modify>
          <spawn> delay: 30 <alien> t: carnivore pos: 48 4 offset: 16 16 angle: 192 </alien> </spawn>
          <spawn> delay: 60 <alien> t: carnivore pos: 48 4 offset: 16 16 angle: 192 </alien> </spawn>
          <spawn> delay: 180 <alien> t: carnivore pos: 48 4 offset: 16 16 angle: 192 </alien> </spawn>
        </event>

        #
        # The first room with lot of aliens. There is also a box where
        # an alien comes out.
        #
        <event>
            tl: 29 47
            br: 32 48
    
            <spawn>
                sound: 1
                <alien> t: carnivore pos: 34 48: angle: 200 </alien>
            </spawn>
    
            <modify>
                at: 33 47 set: 165
                at: 34 47 set: 166
                at: 33 48 set: 167
                at: 34 48 set: 168
            </modify>
        </event>
        
        # The secret room in this big room
        <event>
          tl: 55 25
          br: 61 29
          <modify>
            <copyblock>
              from: 55 25 3
              to_layer: 55 25 2
              size: 6 4
            </copyblock>
          </modify>
        </event>


        #
        # At the top of the long corridors
        #
        <event>
          tl: 71 1
          br: 72 9
          <spawn>
            difficulty: hard
            sound: 30
            <animation> uid: 301 pos: 67 5 offset: 16 16 dir: -2.5 3 </animation>
          </spawn>
          <modify>
            difficulty: hard
            at: 67 5 set: 351
          </modify>
          <spawn>
            difficulty: hard
            delay: 30
            <alien> t: mediumworm pos: 67 5 offset: 0 -8 angle: 32 </alien>
          </spawn>
          <spawn>
            difficulty: hard
            delay: 40
            <alien> t: mediumworm pos: 67 5 offset: 0 8 angle: 118 </alien>
          </spawn>
          
          # another sewer plate
          <spawn>
            difficulty: hard
            delay: 15
            sound: 30
            <animation> uid: 301 pos: 74 5 offset: 16 16 dir: -1.5 -3 </animation>
          </spawn>
          <modify>
            difficulty: hard
            delay: 15
            at: 74 5 set: 351
          </modify>
          <spawn>
            difficulty: hard
            delay: 45
            <alien> t: carnivore pos: 74 5 angle: 140 </alien>
          </spawn>
          <spawn>
            difficulty: hard
            delay: 55
            <alien> t: smallworm pos: 74 5 angle: 220 </alien>
          </spawn>
        </event>

        #
        # The long straight corridor down.
        <event>
            tl: 78 37
            br: 85 38
            <spawn>
                <alien> t: carnivore pos: 80 47 </alien>
                <alien> t: carnivore pos: 82 47 </alien>
                <alien> t: carnivore pos: 81 48 </alien>
            </spawn>
        </event>


        
        #
        # A secret place
        #
        <event>
          tl: 87 67
          br: 88 70
          <modify>
            <areafill>
              layer: 2
              from: 74 62
              size: 11 6
              tile: 0
            </areafill>
            <areafill>
              layer: 2
              from: 85 52
              size: 13 16
              tile: 0
            </areafill>
            <areafill>
              layer: 2
              from: 87 68
              size: 11 10
              tile: 0
            </areafill>
          </modify>
          
          # And some aliens and bonuses
          <spawn>
            <alien> t: carnivore pos: 90 73 angle: 32 </alien>
            <alien> t: carnivore pos: 91 70 </alien>
            <alien> t: carnivore pos: 82 65 angle: 64 </alien>
            <alien> t: carnivore pos: 96 70 angle: 210 </alien>
            <alien> t: carnivore pos: 92 63 angle: 190 </alien>
            <alien> t: proctor pos: 89 62 angle: 128 </alien>
            <alien> t: proctor pos: 84 64 angle: 64 </alien>
            
            <bonusitem> t: firstaid pos: 91 77 </bonusitem>
            <bonusitem> t: firstaid pos: 91 76 </bonusitem>
            <bonusitem> t: shotgun pos: 90 68 </bonusitem>
            <bonusitem> t: 200pts pos: 87 55 </bonusitem>
            <bonusitem> t: 200pts pos: 88 55 </bonusitem>
            <bonusitem> t: 100pts pos: 87 54 </bonusitem>
            <bonusitem> t: 100pts pos: 88 55 </bonusitem>
            <bonusitem> t: 200pts pos: 92 55 </bonusitem>
            <bonusitem> t: 200pts pos: 93 56 </bonusitem>
            <bonusitem> t: uzi pos: 80 66 offset: 0 8 </bonusitem>
          </spawn>
          <spawn>
            difficulty: hard
            <alien> t: lightball pos: 91 73 angle: 220 flags: 1 </alien>
          </spawn>
        </event>
        
        #
        # The corridor below the first room full of aliens
        # Show the hidden room and explode the wall
        #
        <event>
          tl: 53 49
          br: 54 52
          <spawn>
            difficulty: hard
            sound: 14
            <animation> uid: 507 pos: 54 49 offset: 0 16 </animation>
            <alien> t: proctor pos: 54 47 angle: 128 </alien>
          </spawn>
          <modify>
            difficulty: hard
            at: 51 49 set: 17
            at: 52 49 set: 26
            at: 53 49 set: 26
            at: 54 49 set: 26
            at: 55 49 set: 26
            at: 56 49 set: 15
            
            <areafill>
              layer: 2
              from: 49 43
              size: 12 6
              tile: 0
            </areafill>
          </modify>
        </event>
        #
        # The corrodir at the bottom.
        #
        <event>
          tl: 54 71
          br: 56 74
          <modify>
            sound: 10
            at: 50 70 set: 151
            at: 51 70 set: 156
          </modify>
        </event>
        
        <event>
          tl: 60 71
          br: 62 74
          <spawn>
            sound: 1
            <alien> t: carnivore pos: 51 73 angle: 64 </alien>
            <alien> t: carnivore pos: 50 73 angle: 64 </alien>
            <alien> t: carnivore pos: 49 73 angle: 64 </alien>
            <alien> t: carnivore pos: 71 73 angle: 32 </alien>
            
            <alien> t: carnivore pos: 73 76 angle: 128 </alien>
            <alien> t: carnivore pos: 73 77 angle: 128 </alien>
            <alien> t: carnivore pos: 73 78 angle: 128 </alien>
            <alien> t: smallworm pos: 73 80 </alien>
            <alien> t: smallworm pos: 74 80 </alien>
            
            <alien> t: proctor pos: 74 80 angle: 220 </alien>
            
            <alien> t: proctor pos: 76 95 </alien>
            <alien> t: carnivore pos: 76 93 </alien>
            <alien> t: carnivore pos: 76 94 </alien>
            <alien> t: carnivore pos: 76 95 </alien>
          </spawn>
          
          # Open the door at the left and at the right
          <modify>
            at: 47 72 set: 145
            at: 47 73 set: 150
            
            at: 77 88 set: 145
            at: 77 89 set: 150
          </modify>
        </event>
    </objective>


    #
    # The level story
    #
    <story>
      background: gfx/levelpic/level_2.bmp
      story: gfx/levelpic/story_2.bmp
    </story>
    
#    <story>
#        line: Through the Warehouse
#        line: I wondered what the hell was happening. It's not unusual that some exotic
#        line: packages has some bugs like spiders and snakes with them but this was
#        line: something that really tempted my understanding. Well, whatever they were
#        line: they'd taken over the whole warehouse. And unless I quickly get out of here
#        line: I certainly will not see my retirement days.
#        line: <br>
#        line: This floor has an exit to the back yard. Hopefully these creatures haven't
#        line: got out yet.
#    </story>
    
</wewantwar_level>

[END]

450942302