//9/11 v2.0 by Gustavob
//12/05/11 10:03 PM BRT
//Thanks to:
//Vike for fixing WARP_FROM_CAR_TO_POINT desyncs and making it work outside cars
//Sektor for keeping an active GTA2 community with his GTA2 Game Hunter
//TradeMark for his GTA2 Map/Zone Editor and for pointing out a door trigger check-area problem
//DAFE for weapons help (weapons not spawning properly)
//Rockstar Games & DMA Design for GTA2 and ste.gmp, wich included the original version of the Fire Station at the north of the map
//Wikipedia for air view image with original position of World Trade Center Buildings and its "neighbour" buildings (http://upload.wikimedia.org/wikipedia/commons/1/13/World_Trade_Center_Site_After_9-11_Attacks_With_Original_Building_Locations.jpg)
//Do not edit my files without permission

//PLAYERS
//PLAYER_PED name = ( X.x , Y.y , Z.z ) remap rotation
PLAYER_PED player1 = ( 116.5 , 142.5 , 1.0 ) 10 180 //Terrorist
PLAYER_PED player2 = ( 116.5 , 119.5 , 1.0 ) 8 0    //Firefighter

//COUNTERs
//COUNTER name [= value]
COUNTER loop = 1
COUNTER bombinuse = 0
COUNTER al_qaeda_hasbomb = 0
COUNTER wtc1_bomb_planted = 0
COUNTER wtc2_bomb_planted = 0
COUNTER wtc1_bomb_disarmed = 0
COUNTER wtc2_bomb_disarmed = 0
COUNTER wtc1_collapsed = 0
COUNTER wtc2_collapsed = 0
COUNTER bomb_counter = 0
COUNTER bomb_counter2 = 0
COUNTER bomb_disarm_counter = 0
COUNTER bomb_disarm_counter2 = 0
COUNTER tlpenb1 = 1
COUNTER tlpenb2 = 1
COUNTER bombspawned1 = 0
COUNTER bombdeleted1 = 0
COUNTER bombspawned2 = 0
COUNTER bombdeleted2 = 0
COUNTER briefonscreen = 0
COUNTER disarming_bomb_1 = 0
COUNTER disarming_bomb_2 = 0
COUNTER bomb_timer_1_displayed = 0
COUNTER bomb_timer_2_displayed = 0
COUNTER disarm_timer_1_displayed = 0
COUNTER disarm_timer_2_displayed = 0

//TIMERs
//TIMER_DATA name
TIMER_DATA bomb_armed_1
TIMER_DATA bomb_armed_2
TIMER_DATA disarming_bomb_timer_1
TIMER_DATA disarming_bomb_timer_2

//ARRROWs
//ARROW_DATA name
ARROW_DATA arrow1
ARROW_DATA arrow2

//DOOR INFOs
//DECLARE_DOOR_INFO ( start_frame , end_frame , speed )
DECLARE_DOOR_INFO ( 128 , 135 , 2 )

//DOORs
//DOOR_DATA name = style ( X , Y , Z ) ( X.x , Y.y , Z.z , width , height ) face gr_id open_type close_type delay flip reverse [name/value]
DOOR_DATA wtc1_int_door_1 = DOUBLE ( 113 , 128 , 1 ) ( 113.0 , 128.0 , 1.0 , 0.0 , 0.0 ) BOTTOM 0 ANY_PLAYER CLOSE_WHEN_OPEN_RULE_FAILS 0 NOT_FLIPPED NOT_REVERSED
DOOR_DATA wtc2_int_door_1 = DOUBLE ( 118 , 130 , 1 ) ( 118.0 , 130.0 , 1.0 , 0.0 , 0.0 ) TOP 0 ANY_PLAYER CLOSE_WHEN_OPEN_RULE_FAILS 0 NOT_FLIPPED NOT_REVERSED
DOOR_DATA wtc1_ext_door_1 = SINGLE ( 114 , 126 , 6 ) ( 114.0 , 126.0 , 6.0 , 0.0 , 0.0 ) LEFT 0 ANY_PLAYER CLOSE_WHEN_OPEN_RULE_FAILS 0 NOT_FLIPPED NOT_REVERSED
DOOR_DATA wtc2_ext_door_1 = SINGLE ( 120 , 132 , 6 ) ( 120.0 , 132.0 , 6.0 , 0.0 , 0.0 ) LEFT 0 ANY_PLAYER CLOSE_WHEN_OPEN_RULE_FAILS 0 NOT_FLIPPED NOT_REVERSED

//OBJECTS
//OBJ_DATA name = ( X.x , Y.y , Z.z ) rotation OBJ_MODEL
//OBJ_DATA name
OBJ_DATA wtc1_bomb_1
OBJ_DATA wtc2_bomb_1

