//---------------------------------------------------------------------------
// Script file for the level 3 of the airport
// Geoffroy Audy, September 16th 1996
//---------------------------------------------------------------------------
define  GUN        0
define  PLANE1     1
define  PLANE2     2
define  PLANE3     3
define  PLANE4     4
define  PLANE5     5
define  FUELTRUCK  6
define  METALDOOR1 7
define  METALDOOR2 8
define  GUERILLA1  9
define  GUERILLA2  10
define  GUERILLA3  11
define  GUERILLA4  12
define  GUERILLA5  13
define  GUERILLA6  14
define  GUERILLA7  15
define  GUERILLA8  16
define  GUERILLA9  17
define  GUERILLA10 18
define  GUERILLA11 19
define  GUERILLA12 20
define  GUERILLA13 21
define  GUERILLA14 22
define  GUERILLA15 23
define  GUERILLA16 24
define  GUERILLA17 25
define  GUERILLA18 26
define  GUERILLA19 27
define  GUERILLA20 28
define  GUERILLA21 29
define  GUERILLA22 30
define  GUERILLA23 31
define  GUERILLA24 32
define  GUERILLA25 33
define  GUERILLA26 34
define  GUERILLA27 35
define  GUERILLA28 36
define  GUERILLA29 37
define  GUERILLA30 38
define  GUERILLA31 39
define  GUERILLA32 40
define  GUERILLA33 41
define  GUERILLA34 42
define  GUERILLA35 43
define  GUERILLA36 44
define  WORKER1    45
define  WORKER2    46
define  WORKER3    47
define  WORKER4    48
define  WORKER5    49
define  WORKER6    50
define  WORKER7    51
define  WORKER8    52
define  WORKER9    53
define  WORKER10   54
define  WORKER11   55
define  WORKER12   56
define  WORKER13   57
define  WORKER14   58
define  WORKER15   59
define  WORKER16   60
define  WORKER17   61
define  WORKER18   62
define  WORKER19   63
define  WORKER20   64
define  WORKER21   65
define  WORKER22   66
define  WORKER23   67
define  WORKER24   68
define  WORKER25   69
define  WORKER26   70
define  WORKER27   71
define  WORKER28   72
define  JERRY1     73
define  JERRY2     74
define  JERRY3     75
define  JERRY4     76
define  BIGGRLA1   77
define  BIGGRLA2   78
define  BIGGRLA3   79
define  BIGGRLA4   80
define  BIGGRLA5   81
define  BIGGRLA6   82
define  BIGGRLA7   83
define  REPAIR1    84
define  REPAIR2    85
define  REPAIR3    86
define  REPAIR4    87
define  SMALLBOSS1 88
define  SMALLBOSS2 89
define  GRENADE1   90
define  GRENADE2   91
define  GRENADE3   92
define  GRENADE4   93
define  EXPLOSION1 94
define  EXPLOSION2 95
define  EXPLOSION3 96
define  EXPLOSION4 97
define  EXPLOSION5 98
define  EXPLOSION6 99
define  EXPLOSION7 100
define  VICTWORK1  101
define  VICTWORK2  102

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

//-------------------------------------
// Start initialization
//-------------------------------------
loadBKD \BACKGRND\AIRPORT\AIRPORT3.BKD          // BKD 0
setBKDLoc 0 0 0 0                               //
loadVAB \SOUNDFX\AIRPORT.VAB                    // Sound fx

