// PLAYERS
PLAYER_PED p1 = ( 143.5 , 105.5 , 3.0 ) 10 90
PLAYER_PED p2 = ( 147.5 , 106.5 , 3.0 ) 11 270
PLAYER_PED p3 = ( 147.5 , 105.5 , 3.0 ) 13 270
PLAYER_PED p4 = ( 143.5 , 106.0 , 3.0 ) 9 90
PLAYER_PED p5 = ( 145.5 , 104.5 , 3.0 ) 5 0
PLAYER_PED p6 = ( 145.5 , 107.5 , 3.0 ) 8 180

// BOTS
CHAR_DATA BOT1 = ( 88.5 , 86.5 , 4.0  )  19  0  GUARD
CHAR_DATA BOT2 = ( 91.5 , 94.5 , 4.0  )  7  180  GUARD
CHAR_DATA BOT3 = ( 87.5 , 103.5 , 4.0  )  19  180  GUARD
CHAR_DATA BOT4 = ( 93.5 , 103.5 , 4.0  )  7  180  GUARD
CHAR_DATA BOT5 = ( 103.5 , 92.5 , 3.0  )  19  180  GUARD
CHAR_DATA BOT6 = ( 108.5 , 92.5 , 4.0  )  7  180  GUARD
CHAR_DATA BOT7 = ( 119.5 , 108.5 , 4.0 ) 19 180 GUARD
CHAR_DATA BOT8 = ( 104.5 , 104.5 , 4.0 ) 7 180 GUARD

CHAR_DATA BOT9 = ( 159.5 , 125.5 , 3.0 ) 17 180 GUARD
CHAR_DATA BOT10 = ( 164.5 , 127.5 , 3.0 ) 17 180 GUARD
CHAR_DATA BOT11 = ( 90.5 , 88.5 , 3.0 ) 17 180 GUARD
CHAR_DATA BOT12 = ( 91.5 , 104.5 , 3.0 ) 17 180 GUARD
CHAR_DATA BOT13 = ( 105.5 , 91.5 , 3.0 ) 17 180 GUARD
CHAR_DATA BOT14 = ( 105.5 , 100.5 , 3.0 ) 17 180 GUARD

DECLARE_POLICELEVEL ( 4 )
// CARS
CAR_DATA CAR1 = ( 38.5 , 39.5 , 4.0 ) 3 180 ZCX5 
CAR_DATA CAR2 = ( 99.5 , 36.5 , 2.0 ) 19 180 STRIPETB 
CAR_DATA CAR3 = ( 43.5 , 39.5 , 4.0 ) 0 180 GUNJEEP 
CAR_DATA CAR4 = ( 61.5 , 43.5 , 2.0 ) 0 0 GUNJEEP 
CAR_DATA CAR5 = ( 156.5 , 118.5 , 2.0 ) 0 0 GUNJEEP
CAR_DATA trailer1 = ( 63.5 , 44.5 , 2.0 ) 7 0 tanker 
CAR_DATA trailer2 = ( 65.5 , 44.5 , 2.0 ) 18 0 TRUKTRNS 
CAR_DATA trailer3 = ( 67.5 , 44.5 , 2.0 ) 21 0 TRUKCONT 

// SHOPS
OBJ_DATA bombshop1 = ( 42.5 , 17.5 , 2.0 ) 0 car_shop bomb_shop
OBJ_DATA paintshop1 = ( 42.5 , 23.5 , 2.0 ) 0 car_shop 28
OBJ_DATA minesshop1 = ( 42.5 , 25.5 , 2.0 ) 0 car_shop mines_shop
OBJ_DATA gunshop1 = ( 42.5 , 19.5 , 2.0 ) 0 car_shop machinegun_shop

OBJ_DATA BOMBSHOP2 = ( 181.5 , 109.5 , 2.0 ) 0 CAR_SHOP BOMB_SHOP
OBJ_DATA MINESSHOP2 = ( 179.5 , 109.5 , 2.0 ) 0 CAR_SHOP MINES_SHOP
OBJ_DATA GUNSHOP2 = ( 177.5 , 109.5 , 2.0 ) 0 CAR_SHOP MACHINEGUN_SHOP 
OBJ_DATA PAINTSHOP2 = ( 175.5 , 109.5 , 2.0 ) 0 CAR_SHOP 15

COUNTER true = 1
COUNTER LOOP = 1