//GENERATORs
//GENERATOR name = ( X.x , Y.y , Z.z ) rotation COLLECT_xx mindelay maxdelay ammo
GENERATOR flame1 = ( 111.5 , 142.5 , 1.0 ) 0 COLLECT_08 3600 3600 15
GENERATOR rocke1 = ( 110.5 , 142.5 , 1.0 ) 0 COLLECT_02 3600 3600 10
GENERATOR flame2 = ( 115.5 , 116.5 , 1.0 ) 0 COLLECT_08 3600 3600 15
GENERATOR rocke2 = ( 118.5 , 116.5 , 1.0 ) 0 COLLECT_02 3600 3600 10

LEVELSTART

SWITCH_GENERATOR ( flame1 , ON )
SWITCH_GENERATOR ( rocke1 , ON )
SWITCH_GENERATOR ( flame2 , ON )
SWITCH_GENERATOR ( rocke2 , ON )

POINT_ARROW_AT ( arrow1 , 113.0 , 128.5 , 1.0 )
POINT_ARROW_AT ( arrow2 , 119.0 , 130.5 , 1.0 )

WHILE_EXEC ( loop = 1 )

//This solves the hidden surfaces removing inside the WTC buildings //removed as it fucked up other stuff
/*CHANGE_BLOCK LID ( 112 , 125 , 5 ) NOT_FLAT NOT_FLIP 0 0 155
CHANGE_BLOCK LID ( 112 , 126 , 5 ) NOT_FLAT NOT_FLIP 0 0 155
CHANGE_BLOCK LID ( 112 , 127 , 5 ) NOT_FLAT NOT_FLIP 0 0 155
CHANGE_BLOCK LID ( 113 , 125 , 5 ) NOT_FLAT NOT_FLIP 0 0 155
CHANGE_BLOCK LID ( 113 , 126 , 5 ) NOT_FLAT NOT_FLIP 0 0 155
CHANGE_BLOCK LID ( 113 , 127 , 5 ) NOT_FLAT NOT_FLIP 0 0 155

CHANGE_BLOCK LID ( 118 , 131 , 5 ) NOT_FLAT NOT_FLIP 0 0 155
CHANGE_BLOCK LID ( 118 , 132 , 5 ) NOT_FLAT NOT_FLIP 0 0 155
CHANGE_BLOCK LID ( 118 , 133 , 5 ) NOT_FLAT NOT_FLIP 0 0 155
CHANGE_BLOCK LID ( 119 , 131 , 5 ) NOT_FLAT NOT_FLIP 0 0 155
CHANGE_BLOCK LID ( 119 , 132 , 5 ) NOT_FLAT NOT_FLIP 0 0 155
CHANGE_BLOCK LID ( 119 , 133 , 5 ) NOT_FLAT NOT_FLIP 0 0 155*/

