//---------------------------------------------------------------------------
// Script file for the level 1 of the Drug dealers (Hangar)
// Geoffroy Audy, December 21th 1996
//---------------------------------------------------------------------------

define  GUN          0
define  BIGGUY1      1
define  BIGGUY2      2
define  BIGGUY3      3
define  BIGGUY4      4
define  BIGGUY5      5
define  BIGGUY6      6
define  BIGGUY7      7
define  BIGGUY8      8
define  STC1         9
define  STC2         10
define  STC3         11
define  STC4         12
define  STC5         13
define  STC6         14
define  STC7         15
define  STC8         16
define  STC9         17
define  STC10        18
define  POLICE1      19
define  POLICE2      20
define  POLICE3      21
define  GEORGE1      22
define  GEORGE2      23
define  GEORGE3      24
define  GEORGE4      25
define  GEORGE5      26
define  GEORGE6      27
define  GEORGE7      28
define  GEORGE8      29
define  GEORGE9      30
define  GEORGE10     31
define  GEORGE11     32
define  GEORGE12     33
define  GEORGE13     34
define  GEORGE14     35
define  GEORGE15     36
define  GEORGE16     37
define  GEORGE17     38
define  GEORGE18     39
define  GEORGE19     40
define  GEORGE20     41
define  GEORGE21     42
define  GEORGE22     43
define  GEORGE23     44
define  GEORGE24     45
define  GEORGE25     46
define  GEORGE26     47
define  BOB1         48
define  BOB2         49
define  BOB3         50
define  BOB4         51
define  BOB5         52
define  BOB6         53
define  BOB7         54
define  BOB8         55
define  BOB9         56
define  BOB10        57
define  BOB11        58
define  BOB12        59
define  BOB13        60
define  BOB14        61
define  BOB15        62
define  STEVEBOSS    63
define  TRUCKFRONT   64
define  TRUCKBACK    65
define  TRUCKDOORL   66
define  TRUCKDOORR   67
define  TRUCKWINDOW  68
define  WINDOW1      69
define  WINDOW2      70
define  VICTIM       71
define  CAR1         72
define  CAR2         73
define  CAR3         74
define  CAR4         75
define  CAR5         76
define  CAR6         77
define  CAR7         78
define  CAR8         79
define  POLICE4      80

define  L1         0            // Difficulty levels
define  L2         1
define  L3         2
define  L4         3
define  L5         4
define  L6         5
define  L7         6
define  L8         7