loadKRT \SPRITES\AIRPORT\LEVEL1\WEAPON1.KRT     // Char 0
ObjectCharacteristics GUN 1032                  // Char 0 is a gun
loadKRT \SPRITES\AIRPORT\LEVEL3\PLANE.KRT       // Char 1
ObjectCharacteristics PLANE1 1152               // Char 1 is an anim. object
CloneCharacter PLANE1                           // Char 2
CloneCharacter PLANE1                           // Char 3
CloneCharacter PLANE1                           // Char 4
CloneCharacter PLANE1                           // Char 5
loadKRT \SPRITES\AIRPORT\LEVEL3\TRUCK.KRT       // Char 6
ObjectCharacteristics FUELTRUCK 1028            // Char 6 is an anim. object
SetTotalHitPoints FUELTRUCK 5                   //
loadKRT \SPRITES\AIRPORT\LEVEL3\MTLDOOR.KRT     // Char 7
ObjectCharacteristic METALDOOR1 1152
CloneCharacter METALDOOR1                       // Char 8
loadKRT \SPRITES\AIRPORT\LEVEL1\GUERILLA.KRT    // Char 9
CloneCharacter GUERILLA1                        // Char 10
CloneCharacter GUERILLA1                        // Char 11
CloneCharacter GUERILLA1                        // Char 12
CloneCharacter GUERILLA1                        // Char 13
CloneCharacter GUERILLA1                        // Char 14
CloneCharacter GUERILLA1                        // Char 15
CloneCharacter GUERILLA1                        // Char 16
CloneCharacter GUERILLA1                        // Char 17
CloneCharacter GUERILLA1                        // Char 18
CloneCharacter GUERILLA1                        // Char 19
CloneCharacter GUERILLA1                        // Char 20
CloneCharacter GUERILLA1                        // Char 21
CloneCharacter GUERILLA1                        // Char 22
CloneCharacter GUERILLA1                        // Char 23
CloneCharacter GUERILLA1                        // Char 24
CloneCharacter GUERILLA1                        // Char 25
CloneCharacter GUERILLA1                        // Char 26
CloneCharacter GUERILLA1                        // Char 27
CloneCharacter GUERILLA1                        // Char 28
CloneCharacter GUERILLA1                        // Char 29
CloneCharacter GUERILLA1                        // Char 30
CloneCharacter GUERILLA1                        // Char 31
CloneCharacter GUERILLA1                        // Char 32
CloneCharacter GUERILLA1                        // Char 33
CloneCharacter GUERILLA1                        // Char 34
CloneCharacter GUERILLA1                        // Char 35
CloneCharacter GUERILLA1                        // Char 36
CloneCharacter GUERILLA1                        // Char 37
CloneCharacter GUERILLA1                        // Char 38
CloneCharacter GUERILLA1                        // Char 39
CloneCharacter GUERILLA1                        // Char 40
CloneCharacter GUERILLA1                        // Char 41
CloneCharacter GUERILLA1                        // Char 42
CloneCharacter GUERILLA1                        // Char 43
CloneCharacter GUERILLA1                        // Char 44
SetScale GUERILLA3 3500
SetScale GUERILLA4 3800
SetScale GUERILLA5 3500
SetScale GUERILLA7 3500
SetScale GUERILLA8 3500
SetScale GUERILLA9 3600
SetScale GUERILLA10 5400
SetScale GUERILLA18 5400
SetScale GUERILLA23 5400
SetScale GUERILLA24 5400
SetScale GUERILLA27 5400
SetScale GUERILLA34 5400
loadKRT \SPRITES\AIRPORT\LEVEL1\WORKER.KRT      // Char 45
CloneCharacter WORKER1                          // Char 46
CloneCharacter WORKER1                          // Char 47
CloneCharacter WORKER1                          // Char 48
CloneCharacter WORKER1                          // Char 49
CloneCharacter WORKER1                          // Char 50
CloneCharacter WORKER1                          // Char 51
CloneCharacter WORKER1                          // Char 52
CloneCharacter WORKER1                          // Char 53
CloneCharacter WORKER1                          // Char 54
CloneCharacter WORKER1                          // Char 55
CloneCharacter WORKER1                          // Char 56
CloneCharacter WORKER1                          // Char 57
CloneCharacter WORKER1                          // Char 58
CloneCharacter WORKER1                          // Char 59
CloneCharacter WORKER1                          // Char 60
CloneCharacter WORKER1                          // Char 61
CloneCharacter WORKER1                          // Char 62
CloneCharacter WORKER1                          // Char 63
CloneCharacter WORKER1                          // Char 64
CloneCharacter WORKER1                          // Char 65
CloneCharacter WORKER1                          // Char 66
CloneCharacter WORKER1                          // Char 67
CloneCharacter WORKER1                          // Char 68
CloneCharacter WORKER1                          // Char 69
CloneCharacter WORKER1                          // Char 70
CloneCharacter WORKER1                          // Char 71
CloneCharacter WORKER1                          // Char 72
SetScale WORKER1 5400
SetScale WORKER2 3500
SetScale WORKER5 5400
SetScale WORKER7 3500
SetScale WORKER8 3600
SetScale WORKER9 3500
SetScale WORKER15 3800
SetScale WORKER16 3800
loadKRT \SPRITES\AIRPORT\LEVEL1\JERRY.KRT       // Char 73
CloneCharacter JERRY1                           // Char 74
CloneCharacter JERRY1                           // Char 75
CloneCharacter JERRY1                           // Char 76
SetScale JERRY2 2800
SetScale JERRY3 3200
SetScale JERRY4 2600
loadKRT \SPRITES\AIRPORT\LEVEL1\GASGUY.KRT      // Char 77
CloneCharacter BIGGRLA1                         // Char 78
CloneCharacter BIGGRLA1                         // Char 79
CloneCharacter BIGGRLA1                         // Char 80
CloneCharacter BIGGRLA1                         // Char 81
CloneCharacter BIGGRLA1                         // Char 82
CloneCharacter BIGGRLA1                         // Char 83
loadKRT \SPRITES\AIRPORT\LEVEL2\REPAIR.KRT      // Char 84
ObjectCharacteristics REPAIR1 1030              // Char 84 is a victim
CloneCharacter REPAIR1                          // Char 85
CloneCharacter REPAIR1                          // Char 86
CloneCharacter REPAIR1                          // Char 87
SetScale REPAIR1 3600
SetScale REPAIR2 3600
SetScale REPAIR4 4800
loadKRT \SPRITES\AIRPORT\LEVEL2\BOSSY.KRT       // Char 88
SetTotalHitPoints SMALLBOSS1 7                  //
CloneCharacter SMALLBOSS1                       // Char 89
SetTotalHitPoints SMALLBOSS2 7                  //
SetScale SMALLBOSS1 3500
SetScale SMALLBOSS2 3500
loadKRT \SPRITES\AIRPORT\LEVEL1\GRENADE.KRT     // Char 90
ObjectCharacteristics GRENADE1 1348             // Char 90 is a grenade
CloneCharacter GRENADE1                         // Char 91
CloneCharacter GRENADE1                         // Char 92
CloneCharacter GRENADE1                         // Char 93
loadKRT \SPRITES\AIRPORT\LEVEL1\EXPLO.KRT       // Char 94
ObjectCharacteristics EXPLOSION1 16384          // Char 94 is an explosion
CloneCharacter EXPLOSION1                       // Char 95
CloneCharacter EXPLOSION1                       // Char 96
CloneCharacter EXPLOSION1                       // Char 97
CloneCharacter EXPLOSION1                       // Char 98
CloneCharacter EXPLOSION1                       // Char 99
CloneCharacter EXPLOSION1                       // Char 100