// WEAPONS
  // MACHINE GUNS 
    GENERATOR uzi01 = ( 48.5 , 15.5 ) 0 COLLECT_01 7000 7000 20  
    GENERATOR uzi02 = ( 96.0 , 2.0 ) 0 COLLECT_01 7000 7000 20  
    GENERATOR uzi03 = ( 113.5 , 61.5 ) 0 COLLECT_01 7000 7000 20 
    GENERATOR uzi04 = ( 84.5 , 78.5 ) 0 COLLECT_01 7000 7000 20  
    GENERATOR uzi05 = ( 76.5 , 84.5 ) 0 COLLECT_01 7000 7000 20   
    GENERATOR uzi06 = ( 57.5 , 53.5 ) 0 COLLECT_01 7000 7000 20 
    GENERATOR uzi07 = ( 50.5 , 105.5 ) 0 COLLECT_01 7000 7000 20   
    GENERATOR uzi08 = ( 166.5 , 36.5 ) 0 COLLECT_01 7000 7000 20 
    GENERATOR uzi09 = ( 158.5 , 108.5 ) 0 COLLECT_01 7000 7000 20   
    GENERATOR uzi10 = ( 141.5 , 88.5 ) 0 COLLECT_01 7000 7000 20  
    GENERATOR uzi11 = ( 162.5 , 62.5 ) 0 COLLECT_01 7000 7000 20 
    GENERATOR uzi12 = ( 98.0 , 36.5 ) 0 COLLECT_01 7000 7000 20
  
  // ROCKET LAUNCHERS      
    GENERATOR ROCKET01 = ( 72.0 , 2.0 ) 0 COLLECT_02 7000 7000 5 
    GENERATOR ROCKET02 = ( 80.5 , 56.5 ) 0 COLLECT_02 7000 7000 5    
    GENERATOR ROCKET03 = ( 66.0 , 70.0 ) 0 COLLECT_02 7000 7000 5
    GENERATOR ROCKET04 = ( 98.5 , 85.5 ) 0 COLLECT_02 7000 7000 5
    GENERATOR ROCKET05 = ( 130.5 , 91.5 ) 0 COLLECT_02 7000 7000 5
    GENERATOR ROCKET06 = ( 186.5 , 129.5 ) 0 COLLECT_02 7000 7000 5
    GENERATOR ROCKET07 = ( 153.0 , 20.0 ) 0 COLLECT_02 7000 7000 5
    GENERATOR ROCKET08 = ( 98.5 , 44.5 ) 0 COLLECT_02 7000 7000 5
   
  // FLAMETHROWERS
    GENERATOR FLAME01 = ( 64.5 , 11.0 ) 0 COLLECT_08 7000 7000 10
    GENERATOR FLAME02 = ( 122.5 , 21.0 ) 0 COLLECT_08 7000 7000 10  
    GENERATOR FLAME03 = ( 172.5 , 109.5 ) 0 COLLECT_08 7000 7000 10
    GENERATOR FLAME04 = ( 175.0 , 20.0 ) 0 COLLECT_08 7000 7000 10
    GENERATOR FLAME05 = ( 99.5 , 44.5 ) 0 COLLECT_08 7000 7000 10
    GENERATOR FLAME06 = ( 32.0 , 3.0 ) 0 COLLECT_08 7000 7000 10
    GENERATOR FLAME07 = ( 23.0 , 101.5 ) 0 COLLECT_08 7000 7000 10
    GENERATOR FLAME08 = ( 80.5 , 21.0 , 2.0 ) 0 COLLECT_08 7000 7000 10
  
  // ELECTROGUNS
    GENERATOR ELECTRO01 = ( 98.5 , 94.5 ) 0 COLLECT_03 7000 7000 10
    GENERATOR ELECTRO02 = ( 48.5 , 110.5 ) 0 COLLECT_03 7000 7000 10
    GENERATOR ELECTRO03 = ( 19.5 , 74.5 ) 0 COLLECT_03 7000 7000 10 
    GENERATOR ELECTRO04 = ( 23.5 , 22.0 ) 0 COLLECT_03 7000 7000 10
    GENERATOR ELECTRO05 = ( 73.5 , 32.5 ) 0 COLLECT_03 7000 7000 10       
    GENERATOR ELECTRO06 = ( 165.5 , 8.5 ) 0 COLLECT_03 7000 7000 10
    GENERATOR ELECTRO07 = ( 100.5 , 44.5 ) 0 COLLECT_03 7000 7000 10 
    GENERATOR ELECTRO08 = ( 162.0 , 119.5 ) 0 COLLECT_03 7000 7000 10
    
  // GRENADES
    GENERATOR GRENADE01 = ( 131.0 , 107.0 ) 0 COLLECT_05 7000 7000 15
    GENERATOR GRENADE02 = ( 80.5 , 112.5 ) 0 COLLECT_05 7000 7000 15
    GENERATOR GRENADE03 = ( 177.0 , 124.0 ) 0 COLLECT_05 7000 7000 15
    GENERATOR GRENADE04 = ( 151.0 , 59.5 ) 0 COLLECT_05 7000 7000 15          
    GENERATOR GRENADE05 = ( 68.5 , 34.5 ) 0 COLLECT_05 7000 7000 15
    GENERATOR GRENADE06 = ( 102.5 , 99.5 ) 0 COLLECT_05 7000 7000 15
    GENERATOR GRENADE07 = ( 46.0 , 24.5 ) 0 COLLECT_05 7000 7000 15
    GENERATOR GRENADE08 = ( 113.5 , 18.5 ) 0 COLLECT_05 7000 7000 15
    
  // MOLITOVS
    GENERATOR MOLI01 = ( 113.5 , 7.5 ) 0 COLLECT_04 7000 7000 15
    GENERATOR MOLI02 = ( 43.0 , 3.0 ) 0 COLLECT_04 7000 7000 15   
    GENERATOR MOLI03 = ( 113.5 , 7.5 ) 0 COLLECT_04 7000 7000 15 
    GENERATOR MOLI04 = ( 65.5 , 47.5 ) 0 COLLECT_04 7000 7000 15 
    GENERATOR MOLI05 = ( 30.5 , 64.5 ) 0 COLLECT_04 7000 7000 15
    GENERATOR MOLI06 = ( 97.5 , 72.5 ) 0 COLLECT_04 7000 7000 15 
    GENERATOR MOLI07 = ( 80.5 , 53.5 ) 0 COLLECT_04 7000 7000 15
    GENERATOR MOLI08 = ( 121.5 , 102.5 ) 0 COLLECT_04 7000 7000 15  
  
  // PISTOLS
    GENERATOR PISTOL01 = ( 145.5 , 106.0 ) 0 COLLECT_00 700 700 30
    GENERATOR PISTOL02 = ( 67.5 , 53.5 ) 0 COLLECT_00 7000 7000 30
    GENERATOR PISTOL03 = ( 183.5 , 119.5 ) 0 COLLECT_00 7000 7000 30
    GENERATOR PISTOL04 = ( 142.5 , 32.5 ) 0 COLLECT_00 7000 7000 30 
    
  // SHOTGUNS
    GENERATOR SHOTTY01 = ( 80.5 , 101.5 ) 0 COLLECT_06 7000 7000 15 
    GENERATOR SHOTTY02 = ( 20.5 , 55.5 ) 0 COLLECT_06 7000 7000 15 
    GENERATOR SHOTTY03 = ( 165.5 , 3.5 ) 0 COLLECT_06 7000 7000 15
        
  // CAR WEAPONS
    GENERATOR CARBOMB01 = ( 80.5 , 21.0 ) 0 COLLECT_15 7000 7000 1          
    GENERATOR CARBOMB02 = ( 136.5 , 77.0 ) 0 COLLECT_15 7000 7000 1
    GENERATOR INSTANTCARBOMB01 = ( 98.5 , 97.0 , 2.0 ) 0 COLLECT_23 7000 7000 1 
    GENERATOR CARUZI01 = ( 151.0 , 82.5 ) 0 COLLECT_18 7000 7000 10
    GENERATOR CARUZI02 = ( 19.0 , 104.5 ) 0 COLLECT_18 7000 7000 10
    
  // POWERUPS
    GENERATOR HEALTH01 = ( 96.5 , 35.5 ) 0 COLLECT_30 7000 7000 1  
    GENERATOR HEALTH02 = ( 98.5 , 61.5 ) 0 COLLECT_30 7000 7000 1
    GENERATOR HEALTH03 = ( 128.5 , 106.5 ) 0 COLLECT_30 7000 7000 1
    GENERATOR ARMOR01 = ( 128.5 , 107.5 ) 0 COLLECT_31 7000 7000 1
    GENERATOR ARMOR02 = ( 97.5 , 36.5 ) 0 COLLECT_31 7000 7000 1
    GENERATOR ARMOR03 = ( 32.0 , 46.0 ) 0 COLLECT_31 7000 7000 1
    GENERATOR DD01 = ( 60.5 , 30.5 ) 0 COLLECT_35 7000 7000 1
    GENERATOR DD02 = ( 167.5 , 18.5 ) 0 COLLECT_35 7000 7000 1
    GENERATOR FR01 = ( 159.5 , 136.5 ) 0 COLLECT_36 7000 7000 1
    GENERATOR FR02 = ( 20.5 , 54.5 ) 0 COLLECT_36 7000 7000 1
    GENERATOR INVIS01 = ( 97.0 , 12.5 ) 0 COLLECT_39 9000 9000 1
    GENERATOR INVUL01 = ( 159.5 , 121.5 ) 0 COLLECT_34 9000 9000 1
    GENERATOR GANG01 = ( 43.5 , 46.5 ) 0 COLLECT_40 3500 3500 1
    GENERATOR GANG02 = ( 111.5 , 77.5 ) 0 COLLECT_40 3500 3500 1
    GENERATOR GANG03 = ( 134.5 , 97.5 ) 0 COLLECT_40 3500 3500 1
    GENERATOR GANG04 = ( 20.5 , 80.5 ) 0 COLLECT_40 3500 3500 1
    