IF ( tlpenb1 = 1 )

  IF ( LOCATE_CHARACTER_ON_FOOT ( player1 , 113.5 , 128.5 , 1.0 , 3.0 , 1.0 ) )
    IF ( NOT ( DELAY ( 60 ) ) )
      WARP_FROM_CAR_TO_POINT ( player1 , 113.9 , 126.5 , 6.0 , 270 )
      CHANGE_BLOCK LID ( 111 , 124 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 112 , 124 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 113 , 124 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 114 , 124 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 111 , 125 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 112 , 125 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 113 , 125 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 114 , 125 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 111 , 126 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 112 , 126 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 113 , 126 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 114 , 126 , 6 ) FLAT NOT_FLIP 0 90 766
      CHANGE_BLOCK LID ( 111 , 127 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 112 , 127 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 113 , 127 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 114 , 127 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 111 , 128 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 112 , 128 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 113 , 128 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 114 , 128 , 6 ) FLAT NOT_FLIP 0 0 831
      POINT_ARROW_AT ( arrow1 , 113.0 , 126.5 , 6.0 )
    ENDIF
  ENDIF

  IF ( /*(*/ LOCATE_CHARACTER_ON_FOOT ( player1 , 114.5 , 126.5 , 6.0 , 1.0 , 1.0 ) )// AND ( NOT ( LOCATE_CHARACTER_ON_FOOT ( player2 , 113.0 , 126.5 , 6.0 , 4.0 , 5.0 ) ) ) )
    IF ( NOT ( DELAY ( 60 ) ) )
      WARP_FROM_CAR_TO_POINT ( player1 , 113.5 , 129.5 , 1.0 , 0 )
      IF ( ( NOT ( LOCATE_CHARACTER_ON_FOOT ( player2 , 113.0 , 126.5 , 6.0 , 4.0 , 5.0 ) ) ) OR ( NOT ( CHECK_CHARACTER_HEALTH ( player2 , 0 ) ) ) )
      CHANGE_BLOCK LID ( 111 , 124 , 6 ) FLAT NOT_FLIP 0 0   784
      CHANGE_BLOCK LID ( 112 , 124 , 6 ) FLAT NOT_FLIP 0 180 790
      CHANGE_BLOCK LID ( 113 , 124 , 6 ) FLAT NOT_FLIP 0 180 790
      CHANGE_BLOCK LID ( 114 , 124 , 6 ) FLAT NOT_FLIP 0 90  784
      CHANGE_BLOCK LID ( 111 , 125 , 6 ) FLAT NOT_FLIP 0 0   792
      CHANGE_BLOCK LID ( 112 , 125 , 6 ) FLAT NOT_FLIP 0 0   793
      CHANGE_BLOCK LID ( 113 , 125 , 6 ) FLAT NOT_FLIP 0 0   793
      CHANGE_BLOCK LID ( 114 , 125 , 6 ) FLAT NOT_FLIP 0 180 792
      CHANGE_BLOCK LID ( 111 , 126 , 6 ) FLAT NOT_FLIP 0 0   792
      CHANGE_BLOCK LID ( 112 , 126 , 6 ) FLAT NOT_FLIP 0 0   793
      CHANGE_BLOCK LID ( 113 , 126 , 6 ) FLAT NOT_FLIP 0 0   793
      CHANGE_BLOCK LID ( 114 , 126 , 6 ) FLAT NOT_FLIP 0 180 792
      CHANGE_BLOCK LID ( 111 , 127 , 6 ) FLAT NOT_FLIP 0 0   792
      CHANGE_BLOCK LID ( 112 , 127 , 6 ) FLAT NOT_FLIP 0 0   793
      CHANGE_BLOCK LID ( 113 , 127 , 6 ) FLAT NOT_FLIP 0 0   793
      CHANGE_BLOCK LID ( 114 , 127 , 6 ) FLAT NOT_FLIP 0 180 792
      CHANGE_BLOCK LID ( 111 , 128 , 6 ) FLAT NOT_FLIP 0 270 784
      CHANGE_BLOCK LID ( 112 , 128 , 6 ) FLAT NOT_FLIP 0 0   790
      CHANGE_BLOCK LID ( 113 , 128 , 6 ) FLAT NOT_FLIP 0 0   790
      CHANGE_BLOCK LID ( 114 , 128 , 6 ) FLAT NOT_FLIP 0 180 784
      POINT_ARROW_AT ( arrow1 , 113.0 , 128.5 , 1.0 )
      ENDIF
    ENDIF
  ENDIF

  IF ( CHECK_CHARACTER_HEALTH ( player2, 0 ) )
    IF ( LOCATE_CHARACTER_ON_FOOT ( player2, 113.5 , 128.5 , 1.0 , 3.0 , 1.0 ) )
      IF ( NOT ( DELAY ( 60 ) ) )
        WARP_FROM_CAR_TO_POINT ( player2 , 113.9 , 126.5 , 6.0 , 270 )
        CHANGE_BLOCK LID ( 111 , 124 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 112 , 124 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 113 , 124 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 114 , 124 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 111 , 125 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 112 , 125 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 113 , 125 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 114 , 125 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 111 , 126 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 112 , 126 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 113 , 126 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 114 , 126 , 6 ) FLAT NOT_FLIP 0 90 766
        CHANGE_BLOCK LID ( 111 , 127 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 112 , 127 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 113 , 127 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 114 , 127 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 111 , 128 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 112 , 128 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 113 , 128 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 114 , 128 , 6 ) FLAT NOT_FLIP 0 0 831
        POINT_ARROW_AT ( arrow1 , 113.0 , 126.5 , 6.0 )
      ENDIF
    ENDIF
  ENDIF

  IF ( CHECK_CHARACTER_HEALTH ( player2, 0 ) )
    IF /*(*/ ( LOCATE_CHARACTER_ON_FOOT ( player2, 114.5 , 126.5 , 6.0 , 1.0 , 1.0 ) )// AND ( NOT ( LOCATE_CHARACTER_ON_FOOT ( player1 , 113.0 , 126.5 , 6.0 , 4.0 , 5.0 ) ) ) )
      IF ( NOT ( DELAY ( 60 ) ) )
        WARP_FROM_CAR_TO_POINT ( player2 , 113.5 , 129.5 , 1.0 , 0 )
        IF ( ( NOT ( LOCATE_CHARACTER_ON_FOOT ( player1 , 113.0 , 126.5 , 6.0 , 4.0 , 5.0 ) ) ) OR ( NOT ( CHECK_CHARACTER_HEALTH ( player1 , 0 ) ) ) )
        CHANGE_BLOCK LID ( 111 , 124 , 6 ) FLAT NOT_FLIP 0 0   784
        CHANGE_BLOCK LID ( 112 , 124 , 6 ) FLAT NOT_FLIP 0 90  790
        CHANGE_BLOCK LID ( 113 , 124 , 6 ) FLAT NOT_FLIP 0 90  790
        CHANGE_BLOCK LID ( 114 , 124 , 6 ) FLAT NOT_FLIP 0 90  784
        CHANGE_BLOCK LID ( 111 , 125 , 6 ) FLAT NOT_FLIP 0 0   792
        CHANGE_BLOCK LID ( 112 , 125 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 113 , 125 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 114 , 125 , 6 ) FLAT NOT_FLIP 0 180 792
        CHANGE_BLOCK LID ( 111 , 126 , 6 ) FLAT NOT_FLIP 0 0   792
        CHANGE_BLOCK LID ( 112 , 126 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 113 , 126 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 114 , 126 , 6 ) FLAT NOT_FLIP 0 180 792
        CHANGE_BLOCK LID ( 111 , 127 , 6 ) FLAT NOT_FLIP 0 0   792
        CHANGE_BLOCK LID ( 112 , 127 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 113 , 127 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 114 , 127 , 6 ) FLAT NOT_FLIP 0 180 792
        CHANGE_BLOCK LID ( 111 , 128 , 6 ) FLAT NOT_FLIP 0 270 784
        CHANGE_BLOCK LID ( 112 , 128 , 6 ) FLAT NOT_FLIP 0 0   790
        CHANGE_BLOCK LID ( 113 , 128 , 6 ) FLAT NOT_FLIP 0 0   790
        CHANGE_BLOCK LID ( 114 , 128 , 6 ) FLAT NOT_FLIP 0 180 784
        POINT_ARROW_AT ( arrow1 , 113.0 , 128.5 , 1.0 )
        ENDIF
      ENDIF
    ENDIF
  ENDIF