Link EXPLOSION1 FUELTRUCK 0 1 0 0 48 93
Link EXPLOSION2 FUELTRUCK 0 1 0 0 15 70
Link EXPLOSION3 FUELTRUCK 0 1 0 0 65 78
Link EXPLOSION4 FUELTRUCK 0 1 1 0 0 35
Link EXPLOSION5 FUELTRUCK 0 1 1 0 45 25
Link EXPLOSION6 FUELTRUCK 0 1 1 0 75 39
//Link JERRY1 FUELTRUCK

AssignProjectile GUERILLA1 GRENADE1
AssignProjectile GUERILLA14 GRENADE2
AssignProjectile GUERILLA19 GRENADE3
AssignProjectile GUERILLA28 GRENADE4

PlayTrack 508 1           // Play STAGE6

//-------------------------------------
// Various objects
//-------------------------------------
StartActionXY GUN        2 350 180 12    0 0 L1
StartActionXY PLANE1     0 133  69  1    0 0 L1
Attach PLANE2 PLANE1 1 0 0  63 -4 1 L1
Attach PLANE3 PLANE1 2 0 0 126 -4 1 L1
Attach PLANE4 PLANE1 3 0 0 189 22 1 L1
Attach PLANE5 PLANE1 4 0 0 260 -2 1 L1
StartActionXY FUELTRUCK  0  48  93 11    0 0 L1
StartActionXY METALDOOR1 0 177 155 11    0 0 L1
StartActionXY METALDOOR2 0 327 160 11    0 0 L1

//-------------------------------------
// Enemy group #1
//-------------------------------------
StartActionXY GUERILLA1  2 210 140  4   60 0 L1
StartActionXY WORKER1    4  -5 170 13  120 0 L1
StartActionXY WORKER2    4  80 140  4  180 0 L1
StartActionXY GUERILLA2 12 155 140  4  240 0 L1
StartActionXY WORKER3    2 190 145  4  300 0 L1
//StartActionXY VICTWORK1  a 150 140  3  360 0 L1
StartActionXY GUERILLA3 12  50 100  4  420 0 L1
StartActionXY GUERILLA4 12 225 140  4  480 0 L1
StartActionXY GUERILLA5 14  75 145  2  540 0 L1
StartActionXY WORKER4    9 150 154  4  600 1 L1
StartActionXY WORKER5    4  -5 170 13  660 0 L1
StartActionXY JERRY2     3  85 145  4  720 0 L1
StartActionXY WORKER6    2 235 145  4  780 0 L1
StartActionXY BIGGRLA1   0  90 290 14  840 0 L1
StartActionXY GUERILLA6 12 210 140  4  900 0 L1
StartActionXY REPAIR1    0  50 150  3  960 0 L1
StartActionXY METALDOOR1 1 177 155 11  960 0 L1
StartActionXY SMALLBOSS1 4 195 158  9 1020 0 L1
StartActionXY WORKER7    2  55  90  4 1080 0 L1
StartActionXY GUERILLA7 10 170 165  4 1140 1 L1
StartActionXY WORKER8    2 175 135  4 1200 0 L1
StartActionXY GUERILLA8 14  80 150  4 1260 0 L1
StartActionXY BIGGRLA2   0 210 290 14 1320 0 L1
StartActionXY WORKER9    2  65  90  4 1380 0 L1
StartActionXY GUERILLA9 10  47 150  4 1440 0 L1
StartActionXY WORKER10   9 220 160  9 1500 1 L1
StartActionXY GUERILLA10 14 -10 160 13 1560 0 L1
StartActionXY GUERILLA11 12 190 140 4 1620 0 L1
StopAction METALDOOR1 1679