loadKRT \SPRITES\DRUGDEAL\LEVEL1\WEAPON1.KRT    // Char 0
ObjectCharacteristics GUN 1032                  //
loadKRT \SPRITES\DRUGDEAL\LEVEL3\BIGGUY.KRT     // Char 1
CloneCharacter BIGGUY1                          // Char 2
CloneCharacter BIGGUY1                          // Char 3
CloneCharacter BIGGUY1                          // Char 4
CloneCharacter BIGGUY1                          // Char 5
CloneCharacter BIGGUY1                          // Char 6
CloneCharacter BIGGUY1                          // Char 7
CloneCharacter BIGGUY1                          // Char 8
loadKRT \SPRITES\DRUGDEAL\LEVEL3\STC.KRT        // Char 9
CloneCharacter STC1                             // Char 10
CloneCharacter STC1                             // Char 11
CloneCharacter STC1                             // Char 12
CloneCharacter STC1                             // Char 13
CloneCharacter STC1                             // Char 14
CloneCharacter STC1                             // Char 15
CloneCharacter STC1                             // Char 16
CloneCharacter STC1                             // Char 17
CloneCharacter STC1                             // Char 18
SetScale STC2 3500                              //
SetScale STC5 4500                              //
SetScale STC7 4800                              //
SetScale STC8 4500                              //
SetScale STC10 4500                             //
loadKRT \SPRITES\DRUGDEAL\LEVEL3\POLICE.KRT     // Char 19
ObjectCharacteristics POLICE1 1030              //
CloneCharacter POLICE1                          // Char 20
CloneCharacter POLICE1                          // Char 21
SetScale POLICE1 5200                           //
SetScale POLICE2 5200                           //
SetScale POLICE3 5200                           //
loadKRT \SPRITES\DRUGDEAL\LEVEL3\GEORGE.KRT     // Char 22
CloneCharacter GEORGE1                          // Char 23
CloneCharacter GEORGE1                          // Char 24
CloneCharacter GEORGE1                          // Char 25
CloneCharacter GEORGE1                          // Char 26
CloneCharacter GEORGE1                          // Char 27
CloneCharacter GEORGE1                          // Char 28
CloneCharacter GEORGE1                          // Char 29
CloneCharacter GEORGE1                          // Char 30
CloneCharacter GEORGE1                          // Char 31
CloneCharacter GEORGE1                          // Char 32
CloneCharacter GEORGE1                          // Char 33
CloneCharacter GEORGE1                          // Char 34
CloneCharacter GEORGE1                          // Char 35
CloneCharacter GEORGE1                          // Char 36
CloneCharacter GEORGE1                          // Char 37
CloneCharacter GEORGE1                          // Char 38
CloneCharacter GEORGE1                          // Char 39
CloneCharacter GEORGE1                          // Char 40
CloneCharacter GEORGE1                          // Char 41
CloneCharacter GEORGE2                          // Char 42
CloneCharacter GEORGE1                          // Char 43
CloneCharacter GEORGE1                          // Char 44
CloneCharacter GEORGE1                          // Char 45
CloneCharacter GEORGE1                          // Char 46
CloneCharacter GEORGE1                          // Char 47
SetScale GEORGE2 4800                           //
SetScale GEORGE4 4800                           //
SetScale GEORGE8 4800                           //
SetScale GEORGE9 4800                           //
SetScale GEORGE10 4800                          //
SetScale GEORGE12 4500                          //
SetScale GEORGE13 4500                          //
SetScale GEORGE14 4500                          //
SetScale GEORGE15 4800                          //
SetScale GEORGE17 4500                          //
SetScale GEORGE18 3750                          //
SetScale GEORGE20 4800                          //
SetScale GEORGE21 4500                          //
SetScale GEORGE22 4200                          //
SetScale GEORGE25 4800                          //
SetScale GEORGE26 3750                          //
loadKRT \SPRITES\DRUGDEAL\LEVEL3\BOB.KRT        // Char 48
CloneCharacter BOB1                             // Char 49
CloneCharacter BOB1                             // Char 50
CloneCharacter BOB1                             // Char 51
CloneCharacter BOB1                             // Char 52
CloneCharacter BOB1                             // Char 53
CloneCharacter BOB1                             // Char 54
CloneCharacter BOB1                             // Char 55
CloneCharacter BOB1                             // Char 56
CloneCharacter BOB1                             // Char 57
CloneCharacter BOB1                             // Char 58
CloneCharacter BOB1                             // Char 59
CloneCharacter BOB1                             // Char 60
CloneCharacter BOB1                             // Char 61
CloneCharacter BOB1                             // Char 62
SetDepth BOB3 9                                 //
SetScale BOB4 4800                              //
SetScale BOB5 3500                              //
SetScale BOB6 4800                              //
SetScale BOB7 4800                              //
SetScale BOB8 4800                              //
SetScale BOB9 4800                              //
SetScale BOB10 4800                             //
SetScale BOB11 3750                             //
SetScale BOB12 4800                             //
SetScale BOB13 4500                             //
SetScale BOB14 4500                             //
loadKRT \SPRITES\DRUGDEAL\LEVEL3\KULSTV.KRT     // Char 63
SetTotalHitPoints STEVEBOSS 10                  //
SetScale STEVEBOSS 4500                         //
loadKRT \SPRITES\DRUGDEAL\LEVEL3\TRUCK.KRT      // Char 64
ObjectCharacteristics TRUCKFRONT 17408          //
CloneCharacter TRUCKFRONT                       // Char 65
CloneCharacter TRUCKFRONT                       // Char 66
CloneCharacter TRUCKFRONT                       // Char 67
loadKRT \SPRITES\DRUGDEAL\LEVEL3\TRUCKWIN.KRT   // Char 68
ObjectCharacteristics TRUCKWINDOW 1056          //
loadKRT \SPRITES\DRUGDEAL\LEVEL3\BIGWIN.KRT     // Char 69
ObjectCharacteristics WINDOW1 1056              //
CloneCharacter WINDOW1                          // Char 70
SetScale WINDOW1 3500                           //
SetScale WINDOW2 3500                           //
loadKRT \SPRITES\DRUGDEAL\LEVEL3\BLUIE.KRT      // Char 71
ObjectCharacteristics VICTIM 1030               //
SetDepth VICTIM 9                               //
loadKRT \SPRITES\DRUGDEAL\LEVEL3\CAR.KRT        // Char 72
ObjectCharacteristics CAR1 17536                //
CloneCharacter CAR1                             // Char 73
CloneCharacter CAR1                             // Char 74
CloneCharacter CAR1                             // Char 75
CloneCharacter CAR1                             // Char 76
CloneCharacter CAR1                             // Char 77
CloneCharacter CAR1                             // Char 78
CloneCharacter CAR1                             // Char 79
CloneCharacter POLICE1                          // Char 80
SetScale POLICE4 5200                           //

