// Equilibriub (originally Viva la Vida) by Pierogi88 4/10/10 


PLAYER_PED player1 = ( 132.5 , 88.5 , 2.0 ) 9 0
PLAYER_PED player2 = ( 72.5 , 30.5 , 2.0 ) 4 0
PLAYER_PED player3 = ( 103.5 , 74.5 , 2.0 ) 7 0
PLAYER_PED player4 = ( 49.5 , 57.5 , 2.0 ) 10 0
PLAYER_PED player5 = ( 122.0 , 122.0 , 2.0 ) 5 0
PLAYER_PED player6 = ( 48.5 , 84.5 , 2.0 ) 8 0



RADIO_STATION rockstar = STATION_DOWNTOWN ( 212.5 , 22.5 )
RADIO_STATION futuro = STATION_ZAIBATSU ( 155.5 , 4.5 )
RADIO_STATION funami = STATION_YAKUZA ( 247.5 , 27.5 )
RADIO_STATION lithium = STATION_LOONIE ( 150.5 , 39.5 )

GENERATOR bazo1 = ( 130.5 , 109.5 , 3.0 ) 0 COLLECT_02 7500 7500 5
GENERATOR flamer1 = ( 118.5 , 121.5 , 3.0 ) 0 COLLECT_08 6000 6000 10
GENERATOR pistol1 = ( 102.0 , 108.2 , 2.0 ) 0 COLLECT_00 6000 6000 40
GENERATOR mach1 = ( 111.8 , 96.8 , 3.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR molotov1 = ( 129.5 , 93.5 , 4.0 ) 0 COLLECT_04 6000 6000 8
GENERATOR shotgun1 = ( 101.5 , 73.5 , 2.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR dualpistol1 = ( 136.0 , 88.0 , 2.0 ) 0 COLLECT_10 6000 6000 30
GENERATOR grenades1 = ( 111.0 , 76.5 , 2.0 ) 0 COLLECT_05 6000 6000 12
GENERATOR silmach = ( 109.0 , 41.2 , 2.0 ) 0 COLLECT_09 6000 6000 10
GENERATOR flamer2 = ( 98.0 , 56.0 , 3.0 ) 0 COLLECT_08 6000 6000 10
GENERATOR dualpistol2 = ( 79.0 , 57.0 , 2.0 ) 0 COLLECT_10 6000 6000 30
GENERATOR electro = ( 53.0 , 55.0 , 3.0 ) 0 COLLECT_03 6000 6000 10
GENERATOR pistol2 = ( 48.2 , 60.7 , 2.0 ) 0 COLLECT_00 6000 6000 40
GENERATOR pistol3 = ( 89.5 , 46.5 , 2.0 ) 0 COLLECT_00 6000 6000 40
GENERATOR pistol4 = ( 59.0 , 33.5 , 4.0 ) 0 COLLECT_00 6000 6000 40
GENERATOR mach2 = ( 51.0 , 68.0 , 3.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR grenades2 = ( 58.0 , 80.0 , 2.0 ) 0 COLLECT_05 6000 6000 12
GENERATOR shotgun2 = ( 51.5 , 84.5 , 3.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR dualpistol3 = ( 29.0 , 71.5 , 3.0 ) 0 COLLECT_10 6000 6000 30
GENERATOR grenades3 = ( 23.5 , 60.5 , 2.0 ) 0 COLLECT_05 6000 6000 12
GENERATOR bazo2 = ( 67.0 , 40.5 , 4.0 ) 0 COLLECT_02 7500 7500 5
GENERATOR mach3 = ( 44.0 , 39.0 , 2.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR molotov2 = ( 71.5 , 32.0 , 2.0 ) 0 COLLECT_04 6000 6000 8
GENERATOR shotgun3 = ( 72.5 , 22.5 , 2.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR bimber1 = ( 97.5 , 49.0 , 1.0 ) 0 COLLECT_04 6000 6000 20
GENERATOR bimber2 = ( 91.5 , 49.0 , 1.0 ) 0 COLLECT_04 6000 6000 20
GENERATOR bimber3 = ( 85.5 , 49.5 , 1.0 ) 0 COLLECT_04 6000 6000 20
GENERATOR electro1 = ( 31.5 , 41.5 , 3.0 ) 0 COLLECT_03 6000 6000 50
GENERATOR shotgun4 = ( 31.0 , 48.0 , 2.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR bazo3 = ( 87.5 , 93.5 , 3.0 ) 0 COLLECT_02 7500 7500 20


GENERATOR vehbomb = ( 114.0 , 80.5 , 2.0 ) 0 COLLECT_15 6000 6000 1
GENERATOR vehmines = ( 65.5 , 21.5 , 3.0 ) 0 COLLECT_17 6000 6000 4
GENERATOR vehmach = ( 103.0 , 70.0 , 5.0 ) 0 COLLECT_18 6000 6000 10
GENERATOR vehoil = ( 48.0 , 29.5 , 2.0 ) 0 COLLECT_16 6000 6000 8

GENERATOR gang1 = ( 120.5 , 98.0 , 2.0 ) 0 COLLECT_40 6000 6000
GENERATOR gang2 = ( 71.0 , 54.0 , 2.0 ) 0 COLLECT_40 6000 6000
GENERATOR health = ( 119.5 , 89.5 , 2.0 ) 0 COLLECT_30 6000 6000
GENERATOR armor = ( 53.0 , 68.0 , 3.0 ) 0 COLLECT_31 6000 6000
GENERATOR bribe = ( 33.5 , 70.0 , 3.0 ) 0 COLLECT_33 6000 6000
GENERATOR dd = ( 97.5 , 48.5 , 2.0 ) 0 COLLECT_35 6000 6000
GENERATOR fr = ( 69.6 , 105.4 , 2.0 ) 0 COLLECT_36 6000 6000
GENERATOR invisibility = ( 62.5 , 54.5 , 3.0 ) 0 COLLECT_39 6000 6000
GENERATOR immortal = ( 45.5 , 65.0 , 6.0 ) 0 COLLECT_34 6000 6000
GENERATOR multi = ( 54.0 , 84.5 , 6.0 ) 0 COLLECT_28 6000 6000
GENERATOR paralizator1 = ( 128.5 , 116.5 , 4.0 ) 0 COLLECT_37 6000 6000
GENERATOR paralizator2 = ( 40.8 , 80.0 , 2.0 ) 0 COLLECT_37 6000 6000



PARKED_CAR_DATA trailer1 = ( 44.5 , 96.0 , 2.0 ) 19 180 TRUKTRNS
PARKED_CAR_DATA trailer2 = ( 76.5 , 11.5 , 2.0 ) 33 0 TANKER
PARKED_CAR_DATA trailer3 = ( 144.5 , 97.5 , 2.0 ) 5 270 TRUKTRNS
PARKED_CAR_DATA trailer4 = ( 52.5 , 96.0 , 2.0 ) 30 180 TRUKCONT
PARKED_CAR_DATA trailer5 = ( 27.5 , 86.5 , 2.0 ) 20 180 TANKER
PARKED_CAR_DATA tank1 = ( 115.5 , 64.0 , 2.0 ) 1 270 TANK
PARKED_CAR_DATA tank2 = ( 94.0 , 34.7 , 2.0 ) 1 0 TANK
PARKED_CAR_DATA yakuza1 = ( 26.5 , 73.5 , 3.0 ) 15 90 MIURA
PARKED_CAR_DATA yakuza2 = ( 26.5 , 69.5 , 3.0 ) 15 90 MIURA
PARKED_CAR_DATA trex = ( 88.0 , 62.0 , 2.0 ) 32 0 TBIRD
PARKED_CAR_DATA blacks = ( 111.5 , 106.5 , 5.0 ) 1 180 EDSELFBI
PARKED_CAR_DATA jip1 = ( 130.4 , 103.5 , 5.0 ) 1 0 GUNJEEP
PARKED_CAR_DATA jip2 = ( 129.6 , 103.5 , 5.0 ) 1 0 GUNJEEP
PARKED_CAR_DATA parowka = ( 102.7 , 98.0 , 5.0 ) 1 90 APC
PARKED_CAR_DATA limuzyn = ( 49.0 , 31.4 , 2.0 ) 28 270 ISETLIMO
PARKED_CAR_DATA maluch = ( 66.0 , 28.0 , 2.0 ) 1 0 ISETTA
PARKED_CAR_DATA van = ( 45.1 , 80.0 , 2.0 ) 1 90 BANKVAN
PARKED_CAR_DATA zetka = ( 102.0 , 93.0 , 2.0 ) 1 180 VTYPE
PARKED_CAR_DATA meteor = ( 32.2 , 51.0 , 2.0 ) 35 90 STRATOS



DECLARE_POLICELEVEL ( 3 )

OBJ_DATA carblock1 = ( 61.1 , 54.4 , 6.0 ) 90 BOLLARD
OBJ_DATA carblock2 = ( 61.1 , 53.4 , 6.0 ) 90 BOLLARD
OBJ_DATA carblock3 = ( 61.1 , 52.4 , 6.0 ) 90 BOLLARD
OBJ_DATA carblock4 = ( 61.1 , 51.4 , 6.0 ) 90 BOLLARD
OBJ_DATA carblock5 = ( 61.6 , 50.6 , 6.0 ) 0 BOLLARD
OBJ_DATA lawka1 = ( 104.3 , 77.5 , 2.0 ) 90 BENCH
OBJ_DATA lawka2 = ( 104.3 , 80.5 , 2.0 ) 90 BENCH
OBJ_DATA lawka3 = ( 104.3 , 83.5 , 2.0 ) 90 BENCH
OBJ_DATA lawka4 = ( 104.3 , 86.5 , 2.0 ) 90 BENCH
OBJ_DATA lawka5 = ( 103.7 , 77.5 , 2.0 ) 270 BENCH
OBJ_DATA lawka6 = ( 103.7 , 80.5 , 2.0 ) 270 BENCH
OBJ_DATA lawka7 = ( 103.7 , 83.5 , 2.0 ) 270 BENCH
OBJ_DATA lawka8 = ( 103.7 , 86.5 , 2.0 ) 270 BENCH
OBJ_DATA lawka = ( 46.4 , 62.4 , 6.0 ) 90 INVISIBLE_DESTRUCTIBLE
//OBJ_DATA blokada1 = ( 103.0 , 86.5 , 2.0 ) 270 ROADBLOCK
OBJ_DATA hydrant1 = ( 104.0 , 93.0 , 2.0 ) 0 HYDRANT
OBJ_DATA hydrant2 = ( 50.5 , 49.4 , 2.0 ) 0 HYDRANT
OBJ_DATA gener1 = ( 33.5 , 43.5 , 5.0 ) 0 POWERGEN
OBJ_DATA gener2 = ( 113.5 , 91.5 , 6.0 ) 0 POWERGEN
//OBJ_DATA gener3 = ( 128.5 , 84.0 , 5.0 ) 0 POWERGEN
OBJ_DATA carblock6 = ( 130.8 , 108.0 , 3.0 ) 0 BOLLARD
OBJ_DATA carblock7 = ( 130.0 , 108.0 , 3.0 ) 0 BOLLARD
OBJ_DATA carblock8 = ( 129.2 , 108.0 , 3.0 ) 0 BOLLARD
OBJ_DATA tele1 = ( 46.4 , 60.0 , 2.0 ) 90 CRATE
OBJ_DATA tele2 = ( 119.5 , 92.5 , 2.0 ) 0 FOOTY
OBJ_DATA tele3 = ( 102.5 , 73.5 , 2.0 ) 90 BIN_LID
//OBJ_DATA tele4 = ( 83.5 , 35.6 , 4.0 ) 90 OIL
OBJ_DATA carblock9 = ( 83.5 , 95.2 , 4.0 ) 0 BOLLARD
OBJ_DATA cb1 = ( 90.6 , 22.5 , 2.0 ) 0 BOLLARD
OBJ_DATA cb2 = ( 91.5 , 22.5 , 2.0 ) 0 BOLLARD
OBJ_DATA cb3 = ( 92.4 , 22.5 , 2.0 ) 0 BOLLARD
OBJ_DATA cb4 = ( 93.3 , 22.5 , 2.0 ) 0 BOLLARD
OBJ_DATA cb5 = ( 94.2 , 22.5 , 2.0 ) 0 BOLLARD
OBJ_DATA cb6 = ( 95.0 , 22.9 , 2.0 ) 90 BOLLARD
OBJ_DATA cb7 = ( 95.0 , 23.8 , 2.0 ) 90 BOLLARD
OBJ_DATA cb8 = ( 95.0 , 24.7 , 2.0 ) 90 BOLLARD
OBJ_DATA cb9 = ( 95.0 , 25.6 , 2.0 ) 90 BOLLARD
OBJ_DATA cb10 = ( 95.0 , 26.5 , 2.0 ) 90 BOLLARD
OBJ_DATA cb11 = ( 95.0 , 27.4 , 2.0 ) 90 BOLLARD
OBJ_DATA cb12 = ( 95.0 , 28.3 , 2.0 ) 90 BOLLARD
OBJ_DATA cb13 = ( 95.0 , 29.2 , 2.0 ) 90 BOLLARD
OBJ_DATA cb14 = ( 95.0 , 30.1 , 2.0 ) 90 BOLLARD
OBJ_DATA cb15 = ( 95.3 , 30.9 , 2.0 ) 135 BOLLARD
OBJ_DATA cb16 = ( 95.9 , 30.9 , 2.0 ) 45 BOLLARD
OBJ_DATA cb17 = ( 96.2 , 30.1 , 2.0 ) 90 BOLLARD
OBJ_DATA cb18 = ( 95.6 , 29.4 , 2.0 ) 135 BOLLARD



OBJ_DATA oilshop = ( 27.0 , 62.0 , 2.0 ) 0 car_shop oilslick_shop
OBJ_DATA paintshop = ( 36.0 , 68.0 , 2.0 ) 0 car_shop 28
OBJ_DATA gunshop = ( 33.0 , 65.0 , 2.0 ) 0 car_shop machinegun_shop
//OBJ_DATA kf1 = ( 132.1 , 108.5 , 5.0 ) 0 kill_frenzy

SOUND kriszna = ( 130.0 , 107.5 , 3.0 ) KRISHNA_CHANT PLAY_FOREVER
kriszna = CREATE_SOUND ( 130.0 , 107.5 , 4.0 ) KRISHNA_CHANT PLAY_FOREVER END


COUNTER mainloop = 1


LEVELSTART


SET_SHADING_LEVEL  ( 27 )
SET_AMBIENT_LEVEL  ( 0.33 , 0 )

CAR_DATA smurfs
CAR_DATA gt
CAR_DATA ice

smurfs = CREATE_CAR ( 57.5 , 64.0 , 2.0 ) 1 0 COPCAR END
gt = CREATE_CAR ( 84.4 , 38.0 , 2.0 ) 17 0 T2000GT END
ice = CREATE_CAR ( 114.5 , 120.0 , 2.0 ) -1 270 ICECREAM END

PARKED_CAR_DATA trailer = (1.0,1.0) 19 90 TRUKTRNS

SWITCH_GENERATOR ( pistol1 , ON )
SWITCH_GENERATOR ( pistol2 , ON )
SWITCH_GENERATOR ( pistol3 , ON )
SWITCH_GENERATOR ( pistol4 , ON )
SWITCH_GENERATOR ( dualpistol1 , ON )
SWITCH_GENERATOR ( dualpistol2 , ON )
SWITCH_GENERATOR ( dualpistol3 , ON )
SWITCH_GENERATOR ( mach1 , ON )
SWITCH_GENERATOR ( mach2 , ON )
SWITCH_GENERATOR ( mach3 , ON )
SWITCH_GENERATOR ( shotgun1 , ON )
SWITCH_GENERATOR ( shotgun2 , ON )
SWITCH_GENERATOR ( shotgun3 , ON )
SWITCH_GENERATOR ( shotgun4 , ON )
SWITCH_GENERATOR ( flamer1 , ON )
SWITCH_GENERATOR ( flamer2 , ON )
SWITCH_GENERATOR ( electro , ON )
SWITCH_GENERATOR ( bazo1 , ON )
SWITCH_GENERATOR ( bazo2 , ON )
SWITCH_GENERATOR ( bazo3 , ON )
SWITCH_GENERATOR ( molotov1 , ON )
SWITCH_GENERATOR ( molotov2 , ON )
SWITCH_GENERATOR ( grenades1 , ON )
SWITCH_GENERATOR ( grenades2 , ON )
SWITCH_GENERATOR ( grenades3 , ON )
SWITCH_GENERATOR ( silmach , ON )
SWITCH_GENERATOR ( bimber1 , ON )
SWITCH_GENERATOR ( bimber2 , ON )
SWITCH_GENERATOR ( bimber3 , ON )
SWITCH_GENERATOR ( electro1 , ON )

SWITCH_GENERATOR ( vehbomb , ON )
SWITCH_GENERATOR ( vehoil , ON )
SWITCH_GENERATOR ( vehmines , ON )
SWITCH_GENERATOR ( vehmach , ON )

SWITCH_GENERATOR ( armor , ON )
SWITCH_GENERATOR ( health , ON )
SWITCH_GENERATOR ( dd , ON )
SWITCH_GENERATOR ( fr , ON )
SWITCH_GENERATOR ( bribe , ON )
SWITCH_GENERATOR ( gang1 , ON )
SWITCH_GENERATOR ( gang2 , ON )
SWITCH_GENERATOR ( invisibility , ON )
SWITCH_GENERATOR ( immortal , ON )
SWITCH_GENERATOR ( multi , ON )
SWITCH_GENERATOR ( paralizator1 , ON )
SWITCH_GENERATOR ( paralizator2 , ON )

GIVE_WEAPON ( parowka , CAR_MACHINE_GUN, 10)
GIVE_CAR_ALARM ( trex )

WHILE_EXEC ( mainloop = 1 )

IF (IS_CAR_WRECKED(smurfs))
 IF (NOT (DELAY (2000))) // let explosion happen
  IF (NOT (IS_POINT_ONSCREEN(57.5 , 64.0 , 2.0 )))
   IF (IS_CAR_IN_BLOCK(smurfs, 57.5 , 64.0 , 2.0 , 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (smurfs, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (smurfs)
   smurfs = CREATE_CAR ( 57.5 , 64.0 , 2.0 ) 1 0 COPCAR END
  ENDIF
 ENDIF
ENDIF

IF (IS_CAR_WRECKED(gt))
 IF (NOT (DELAY (1000))) // let explosion happen
  IF (NOT (IS_POINT_ONSCREEN(84.4 , 38.0 , 2.0 )))
   IF (IS_CAR_IN_BLOCK(gt, 84.4 , 38.0 , 2.0 , 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (gt, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (gt)
   gt = CREATE_CAR ( 84.4 , 38.0 , 2.0 ) 17 0 T2000GT END
  ENDIF
 ENDIF
ENDIF

IF (IS_CAR_WRECKED(ice))
 IF (NOT (DELAY (1000))) // let explosion happen
  IF (NOT (IS_POINT_ONSCREEN(114.5 , 120.0 , 2.0 )))
   IF (IS_CAR_IN_BLOCK(ice, 114.5 , 120.0 , 2.0 , 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (ice, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (ice)
   ice = CREATE_CAR ( 114.5 , 120.0 , 2.0 ) -1 270 ICECREAM END
  ENDIF
 ENDIF
ENDIF


IF(CHECK_OBJ_MODEL (gener1, POWERGEN_DEAD)) 
  IF (CHECK_OBJ_MODEL (gener2, POWERGEN_DEAD))
    MAKE_ALL_CHARS_MUGGERS ( ON ) 
  ENDIF
ENDIF
	
ENDWHILE



LEVELEND