ENDIF

IF ( tlpenb2 = 1 )

  IF ( LOCATE_CHARACTER_ON_FOOT ( player1 , 119.5 , 130.5 , 1.0 , 3.0 , 1.0 ) )
    IF ( NOT ( DELAY ( 60 ) ) )
      WARP_FROM_CAR_TO_POINT ( player1 , 119.9 , 132.5 , 6.0 , 270 )
      CHANGE_BLOCK LID ( 117 , 130 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 118 , 130 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 119 , 130 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 120 , 130 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 117 , 131 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 118 , 131 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 119 , 131 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 120 , 131 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 117 , 132 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 118 , 132 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 119 , 132 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 120 , 132 , 6 ) FLAT NOT_FLIP 0 90 766
      CHANGE_BLOCK LID ( 117 , 133 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 118 , 133 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 119 , 133 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 120 , 133 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 117 , 134 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 118 , 134 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 119 , 134 , 6 ) FLAT NOT_FLIP 0 0 831
      CHANGE_BLOCK LID ( 120 , 134 , 6 ) FLAT NOT_FLIP 0 0 831
      POINT_ARROW_AT ( arrow2 , 119.0 , 132.5 , 6.0 )
    ENDIF
  ENDIF

  IF ( /*(*/ LOCATE_CHARACTER_ON_FOOT ( player1 , 120.5 , 132.5 , 6.0 , 1.0 , 1.0 ) )// AND ( NOT ( LOCATE_CHARACTER_ON_FOOT ( player2 , 119.0 , 132.5 , 6.0 , 4.0 , 5.0 ) ) ) )
    IF ( NOT ( DELAY ( 60 ) ) )
      WARP_FROM_CAR_TO_POINT ( player1 , 119.5 , 129.5 , 1.0 , 180 )
      IF ( ( NOT ( LOCATE_CHARACTER_ON_FOOT ( player2 , 119.0 , 132.5 , 6.0 , 4.0 , 5.0 ) ) ) OR ( NOT ( CHECK_CHARACTER_HEALTH ( player2 , 0 ) ) ) )
        CHANGE_BLOCK LID ( 117 , 130 , 6 ) FLAT NOT_FLIP 0 0   784
        CHANGE_BLOCK LID ( 118 , 130 , 6 ) FLAT NOT_FLIP 0 180 790
        CHANGE_BLOCK LID ( 119 , 130 , 6 ) FLAT NOT_FLIP 0 180 790
        CHANGE_BLOCK LID ( 120 , 130 , 6 ) FLAT NOT_FLIP 0 90  784
        CHANGE_BLOCK LID ( 117 , 131 , 6 ) FLAT NOT_FLIP 0 0   792
        CHANGE_BLOCK LID ( 118 , 131 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 119 , 131 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 120 , 131 , 6 ) FLAT NOT_FLIP 0 180 792
        CHANGE_BLOCK LID ( 117 , 132 , 6 ) FLAT NOT_FLIP 0 0   792
        CHANGE_BLOCK LID ( 118 , 132 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 119 , 132 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 120 , 132 , 6 ) FLAT NOT_FLIP 0 180 792
        CHANGE_BLOCK LID ( 117 , 133 , 6 ) FLAT NOT_FLIP 0 0   792
        CHANGE_BLOCK LID ( 118 , 133 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 119 , 133 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 120 , 133 , 6 ) FLAT NOT_FLIP 0 180 792
        CHANGE_BLOCK LID ( 117 , 134 , 6 ) FLAT NOT_FLIP 0 270 784
        CHANGE_BLOCK LID ( 118 , 134 , 6 ) FLAT NOT_FLIP 0 0   790
        CHANGE_BLOCK LID ( 119 , 134 , 6 ) FLAT NOT_FLIP 0 0   790
        CHANGE_BLOCK LID ( 120 , 134 , 6 ) FLAT NOT_FLIP 0 180 784
      POINT_ARROW_AT ( arrow2 , 119.0 , 130.5 , 1.0 )
      ENDIF
    ENDIF
  ENDIF

  IF ( CHECK_CHARACTER_HEALTH ( player2, 0 ) )
    IF ( LOCATE_CHARACTER_ON_FOOT ( player2, 119.5 , 130.5 , 1.0 , 3.0 , 1.0 ) )
      IF ( NOT ( DELAY ( 60 ) ) )
        WARP_FROM_CAR_TO_POINT ( player2, 119.9 , 132.5 , 6.0 , 270 )
        CHANGE_BLOCK LID ( 117 , 130 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 118 , 130 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 119 , 130 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 120 , 130 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 117 , 131 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 118 , 131 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 119 , 131 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 120 , 131 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 117 , 132 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 118 , 132 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 119 , 132 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 120 , 132 , 6 ) FLAT NOT_FLIP 0 90 766
        CHANGE_BLOCK LID ( 117 , 133 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 118 , 133 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 119 , 133 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 120 , 133 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 117 , 134 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 118 , 134 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 119 , 134 , 6 ) FLAT NOT_FLIP 0 0 831
        CHANGE_BLOCK LID ( 120 , 134 , 6 ) FLAT NOT_FLIP 0 0 831
        POINT_ARROW_AT ( arrow2 , 119.0 , 132.5 , 6.0 )
      ENDIF
    ENDIF
  ENDIF

  IF ( CHECK_CHARACTER_HEALTH ( player2, 0 ) )
    IF /*(*/ ( LOCATE_CHARACTER_ON_FOOT ( player2, 120.5 , 132.5 , 6.0 , 1.0 , 1.0 ) )// AND ( NOT ( LOCATE_CHARACTER_ON_FOOT ( player1 , 119.0 , 132.5 , 6.0 , 4.0 , 5.0 ) ) ) )
      IF ( NOT ( DELAY ( 60 ) ) )
        WARP_FROM_CAR_TO_POINT ( player2, 119.5 , 129.5 , 1.0 , 180 )
        IF ( ( NOT ( LOCATE_CHARACTER_ON_FOOT ( player1 , 119.0 , 132.5 , 6.0 , 4.0 , 5.0 ) ) ) OR ( NOT ( CHECK_CHARACTER_HEALTH ( player1 , 0 ) ) ) )
        CHANGE_BLOCK LID ( 117 , 130 , 6 ) FLAT NOT_FLIP 0 0   784
        CHANGE_BLOCK LID ( 118 , 130 , 6 ) FLAT NOT_FLIP 0 180 790
        CHANGE_BLOCK LID ( 119 , 130 , 6 ) FLAT NOT_FLIP 0 180 790
        CHANGE_BLOCK LID ( 120 , 130 , 6 ) FLAT NOT_FLIP 0 90  784
        CHANGE_BLOCK LID ( 117 , 131 , 6 ) FLAT NOT_FLIP 0 0   792
        CHANGE_BLOCK LID ( 118 , 131 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 119 , 131 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 120 , 131 , 6 ) FLAT NOT_FLIP 0 180 792
        CHANGE_BLOCK LID ( 117 , 132 , 6 ) FLAT NOT_FLIP 0 0   792
        CHANGE_BLOCK LID ( 118 , 132 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 119 , 132 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 120 , 132 , 6 ) FLAT NOT_FLIP 0 180 792
        CHANGE_BLOCK LID ( 117 , 133 , 6 ) FLAT NOT_FLIP 0 0   792
        CHANGE_BLOCK LID ( 118 , 133 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 119 , 133 , 6 ) FLAT NOT_FLIP 0 0   793
        CHANGE_BLOCK LID ( 120 , 133 , 6 ) FLAT NOT_FLIP 0 180 792
        CHANGE_BLOCK LID ( 117 , 134 , 6 ) FLAT NOT_FLIP 0 270 784
        CHANGE_BLOCK LID ( 118 , 134 , 6 ) FLAT NOT_FLIP 0 0   790
        CHANGE_BLOCK LID ( 119 , 134 , 6 ) FLAT NOT_FLIP 0 0   790
        CHANGE_BLOCK LID ( 120 , 134 , 6 ) FLAT NOT_FLIP 0 180 784
        POINT_ARROW_AT ( arrow2 , 119.0 , 130.5 , 1.0 )
        ENDIF
      ENDIF
    ENDIF
  ENDIF