//-------------------------------------
// Start initialization
//-------------------------------------
loadBKD \BACKGRND\DRUGDEAL\DRUG3.BKD            // BKD 0
setBKDLoc 0 -243 0 0                            //
loadVAB \SOUNDFX\DRUGDEAL.VAB                   // Sound fx

PlayTrack 503 2           // Play STAGE1

Link   BOB3 VICTIM 3 0 0 1 360 160

//-------------------------------------
// Various objects
//-------------------------------------
StartActionXY CAR1         0 -275 188 12   0 0 L1
Attach CAR2 CAR1           1 0 0   63   0 12 L1
Attach CAR3 CAR1           2 0 0  126   0 12 L1
Attach CAR4 CAR1           3 0 0  189   0 12 L1
Attach CAR5 CAR1           4 0 0  252   0 12 L1
Attach CAR6 CAR1           5 0 0  315   0 12 L1
Attach CAR7 CAR1           6 0 0  378   0 12 L1
Attach CAR8 CAR1           7 0 0  441   0 12 L1
StartActionXY GUN          4 355 200 11    0 0 L1
StartActionXY WINDOW1      0  48 122  4    0 0 L1
StartActionXY WINDOW2      0  48 175  4    0 0 L1
StartActionXY TRUCKFRONT   1 250 150  9    0 0 L1
Attach TRUCKWINDOW TRUCKFRONT 0 0 0  -1 -46 8 L1
Attach TRUCKBACK   TRUCKFRONT 0 0 0   0 -56 6 L1
Attach TRUCKDOORL  TRUCKFRONT 2 0 0 -57 -25 8 L1
Attach TRUCKDOORR  TRUCKFRONT 2 1 0  57 -25 8 L1

//-------------------------------------
// Enemy group #1
//-------------------------------------
startactionxy BIGGUY1      0 375 290 14   60 0 L1
startactionxy GEORGE1      2 345 164  9  120 1 L1
startactionxy GEORGE2      2 510 180  9  180 1 L1
startactionxy STC1         6 350 184  9  240 1 L1
startactionxy POLICE1      1 243 170 13  300 0 L1
startactionxy BOB1         9 360 164  9  360 0 L1
startactionxy GEORGE3      2 500  97  3  420 0 L1
startactionxy GEORGE4      2 245 160 13  480 0 L1
startactionxy BOB2         9 360 164  9  540 0 L1
startactionxy STC2         9 360  88  3  600 0 L1
startactionxy GEORGE5      2 440 170  3  660 1 L1
startactionxy VICTIM       0 320 160  9  720 1 L1
startactionxy GEORGE6      2 500  97  3  780 0 L1
startactionxy BOB4         9 520 175  9  840 1 L1
startactionxy BIGGUY2      0 475 290 14  900 0 L1
startactionxy BIGGUY3      0 330 290 14  960 0 L1
startactionxy BOB5         7 470 100  3 1020 0 L1
startactionxy GEORGE7      0 535 160  9 1080 0 L1
startactionxy GEORGE8      2 245 160 12 1140 0 L1
startactionxy STC3         9 488  90  3 1200 0 L1
startactionxy BOB6         0 520 204  9 1260 1 L1
startactionxy GEORGE9      2 245 160 12 1320 0 L1