// ARROWS
ARROW_DATA BOT1_ARR
ARROW_DATA BOT2_ARR
ARROW_DATA BOT3_ARR
ARROW_DATA BOT4_ARR
ARROW_DATA BOT5_ARR
ARROW_DATA BOT6_ARR
ARROW_DATA BOT7_ARR
ARROW_DATA BOT8_ARR


MAP_ZONE total = ( 1000 , 700 , 50 , 50 , 1000 , 50 , 50 , 700 , 50 , 10 , 0)
//                   CD   GCD  BCD  PCR   PD   MR  CTR   ER   GCR  PPR  GCARR
// ( cardensity , goodcarratio , bad car ratio , police car ratio , ped density , mugger ratio , car thief ratio , elvis ratio , gang char ratio , police ped ratio , gang car ratio)

LEVELSTART

// ARROW COLORS AND DIRECTION
SET_ARROW_COLOUR ( BOT1_ARR , RED )
SET_ARROW_COLOUR ( BOT2_ARR , RED )
SET_ARROW_COLOUR ( BOT3_ARR , YELLOW )
SET_ARROW_COLOUR ( BOT4_ARR , YELLOW )
SET_ARROW_COLOUR ( BOT5_ARR , GREEN )
SET_ARROW_COLOUR ( BOT6_ARR , GREEN )
SET_ARROW_COLOUR ( BOT7_ARR , BLUE )
SET_ARROW_COLOUR ( BOT8_ARR , BLUE )