ENDIF

IF ( CHECK_CHARACTER_HEALTH ( player1, 0 ) )
 SET al_qaeda_hasbomb = 1
ENDIF

IF ( al_qaeda_hasbomb = 1 )
 IF ( LOCATE_CHARACTER_ON_FOOT ( player1, 113.0 , 126.5 , 6.0 , 1.0 , 1.0 ) )
 WHILE ( wtc1_bomb_planted < 1 )
  wtc1_bomb_1 = CREATE_OBJ ( 113.0 , 126.5 , 6.0 ) 0 BOMB END
  ++ wtc1_bomb_planted
 ENDWHILE
 ENDIF
ENDIF

IF ( al_qaeda_hasbomb = 1 )
 IF ( LOCATE_CHARACTER_ON_FOOT ( player1, 119.0 , 132.5 , 6.0 , 1.0 , 1.0 ) )
 WHILE ( wtc2_bomb_planted < 1 )
  wtc2_bomb_1 = CREATE_OBJ ( 119.0 , 132.5 , 6.0 ) 0 BOMB END
  ++ wtc2_bomb_planted
 ENDWHILE
 ENDIF
ENDIF

IF ( wtc1_bomb_planted = 1)
  ++bomb_counter
  IF ( bomb_timer_1_displayed = 0 )
    DISPLAY_TIMER ( bomb_armed_1 , 90 )
    SET bomb_timer_1_displayed = 1
  ENDIF
  IF ( bomb_counter = 2700 )
  EXPLODE_LARGE ( 112.5 , 125.5 , 6.0 )
  EXPLODE_LARGE ( 112.5 , 125.5 , 6.0 )
  EXPLODE_LARGE ( 113.5 , 126.5 , 6.0 )
  EXPLODE_LARGE ( 113.5 , 126.5 , 6.0 )
  EXPLODE_LARGE ( 112.5 , 128.5 , 6.0 )
  EXPLODE_LARGE ( 112.5 , 128.5 , 6.0 )
  EXPLODE_LARGE ( 112.5 , 125.5 , 4.0 )
  EXPLODE_LARGE ( 112.5 , 125.5 , 4.0 )
  EXPLODE_LARGE ( 113.5 , 126.5 , 4.0 )
  EXPLODE_LARGE ( 113.5 , 126.5 , 4.0 )
  EXPLODE_LARGE ( 112.5 , 128.5 , 4.0 )
  EXPLODE_LARGE ( 112.5 , 128.5 , 4.0 )
  EXPLODE_LARGE ( 112.5 , 125.5 , 6.0 )
  EXPLODE_LARGE ( 112.5 , 125.5 , 6.0 )
  EXPLODE_LARGE ( 113.5 , 126.5 , 2.0 )
  EXPLODE_LARGE ( 113.5 , 126.5 , 2.0 )
  EXPLODE_LARGE ( 112.5 , 128.5 , 2.0 )
  EXPLODE_LARGE ( 112.5 , 128.5 , 2.0 )
  WHILE ( wtc1_collapsed < 5 )
    IF(NOT(DELAY(30)))  
      LOWER_LEVEL ( 111 , 124 ) ( 114 , 128 )
      ++wtc1_collapsed
    ENDIF
  ENDWHILE