ScrollBKDTo 0 -95 0 95 1680

//-------------------------------------
// Enemy group #2
//-------------------------------------
StartActionXY WORKER11   9 310 160  4 1740 1 L1
StartActionXY WORKER12   2 165 140  4 1800 0 L1
StartActionXY GUERILLA12 12 180 140 4 1860 0 L1
StartActionXY REPAIR2    0 220 160  4 1920 0 L1
StartActionXY BIGGRLA3   0 210 290 14 1980 0 L1
StartActionXY WORKER13   2 200 140  4 2040 0 L1
StartActionXY JERRY3     6 340 145  4 2100 0 L1
StartActionXY GUERILLA13 12 230 140 4 2160 0 L1
StartActionXY WORKER14   9 220 158  9 2220 1 L1
StartActionXY WORKER15   2 310 150  4 2280 0 L1
StartActionXY METALDOOR2 1 327 160 11 2280 0 L1
StartActionXY SMALLBOSS2 4 340 163  9 2340 0 L1
StartActionXY GUERILLA14 2 190 140  4 2460 1 L1
StartActionXY WORKER16   2 340 145  4 2520 0 L1
StartActionXY GUERILLA15 12 230 140 4 2580 0 L1
StartActionXY WORKER17   9 355 163  9 2640 1 L1
StartActionXY GUERILLA16 12 365 140 4 2700 0 L1
StartActionXY GUERILLA17 10 190 160 4 2760 0 L1
StartActionXY BIGGRLA4   0 340 290 14 2820 0 L1
StartActionXY GUERILLA18 14 425 160 13 2880 1 L1
StartActionXY WORKER18   2 200 140  4 2940 0 L1
StartActionXY GUERILLA19 2 360 140  4 3000 0 L1
StartActionXY GUERILLA20 12 190 140 4 3060 0 L1
StopAction METALDOOR2 3119

ScrollBKDTo 0 -172 0 77 3120

//-------------------------------------
// Enemy group #3
//-------------------------------------
StartActionXY WORKER19   9 240 166  4 3180 0 L1
StartActionXY GUERILLA21 12 340 140 4 3240 0 L1
StartActionXY BIGGRLA5   0 440 290 14 3300 0 L1
StartActionXY WORKER20   2 360 150  4 3360 0 L1
StartActionXY REPAIR3    0 385 160  9 3420 0 L1
StartActionXY BIGGRLA6   0 300 290 14 3480 1 L1
StartActionXY GUERILLA22 12 375 140 4 3540 0 L1
StartActionXY GUERILLA23 14 165 150 13 3600 0 L1
StartActionXY GUERILLA24 14 500 150 13 3660 1 L1
StartActionXY GUERILLA25 12 235 140 4 3720 0 L1
StartActionXY GUERILLA26 12 340 140 4 3780 0 L1
StartActionXY JERRY4     3 432 135  4 3840 1 L1
StartActionXY WORKER21   2 340 140  4 3900 0 L1
StartActionXY WORKER22   0 360 140  4 3960 0 L1
StartActionXY GUERILLA27 14 165 155 13 4020 0 L1
//StartActionXY VICTWORK2 a 380 125 4 4080 0 L1
StartActionXY GUERILLA28 2 375 140  4 4140 0 L1
StartActionXY WORKER23   2 315 150  4 4200 0 L1
StartActionXY GUERILLA29 12 225 140 4 4260 1 L1
StartActionXY GUERILLA30 12 335 140 4 4320 0 L1
StartActionXY WORKER23   9 230 158  4 4380 0 L1
StartActionXY WORKER24   2 360 145  4 4440 0 L1
StartActionXY REPAIR4    0 510 175 13 4500 1 L1
StartActionXY BIGGRLA7   0 325 290 14 4560 0 L1
StartActionXY GUERILLA31 12 380 145 4 4620 0 L1
StartActionXY WORKER25   2 310 145  4 4680 0 L1
StartActionXY GUERILLA32 12 235 140 4 4740 0 L1
StartActionXY WORKER26   9 370 163  9 4800 1 L1
StartActionXY GUERILLA33 12 325 145 4 4860 0 L1
StartActionXY GUERILLA34 14 165 160 14 4920 0 L1

ScrollBKDTo 0 -172 0 0 4980

//-------------------------------------
// Ending...
//-------------------------------------
StartActionXY PLANE1     5 133  69  1  4982 0 L1

EndRound 4983