ScrollBKDTo 0 -100 0 143 1380

//-------------------------------------
// Enemy group #2
//-------------------------------------
startactionxy BIGGUY4      0 350 290 14 1440 0 L1
startactionxy POLICE2      1 100 180 13 1530 0 L1
startactionxy GEORGE10     2 105 160 11 1590 0 L1
startactionxy STC4         6 370 185  9 1650 0 L1
startactionxy STC5         6 415 187 11 1710 1 L1
startactionxy GEORGE11    13 150 165  9 1770 0 L1
startactionxy BIGGUY5      0 210 290 14 1830 0 L1
startactionxy BOB7         5  75 160 11 1890 0 L1
startactionxy GEORGE12     2 340 161  9 1950 1 L1

ScrollBKDTo 0 -90 0 10 2000

//-------------------------------------
// Enemy group #3
//-------------------------------------
startactionxy GEORGE13     2 370 160  9 2060 0 L1
startactionxy GEORGE14     2  90 160 11 2120 0 L1
StartActionXY STC6         9 250 165  7 2180 0 L1
//StartActionXY TRUCKDOORL   3 160 120  0 2240 0 L1    // Check XY coordinates
StartActionXY GEORGE15    13 215 140  7 2260 1 L1
//StartActionXY TRUCKDOORR   3 160 120  0 2290 0 L1    // Check XY coordinates
StartActionXY BOB8         0 285 155  7 2320 0 L1

ScrollBKDTo 0 0 0 90 2360

//-------------------------------------
// Enemy group #4
//-------------------------------------
startactionxy BIGGUY6      0 190 290 14 2420 0 L1
startactionxy GEORGE16    13  75 170 11 2480 0 L1
startactionxy POLICE3      1  10 175 13 2540 0 L1
startactionxy BOB9         9 320 166 12 2600 1 L1
startactionxy STC7         9  70 185 11 2660 0 L1
startactionxy GEORGE17     0 250 151  7 2720 0 L1
startactionxy GEORGE18     2  30 150  3 2780 0 L1
startactionxy BOB10        0 310 186 12 2840 1 L1
startactionxy BIGGUY7      0 190 290 14 2900 0 L1
startactionxy GEORGE19     2 130 150  9 2960 1 L1
startactionxy GEORGE20     2 315 160 12 3020 1 L1
startactionxy GEORGE21     0 250 155  7 3080 0 L1
startactionxy GEORGE22    13  50 172  9 3140 0 L1
startactionxy BOB11        9  10 157  3 3200 0 L1
startactionxy BIGGUY8      0 220 290 14 3260 0 L1
startactionxy STC8         6  20 190 11 3320 0 L1
startactionxy GEORGE23     0 133 163  9 3380 0 L1
startactionxy GEORGE24     2  80 155  3 3440 1 L1
startactionxy BOB12        0  60 195 11 3500 0 L1
startactionxy BOB13        7 250 162  7 3560 1 L1
startactionxy POLICE4      1  10 175 13 3620 0 L1
startactionxy GEORGE25     6 330 185 11 3680 1 L1
startactionxy STC9         6 100 190 11 3740 1 L1
startactionxy GEORGE26     2  75 155  3 3800 1 L1
startactionxy BOB14        9   0 165 11 3900 0 L1
startactionxy STC10        6 325 190 12 3960 1 L1
startactionxy STEVEBOSS    0   0 160 11 4020 0 L1

ScrollBKDTo 0 0 0 0 4040

StartActionXY CAR1         8 -275 188 12 4100 0 L1

EndRound 4101