POINT_ARROW_AT ( BOT1_ARR , BOT1 )
POINT_ARROW_AT ( BOT2_ARR , BOT2 )
POINT_ARROW_AT ( BOT3_ARR , BOT3 )
POINT_ARROW_AT ( BOT4_ARR , BOT4 )
POINT_ARROW_AT ( BOT5_ARR , BOT5 )
POINT_ARROW_AT ( BOT6_ARR , BOT6 )
POINT_ARROW_AT ( BOT7_ARR , BOT7 )
POINT_ARROW_AT ( BOT8_ARR , BOT8 )

// GENERATORS ON/OFF
SWITCH_GENERATOR ( uzi01 , ON )
SWITCH_GENERATOR ( uzi02 , ON )
SWITCH_GENERATOR ( uzi03 , ON )
SWITCH_GENERATOR ( uzi04 , ON )
SWITCH_GENERATOR ( uzi05 , ON )
SWITCH_GENERATOR ( uzi06 , ON )
SWITCH_GENERATOR ( uzi07 , ON )
SWITCH_GENERATOR ( uzi08 , ON )
SWITCH_GENERATOR ( uzi09 , ON )
SWITCH_GENERATOR ( uzi10 , ON )
SWITCH_GENERATOR ( uzi11 , ON )
SWITCH_GENERATOR ( uzi12 , ON )

SWITCH_GENERATOR ( ROCKET01 , ON )
SWITCH_GENERATOR ( ROCKET02 , ON )
SWITCH_GENERATOR ( ROCKET03 , ON )
SWITCH_GENERATOR ( ROCKET04 , ON )
SWITCH_GENERATOR ( ROCKET05 , ON )
SWITCH_GENERATOR ( ROCKET06 , ON )
SWITCH_GENERATOR ( ROCKET07 , ON )
SWITCH_GENERATOR ( ROCKET08 , ON )

SWITCH_GENERATOR ( FLAME01 , ON )
SWITCH_GENERATOR ( FLAME02 , ON )
SWITCH_GENERATOR ( FLAME03 , ON )
SWITCH_GENERATOR ( FLAME04 , ON )
SWITCH_GENERATOR ( FLAME05 , ON )
SWITCH_GENERATOR ( FLAME06 , ON )
SWITCH_GENERATOR ( FLAME07 , ON )
SWITCH_GENERATOR ( FLAME08 , ON )

SWITCH_GENERATOR ( ELECTRO01 , ON )
SWITCH_GENERATOR ( ELECTRO02 , ON )
SWITCH_GENERATOR ( ELECTRO03 , ON )
SWITCH_GENERATOR ( ELECTRO04 , ON )
SWITCH_GENERATOR ( ELECTRO05 , ON )
SWITCH_GENERATOR ( ELECTRO06 , ON )
SWITCH_GENERATOR ( ELECTRO07 , ON )
SWITCH_GENERATOR ( ELECTRO08 , ON )

SWITCH_GENERATOR ( GRENADE01 , ON )
SWITCH_GENERATOR ( GRENADE02 , ON )
SWITCH_GENERATOR ( GRENADE03 , ON )
SWITCH_GENERATOR ( GRENADE04 , ON )
SWITCH_GENERATOR ( GRENADE05 , ON )
SWITCH_GENERATOR ( GRENADE06 , ON )
SWITCH_GENERATOR ( GRENADE07 , ON )
SWITCH_GENERATOR ( GRENADE08 , ON )

SWITCH_GENERATOR ( MOLI01 , ON )
SWITCH_GENERATOR ( MOLI02 , ON )
SWITCH_GENERATOR ( MOLI03 , ON )
SWITCH_GENERATOR ( MOLI04 , ON )
SWITCH_GENERATOR ( MOLI05 , ON )
SWITCH_GENERATOR ( MOLI06 , ON )
SWITCH_GENERATOR ( MOLI07 , ON )
SWITCH_GENERATOR ( MOLI08 , ON )

SWITCH_GENERATOR ( PISTOL01 , ON )
SWITCH_GENERATOR ( PISTOL02 , ON )
SWITCH_GENERATOR ( PISTOL03 , ON )
SWITCH_GENERATOR ( PISTOL04 , ON )

SWITCH_GENERATOR ( SHOTTY01 , ON )
SWITCH_GENERATOR ( SHOTTY02 , ON )
SWITCH_GENERATOR ( SHOTTY03 , ON )