//  IF ( NOT ( DELAY (10) ) )
  CHANGE_BLOCK LID ( 111 , 124 , 1 ) NOT_FLAT NOT_FLIP 0 0 503
		CHANGE_BLOCK LID ( 112 , 124 , 1 ) NOT_FLAT NOT_FLIP 0 0 510
		CHANGE_BLOCK LID ( 113 , 124 , 1 ) NOT_FLAT NOT_FLIP 0 90 508
		CHANGE_BLOCK LID ( 114 , 124 , 1 ) NOT_FLAT NOT_FLIP 0 90 503
		CHANGE_BLOCK LID ( 111 , 125 , 1 ) NOT_FLAT NOT_FLIP 0 0 508
		CHANGE_BLOCK LID ( 112 , 125 , 1 ) NOT_FLAT NOT_FLIP 0 0 511
		CHANGE_BLOCK LID ( 113 , 125 , 1 ) NOT_FLAT NOT_FLIP 0 0 509
		CHANGE_BLOCK LID ( 114 , 125 , 1 ) NOT_FLAT NOT_FLIP 0 180 508
		CHANGE_BLOCK LID ( 111 , 126 , 1 ) NOT_FLAT NOT_FLIP 0 270 510
		CHANGE_BLOCK LID ( 112 , 126 , 1 ) NOT_FLAT NOT_FLIP 0 270 511
		CHANGE_BLOCK LID ( 113 , 126 , 1 ) NOT_FLAT NOT_FLIP 0 0 509
		CHANGE_BLOCK LID ( 114 , 126 , 1 ) NOT_FLAT NOT_FLIP 0 180 508
		CHANGE_BLOCK LID ( 111 , 127 , 1 ) NOT_FLAT NOT_FLIP 0 0 508
		CHANGE_BLOCK LID ( 112 , 127 , 1 ) NOT_FLAT NOT_FLIP 0 0 509
		CHANGE_BLOCK LID ( 113 , 127 , 1 ) NOT_FLAT NOT_FLIP 0 90 511
		CHANGE_BLOCK LID ( 114 , 127 , 1 ) NOT_FLAT NOT_FLIP 0 90 510
		CHANGE_BLOCK LID ( 111 , 128 , 1 ) NOT_FLAT NOT_FLIP 0 270 503
		CHANGE_BLOCK LID ( 112 , 128 , 1 ) NOT_FLAT NOT_FLIP 0 270 508
		CHANGE_BLOCK LID ( 113 , 128 , 1 ) NOT_FLAT NOT_FLIP 0 270 508
		CHANGE_BLOCK LID ( 114 , 128 , 1 ) NOT_FLAT NOT_FLIP 0 180 503