SWITCH_GENERATOR ( CARBOMB01 , ON )
SWITCH_GENERATOR ( CARBOMB02 , ON )
SWITCH_GENERATOR ( INSTANTCARBOMB01 , ON )
SWITCH_GENERATOR ( CARUZI01 , ON )
SWITCH_GENERATOR ( CARUZI02 , ON )

SWITCH_GENERATOR ( HEALTH01 , ON )
SWITCH_GENERATOR ( HEALTH02 , ON )
SWITCH_GENERATOR ( HEALTH03 , ON )
SWITCH_GENERATOR ( ARMOR01 , ON )
SWITCH_GENERATOR ( ARMOR02 , ON )
SWITCH_GENERATOR ( ARMOR03 , ON )

SWITCH_GENERATOR ( DD01 , ON )
SWITCH_GENERATOR ( DD02 , ON )
SWITCH_GENERATOR ( FR01 , ON )
SWITCH_GENERATOR ( FR02 , ON )
SWITCH_GENERATOR ( INVIS01 , ON )
SWITCH_GENERATOR ( INVUL01 , ON )
SWITCH_GENERATOR ( GANG01 , ON )
SWITCH_GENERATOR ( GANG02 , ON )
SWITCH_GENERATOR ( GANG03 , ON )
SWITCH_GENERATOR ( GANG04 , ON )

//BOT WEAPONS
GIVE_WEAPON ( BOT1 , ROCKET_LAUNCHER )
GIVE_WEAPON ( BOT2 , ROCKET_LAUNCHER )
GIVE_WEAPON ( BOT3 , FLAME_THROWER )
GIVE_WEAPON ( BOT4 , FLAME_THROWER )
GIVE_WEAPON ( BOT5 , SILENCED_MACHINE_GUN )
GIVE_WEAPON ( BOT6 , SILENCED_MACHINE_GUN )
GIVE_WEAPON ( BOT7 , ELECTRO_GUN )
GIVE_WEAPON ( BOT8 , ELECTRO_GUN )

GIVE_WEAPON ( BOT9 , ROCKET_LAUNCHER )
GIVE_WEAPON ( BOT10 , ROCKET_LAUNCHER )
GIVE_WEAPON ( BOT11 , ROCKET_LAUNCHER )
GIVE_WEAPON ( BOT12 , ROCKET_LAUNCHER )
GIVE_WEAPON ( BOT13 , ROCKET_LAUNCHER )
GIVE_WEAPON ( BOT14 , ROCKET_LAUNCHER )

// BOT SHOOTING SKILL
SET_CHAR_SHOOTING_SKILL ( BOT1 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT2 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT3 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT4 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT5 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT6 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT7 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT8 , CRACK_SHOT )

SET_CHAR_SHOOTING_SKILL ( BOT9 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT10 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT11 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT12 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT13 , CRACK_SHOT )
SET_CHAR_SHOOTING_SKILL ( BOT14 , CRACK_SHOT )

// BOT THREAT SEARCH
SET_CHAR_THREAT_SEARCH ( BOT1 , AREA )
SET_CHAR_THREAT_SEARCH ( BOT2 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_SEARCH ( BOT3 , AREA )
SET_CHAR_THREAT_SEARCH ( BOT4 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_SEARCH ( BOT5 , AREA )
SET_CHAR_THREAT_SEARCH ( BOT6 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_SEARCH ( BOT7 , AREA )
SET_CHAR_THREAT_SEARCH ( BOT8 , AREA_PLAYER_ONLY )

SET_CHAR_THREAT_SEARCH ( BOT9 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_SEARCH ( BOT10 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_SEARCH ( BOT11 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_SEARCH ( BOT12 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_SEARCH ( BOT13 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_SEARCH ( BOT14 , AREA_PLAYER_ONLY )

// BOT THREAT REACTION
SET_CHAR_THREAT_REACTION ( BOT1 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT2 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT3 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT4 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT5 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT6 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT7 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT8 , REACT_AS_NORMAL )

SET_CHAR_THREAT_REACTION ( BOT9 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT10 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT11 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT12 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT13 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( BOT14 , REACT_AS_NORMAL )

// BOT OBJECTIVES
SET_CHAR_OBJECTIVE ( BOT1 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT2 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT3 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT4 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT5 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT6 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT7 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT8 , GUARD_SPOT )

SET_CHAR_OBJECTIVE ( BOT9 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT10 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT11 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT12 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT13 , GUARD_SPOT )
SET_CHAR_OBJECTIVE ( BOT14 , GUARD_SPOT )

// BOT PATROL POINTS
ADD_PATROL_POINT ( BOT1 , 84.5 , 84.5 , 2.0 )
ADD_PATROL_POINT ( BOT1 , 84.5 , 99.5 , 2.0 )
ADD_PATROL_POINT ( BOT1 , 89.5 , 92.5 , 2.0 )

ADD_PATROL_POINT ( BOT2 , 94.5 , 86.5 , 2.0 )
ADD_PATROL_POINT ( BOT2 , 87.5 , 90.5 , 2.0 )
ADD_PATROL_POINT ( BOT2 , 87.5 , 94.5 , 2.0 )

ADD_PATROL_POINT ( BOT3 , 94.5 , 99.5 , 2.0 )
ADD_PATROL_POINT ( BOT3 , 94.5 , 108.5 , 2.0 )
ADD_PATROL_POINT ( BOT3 , 87.5 , 102.5 , 2.0 )

ADD_PATROL_POINT ( BOT4 , 86.5 , 99.5 , 2.0 )
ADD_PATROL_POINT ( BOT4 , 89.5 , 92.5 , 2.0 )
ADD_PATROL_POINT ( BOT4 , 86.5 , 105.5 , 2.0 )

ADD_PATROL_POINT ( BOT5 , 105.5 , 100.5 , 2.0 )
ADD_PATROL_POINT ( BOT5 , 113.5 , 92.5 , 2.0 )
ADD_PATROL_POINT ( BOT5 , 106.5 , 87.5 , 2.0 )

ADD_PATROL_POINT ( BOT6 , 113.5 , 101.5 , 2.0 )
ADD_PATROL_POINT ( BOT6 , 102.5 , 99.5 , 2.0 )
ADD_PATROL_POINT ( BOT6 , 105.5 , 91.5 , 2.0 )

ADD_PATROL_POINT ( BOT7 , 119.5 , 104.5 , 2.0 )
ADD_PATROL_POINT ( BOT7 , 109.5 , 99.5 , 2.0 )
ADD_PATROL_POINT ( BOT7 , 102.5 , 108.5 , 2.0 )

ADD_PATROL_POINT ( BOT8 , 110.5 , 106.5 , 2.0 )
ADD_PATROL_POINT ( BOT8 , 107.5 , 101.5 , 2.0 )
ADD_PATROL_POINT ( BOT8 , 100.5 , 112.5 , 2.0 )


// CAR WEAPONS, PLAYER WEAPONS
GIVE_WEAPON ( CAR1 , car_MACHINE_GUN , 20 )
GIVE_WEAPON ( CAR2 , CAR_MACHINE_GUN , 20 )
GIVE_WEAPON ( CAR3 , CAR_FLAMETHROWER , 99 )
  SET_CAR_ROCKETPROOF ( CAR3 , ON )
  SET_CAR_BULLETPROOF ( CAR3 , ON )
  SET_CAR_FLAMEPROOF  ( CAR3 , ON )
GIVE_WEAPON ( CAR4 , CAR_FLAMETHROWER , 99 )
  SET_CAR_ROCKETPROOF ( CAR4 , ON )
  SET_CAR_BULLETPROOF ( CAR4 , ON )
  SET_CAR_FLAMEPROOF  ( CAR4 , ON )
GIVE_WEAPON ( CAR5 , CAR_FLAMETHROWER , 99 )
  SET_CAR_ROCKETPROOF ( CAR5 , ON )
  SET_CAR_BULLETPROOF ( CAR5 , ON )
  SET_CAR_FLAMEPROOF  ( CAR5 , ON )


WHILE_EXEC( LOOP = 1 )

// BOT 1 RESPAWN
 IF ( HAS_CHARACTER_DIED ( BOT1 ) )
    REMOVE_ARROW ( BOT1_arr )
    DELETE_ITEM  ( BOT1 )
    BOT1 = CREATE_CHAR  ( 88.5 , 86.5 , 3.0  )  19  0  GUARD END
    GIVE_WEAPON ( BOT1 , ROCKET_LAUNCHER )
    SET_CHAR_THREAT_SEARCH ( BOT1 , AREA )
    SET_CHAR_THREAT_REACTION ( BOT1 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT1 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT1 , GUARD_SPOT )
    POINT_ARROW_AT ( BOT1_arr , BOT1 ) 
    ADD_PATROL_POINT ( BOT1 , 84.5 , 84.5 , 2.0 )
    ADD_PATROL_POINT ( BOT1 , 84.5 , 99.5 , 2.0 )
    ADD_PATROL_POINT ( BOT1 , 89.5 , 92.5 , 2.0 )
  ENDIF
 
// BOT 2 RESPAWN
  IF ( HAS_CHARACTER_DIED ( BOT2 ) )
    REMOVE_ARROW ( BOT2_arr )
    DELETE_ITEM  ( BOT2 )
    BOT2 = CREATE_CHAR  ( 91.5 , 94.5 , 3.0  )  7  0  GUARD END
    GIVE_WEAPON ( BOT2 , ROCKET_LAUNCHER )
    SET_CHAR_THREAT_SEARCH ( BOT2 , AREA_PLAYER_ONLY )
    SET_CHAR_THREAT_REACTION ( BOT2 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT2 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT2 , GUARD_SPOT )
    POINT_ARROW_AT ( BOT2_arr , BOT2 )
    ADD_PATROL_POINT ( BOT2 , 94.5 , 86.5 , 2.0 )
    ADD_PATROL_POINT ( BOT2 , 87.5 , 90.5 , 2.0 )
    ADD_PATROL_POINT ( BOT2 , 87.5 , 94.5 , 2.0 )
  ENDIF 

// BOT 3 RESPANW
  IF ( HAS_CHARACTER_DIED ( BOT3 ) )
    REMOVE_ARROW ( BOT3_arr )
    DELETE_ITEM  ( BOT3 )
    BOT3 = CREATE_CHAR  ( 87.5 , 103.5 , 3.0  )  19  0  GUARD END
    GIVE_WEAPON ( BOT3 , FLAME_THROWER )
    SET_CHAR_THREAT_SEARCH ( BOT3 , AREA )
    SET_CHAR_THREAT_REACTION ( BOT3 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT3 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT3 , GUARD_SPOT )
    POINT_ARROW_AT ( BOT3_arr , BOT3 ) 
    ADD_PATROL_POINT ( BOT3 , 94.5 , 99.5 , 2.0 )
    ADD_PATROL_POINT ( BOT3 , 94.5 , 108.5 , 2.0 )
    ADD_PATROL_POINT ( BOT3 , 87.5 , 102.5 , 2.0 )
  ENDIF 

// BOT 4 RESPAWN
  IF ( HAS_CHARACTER_DIED ( BOT4 ) )
    REMOVE_ARROW ( BOT4_arr )
    DELETE_ITEM  ( BOT4 )
    BOT4 = CREATE_CHAR  ( 93.5 , 103.5 , 3.0  )  7  0  GUARD END
    GIVE_WEAPON ( BOT4 , FLAME_THROWER )
    SET_CHAR_THREAT_SEARCH ( BOT4 , AREA_PLAYER_ONLY )
    SET_CHAR_THREAT_REACTION ( BOT4 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT4 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT4 , GUARD_SPOT )
    POINT_ARROW_AT ( BOT4_arr , BOT4 ) 
    ADD_PATROL_POINT ( BOT4 , 86.5 , 99.5 , 2.0 )
    ADD_PATROL_POINT ( BOT4 , 89.5 , 92.5 , 2.0 )
    ADD_PATROL_POINT ( BOT4 , 86.5 , 105.5 , 2.0 )
  ENDIF 

// BOT 5 RESPAWN
  IF ( HAS_CHARACTER_DIED ( BOT5 ) )
    REMOVE_ARROW ( BOT5_arr )
    DELETE_ITEM  ( BOT5 )
    BOT5 = CREATE_CHAR  ( 103.5 , 92.5 , 3.0  )  19  180  GUARD END
    GIVE_WEAPON ( BOT5 , SILENCED_MACHINE_GUN )
    SET_CHAR_THREAT_SEARCH ( BOT5 , AREA )
    SET_CHAR_THREAT_REACTION ( BOT5 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT5 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT5 , GUARD_SPOT )
    POINT_ARROW_AT ( BOT5_arr , BOT5 ) 
    ADD_PATROL_POINT ( BOT5 , 105.5 , 100.5 , 2.0 )
    ADD_PATROL_POINT ( BOT5 , 113.5 , 92.5 , 2.0 )
    ADD_PATROL_POINT ( BOT5 , 106.5 , 87.5 , 2.0 )
  ENDIF 

// BOT 6 RESPAWN
  IF ( HAS_CHARACTER_DIED ( BOT6 ) )
    REMOVE_ARROW ( BOT6_arr )
    DELETE_ITEM  ( BOT6 )
    BOT6 = CREATE_CHAR  ( 108.5 , 92.5 , 3.0  )  7  0  GUARD END
    GIVE_WEAPON ( BOT6 , SILENCED_MACHINE_GUN )
    SET_CHAR_THREAT_SEARCH ( BOT6 , AREA_PLAYER_ONLY )
    SET_CHAR_THREAT_REACTION ( BOT6 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT6 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT6 , GUARD_SPOT )
    POINT_ARROW_AT ( BOT6_arr , BOT6 ) 
    ADD_PATROL_POINT ( BOT6 , 113.5 , 101.5 , 2.0 )
    ADD_PATROL_POINT ( BOT6 , 102.5 , 99.5 , 2.0 )
    ADD_PATROL_POINT ( BOT6 , 105.5 , 91.5 , 2.0 )
 ENDIF 

// BOT 7 RESPAWN
  IF ( HAS_CHARACTER_DIED ( BOT7 ) )
    REMOVE_ARROW ( BOT7_arr )
    DELETE_ITEM  ( BOT7 )
    BOT7 = CREATE_CHAR  ( 119.5 , 108.5 , 4.0 )  19  0  GUARD END
    GIVE_WEAPON ( BOT7 , ELECTRO_GUN )
    SET_CHAR_THREAT_SEARCH ( BOT7 , AREA )
    SET_CHAR_THREAT_REACTION ( BOT7 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT7 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT7 , GUARD_SPOT )
    POINT_ARROW_AT ( BOT7_arr , BOT7 ) 
    ADD_PATROL_POINT ( BOT7 , 119.5 , 104.5 , 2.0 )
    ADD_PATROL_POINT ( BOT7 , 109.5 , 99.5 , 2.0 )
    ADD_PATROL_POINT ( BOT7 , 102.5 , 108.5 , 2.0 )
  ENDIF   

// BOT 8 RESPAWN
  IF ( HAS_CHARACTER_DIED ( BOT8 ) )
    REMOVE_ARROW ( BOT8_arr )
    DELETE_ITEM  ( BOT8 )
    BOT8 = CREATE_CHAR  ( 104.5 , 104.5 , 4.0 )  7  0  GUARD END
    GIVE_WEAPON ( BOT8 , ELECTRO_GUN )
    SET_CHAR_THREAT_SEARCH ( BOT8 , AREA_PLAYER_ONLY )
    SET_CHAR_THREAT_REACTION ( BOT8 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT8 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT8 , GUARD_SPOT )
    POINT_ARROW_AT ( BOT8_arr , BOT8 ) 
    ADD_PATROL_POINT ( BOT8 , 110.5 , 106.5 , 2.0 )
    ADD_PATROL_POINT ( BOT8 , 107.5 , 101.5 , 2.0 )
    ADD_PATROL_POINT ( BOT8 , 100.5 , 112.5 , 2.0 )
  ENDIF 
  
// BOT 9 RESPAWN
  IF ( HAS_CHARACTER_DIED ( BOT9 ) )
    DELETE_ITEM  ( BOT9 )
    BOT9 = CREATE_CHAR  ( 159.5 , 125.5 , 3.0 ) 17 180  GUARD END
    GIVE_WEAPON ( BOT9 , ROCKET_LAUNCHER )
    SET_CHAR_THREAT_SEARCH ( BOT9 , AREA_PLAYER_ONLY )
    SET_CHAR_THREAT_REACTION ( BOT9 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT9 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT9 , GUARD_SPOT )
  ENDIF   

// BOT 10 RESPAWN  
  IF ( HAS_CHARACTER_DIED ( BOT10 ) )
    DELETE_ITEM  ( BOT10 )
    BOT10 = CREATE_CHAR  ( 164.5 , 127.5 , 3.0 ) 17 180  GUARD END
    GIVE_WEAPON ( BOT10 , ROCKET_LAUNCHER )
    SET_CHAR_THREAT_SEARCH ( BOT10 , AREA_PLAYER_ONLY )
    SET_CHAR_THREAT_REACTION ( BOT10 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT10 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT10 , GUARD_SPOT )
  ENDIF   

// BOT 11 RESPAWN
  IF ( HAS_CHARACTER_DIED ( BOT11 ) )
    DELETE_ITEM  ( BOT11 )
    BOT11 = CREATE_CHAR  ( 90.5 , 88.5 , 3.0 ) 17 180  GUARD END
    GIVE_WEAPON ( BOT11 , ROCKET_LAUNCHER )
    SET_CHAR_THREAT_SEARCH ( BOT11 , AREA_PLAYER_ONLY )
    SET_CHAR_THREAT_REACTION ( BOT11 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT11 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT11 , GUARD_SPOT )
  ENDIF
  
// BOT 12 RESPAWN
  IF ( HAS_CHARACTER_DIED ( BOT12 ) )
    DELETE_ITEM  ( BOT12 )
    BOT12 = CREATE_CHAR  ( 91.5 , 104.5 , 3.0 ) 17 180  GUARD END
    GIVE_WEAPON ( BOT12 , ROCKET_LAUNCHER )
    SET_CHAR_THREAT_SEARCH ( BOT12 , AREA_PLAYER_ONLY )
    SET_CHAR_THREAT_REACTION ( BOT12 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT12 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT12 , GUARD_SPOT )
  ENDIF  

// BOT 13 RESPAWN
  IF ( HAS_CHARACTER_DIED ( BOT13 ) )
    DELETE_ITEM  ( BOT13 )
    BOT13 = CREATE_CHAR  ( 105.5 , 91.5 , 3.0 ) 17 180  GUARD END
    GIVE_WEAPON ( BOT13 , ROCKET_LAUNCHER )
    SET_CHAR_THREAT_SEARCH ( BOT13 , AREA_PLAYER_ONLY )
    SET_CHAR_THREAT_REACTION ( BOT13 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT13 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT13 , GUARD_SPOT )
  ENDIF

// BOT 14 RESPAWN
  IF ( HAS_CHARACTER_DIED ( BOT14 ) )
    DELETE_ITEM  ( BOT14 )
    BOT14 = CREATE_CHAR  ( 105.5 , 100.5 , 3.0 ) 17 180  GUARD END
    GIVE_WEAPON ( BOT14 , ROCKET_LAUNCHER )
    SET_CHAR_THREAT_SEARCH ( BOT14 , AREA_PLAYER_ONLY )
    SET_CHAR_THREAT_REACTION ( BOT14 , REACT_AS_NORMAL )
    SET_CHAR_SHOOTING_SKILL ( BOT14 , CRACK_SHOT )
    SET_CHAR_OBJECTIVE ( BOT14 , GUARD_SPOT )
  ENDIF  
  

DO_NOWT
ENDWHILE
RETURN
LEVELEND