//		ENDIF
		REMOVE_BLOCK ( 115 , 126 , 6 , DONT_DROP )
		ADD_NEW_BLOCK ( 115 , 126 , 1 )
		CHANGE_BLOCK SIDE ( 115 , 126 , 1 ) LEFT WALL BULLET FLAT NOT_FLIP 0 641
		CHANGE_BLOCK SIDE ( 115 , 126 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 641
  WHILE ( wtc1_bomb_planted > 0 )
    DELETE_ITEM ( wtc1_bomb_1 )
    --wtc1_bomb_planted
  ENDWHILE
  MAKE_DOOR_MANUAL ( wtc1_int_door_1 )
  MAKE_DOOR_MANUAL ( wtc1_ext_door_1 )
  ADD_SCORE ( player1, 500000 )
  SET tlpenb1 = 0
  REMOVE_ARROW (arrow1)
  SET bomb_disarm_counter = 0
  SET disarming_bomb_1 = 0
  CLEAR_TIMER ( disarming_bomb_timer_1 )
  ENDIF
ENDIF

IF ( wtc2_bomb_planted = 1)
  ++bomb_counter2
  IF ( bomb_timer_2_displayed = 0 )
    DISPLAY_TIMER ( bomb_armed_2 , 90 )
    SET bomb_timer_2_displayed = 1
  ENDIF
  IF ( bomb_counter2 = 2700 )
  EXPLODE_LARGE ( 118.5 , 131.5 , 6.0 )
  EXPLODE_LARGE ( 118.5 , 131.5 , 6.0 )
  EXPLODE_LARGE ( 119.5 , 132.5 , 6.0 )
  EXPLODE_LARGE ( 119.5 , 132.5 , 6.0 )
  EXPLODE_LARGE ( 118.5 , 134.5 , 6.0 )
  EXPLODE_LARGE ( 118.5 , 134.5 , 6.0 )
  EXPLODE_LARGE ( 118.5 , 131.5 , 4.0 )
  EXPLODE_LARGE ( 118.5 , 131.5 , 4.0 )
  EXPLODE_LARGE ( 119.5 , 132.5 , 4.0 )
  EXPLODE_LARGE ( 119.5 , 132.5 , 4.0 )
  EXPLODE_LARGE ( 118.5 , 134.5 , 4.0 )
  EXPLODE_LARGE ( 118.5 , 134.5 , 4.0 )
  EXPLODE_LARGE ( 118.5 , 131.5 , 6.0 )
  EXPLODE_LARGE ( 118.5 , 131.5 , 6.0 )
  EXPLODE_LARGE ( 119.5 , 132.5 , 2.0 )
  EXPLODE_LARGE ( 119.5 , 132.5 , 2.0 )
  EXPLODE_LARGE ( 118.5 , 134.5 , 2.0 )
  EXPLODE_LARGE ( 118.5 , 134.5 , 2.0 )
  WHILE ( wtc2_collapsed < 5 )
    IF(NOT(DELAY(30)))
      LOWER_LEVEL ( 117 , 130 ) ( 120 , 134 )
      ++wtc2_collapsed
    ENDIF
  ENDWHILE
//  IF ( NOT ( DELAY ( 10 ) ) )
  CHANGE_BLOCK LID ( 117 , 130 , 1 ) NOT_FLAT NOT_FLIP 0 0 503
		CHANGE_BLOCK LID ( 118 , 130 , 1 ) NOT_FLAT NOT_FLIP 0 90 508
		CHANGE_BLOCK LID ( 119 , 130 , 1 ) NOT_FLAT NOT_FLIP 0 0 510
		CHANGE_BLOCK LID ( 120 , 130 , 1 ) NOT_FLAT NOT_FLIP 0 90 503
		CHANGE_BLOCK LID ( 117 , 131 , 1 ) NOT_FLAT NOT_FLIP 0 0 508
		CHANGE_BLOCK LID ( 118 , 131 , 1 ) NOT_FLAT NOT_FLIP 0 0 509
		CHANGE_BLOCK LID ( 119 , 131 , 1 ) NOT_FLAT NOT_FLIP 0 0 511
		CHANGE_BLOCK LID ( 120 , 131 , 1 ) NOT_FLAT NOT_FLIP 0 180 508
		CHANGE_BLOCK LID ( 117 , 132 , 1 ) NOT_FLAT NOT_FLIP 0 0 508
		CHANGE_BLOCK LID ( 118 , 132 , 1 ) NOT_FLAT NOT_FLIP 0 0 509
		CHANGE_BLOCK LID ( 119 , 132 , 1 ) NOT_FLAT NOT_FLIP 0 90 511
		CHANGE_BLOCK LID ( 120 , 132 , 1 ) NOT_FLAT NOT_FLIP 0 90 510
		CHANGE_BLOCK LID ( 117 , 133 , 1 ) NOT_FLAT NOT_FLIP 0 270 510
		CHANGE_BLOCK LID ( 118 , 133 , 1 ) NOT_FLAT NOT_FLIP 0 270 511
		CHANGE_BLOCK LID ( 119 , 133 , 1 ) NOT_FLAT NOT_FLIP 0 0 509
		CHANGE_BLOCK LID ( 120 , 133 , 1 ) NOT_FLAT NOT_FLIP 0 180 508
		CHANGE_BLOCK LID ( 117 , 134 , 1 ) NOT_FLAT NOT_FLIP 0 270 503
		CHANGE_BLOCK LID ( 118 , 134 , 1 ) NOT_FLAT NOT_FLIP 0 270 508
		CHANGE_BLOCK LID ( 119 , 134 , 1 ) NOT_FLAT NOT_FLIP 0 270 508
		CHANGE_BLOCK LID ( 120 , 134 , 1 ) NOT_FLAT NOT_FLIP 0 180 503
//		ENDIF
		REMOVE_BLOCK ( 121 , 132 , 6 , DONT_DROP )
		ADD_NEW_BLOCK ( 121 , 132 , 1 )
		CHANGE_BLOCK SIDE ( 121 , 132 , 1 ) LEFT WALL BULLET FLAT NOT_FLIP 0 641
		CHANGE_BLOCK SIDE ( 121 , 132 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 641
  WHILE ( wtc2_bomb_planted > 0 )
    DELETE_ITEM ( wtc2_bomb_1 )
    --wtc2_bomb_planted
  ENDWHILE
  MAKE_DOOR_MANUAL ( wtc2_int_door_1 )
  MAKE_DOOR_MANUAL ( wtc2_ext_door_1 )
  ADD_SCORE ( player1, 500000 )
  SET tlpenb2 = 0
  REMOVE_ARROW ( arrow2 )
  SET disarming_bomb_2 = 0
  SET bomb_disarm_counter2 = 0
  CLEAR_TIMER ( disarming_bomb_timer_2 )
  ENDIF
ENDIF


IF ( CHECK_CHARACTER_HEALTH ( player2 , 0 ) )
IF ( wtc1_bomb_planted = 1 )
 IF ( LOCATE_CHARACTER_ON_FOOT ( player2 , 113.0 , 126.5 , 6.0 , 1.0 , 1.0 ) )
  SET disarming_bomb_1 = 1
  IF ( disarm_timer_1_displayed = 0 )
    DISPLAY_TIMER ( disarming_bomb_timer_1 , 20 )
    SET disarm_timer_1_displayed = 1
  ENDIF
  ++bomb_disarm_counter
  IF ( bomb_disarm_counter = 600 )
   DELETE_ITEM ( wtc1_bomb_1 )
   SET wtc1_bomb_planted = 0
   SET bomb_counter = 0
   SET bomb_timer_1_displayed = 0
   SET bomb_disarm_counter = 0
   CLEAR_TIMER ( bomb_armed_1 )
   ADD_SCORE ( player2 , 500000 )
  ENDIF
 ENDIF
 IF ( ( NOT ( LOCATE_CHARACTER_ON_FOOT ( player2 , 113.0 , 126.5 , 6.0 , 1.0 , 1.0 ) ) ) AND ( disarming_bomb_1 = 1 ) )
   SET bomb_disarm_counter = 0
   SET disarming_bomb_1 = 0
   CLEAR_TIMER ( disarming_bomb_timer_1 )
   SET disarm_timer_1_displayed = 0
 ENDIF
ENDIF


IF ( wtc2_bomb_planted = 1 )
 IF ( LOCATE_CHARACTER_ON_FOOT ( player2 , 119.0 , 132.5 , 6.0 , 1.0 , 1.0 ) )
  SET disarming_bomb_2 = 1
  IF ( disarm_timer_2_displayed = 0 )
    DISPLAY_TIMER ( disarming_bomb_timer_2 , 20 )
    SET disarm_timer_2_displayed = 1
  ENDIF
  ++bomb_disarm_counter2
  IF ( bomb_disarm_counter2 = 600 )
   DELETE_ITEM ( wtc2_bomb_1 )
   SET wtc2_bomb_planted = 0
   SET bomb_counter2 = 0
   SET bomb_timer_2_displayed = 0
   SET bomb_disarm_counter2 = 0
   CLEAR_TIMER ( bomb_armed_2 )
   ADD_SCORE ( player2 , 500000 )
  ENDIF
 ENDIF
 IF ( ( NOT ( LOCATE_CHARACTER_ON_FOOT ( player2 , 119.0 , 132.5 , 6.0 , 1.0 , 1.0 ) ) ) AND ( disarming_bomb_1 = 1 ) )
   SET disarming_bomb_2 = 0
   SET bomb_disarm_counter2 = 0
   CLEAR_TIMER ( disarming_bomb_timer_2 )
   SET disarm_timer_2_displayed = 0
 ENDIF
ENDIF

ENDIF

ENDWHILE

LEVELEND