home *** CD-ROM | disk | FTP | other *** search
/ PowerPlay 1998 July / PowerPlay0798.bin / Demos / incoming.exe / asc / africa / africa_action.mdl next >
Text File  |  1998-04-06  |  55KB  |  2,772 lines

  1. drag_coeff    0.01        
  2. gravity        2.2
  3.  
  4. #=====================================================
  5. # Weapons ODL
  6.  
  7. ;GREEN ENERGY LASER    hitpoints    30
  8. ;GREEN LASER         hitpoints    32
  9. ;BLUE LASER            hitpoints    16
  10. ;RED LASER            hitpoints    24
  11. ;PURPLE LASER        hitpoints    12
  12.  
  13. ;PLASMA BOLT 1        hitpoints    30
  14. ;PLASMA BOLT 2        hitpoints    25
  15. ;PLASMA BOLT 3        hitpoints    15
  16. ;PLASMA BOLT 4        hitpoints    20
  17.  
  18. ;ROCKET 1            hitpoints    150
  19. ;ROCKET 2            hitpoints    500
  20. ;GUIDED MISSILE        hitpoints    120
  21. ;TRACER SHOT 1        hitpoints    110
  22.  
  23. ;BOMB 1                hitpoints    500
  24. ;DESIGNATOR            hitpoints    0
  25. ;FOAM                hitpoints    0
  26.  
  27. ;ENERGY 1            hitpoints    150
  28. ;ENERGY 2            hitpoints    50
  29.  
  30. ;BIG SHELL            hitpoints    32
  31. #=====================================================
  32.  
  33. alliedobjective "adata"
  34.  
  35. refuel_pads
  36.     "Ar1"
  37.     "Ar2"
  38.     "Ar3"
  39.     "Ar4"
  40.     "replen1"
  41.     "replen2"
  42.  
  43. phasestart
  44.  
  45. phasemessage 85 30
  46. playcdtrack 4
  47.  
  48. clear_flag all
  49.  
  50. critical_group "adata"
  51.  
  52. create "helicopter"
  53.     label "rez"
  54.     position 41321 -122 49574
  55.     forward -0.5 0 -0.8 up 0 1 0
  56.     armed_with "PURPLE LASER"    rate 2
  57.     secondary_armed_with "GUIDED MISSILE" rate 64 rounds 20
  58.     inert
  59.  
  60. create "tank1"
  61.     label "spikee"
  62.     position 14500 on ground 15000
  63.     forward 1 0 0 up 0 1 0
  64. ;    armed_with "RED LASER"    rate 6
  65.     armed_with "ROCKET 1" rate 32
  66. ;    secondary_armed_with "GUIDED MISSILE" rate 64 rounds 20
  67. ;    secondary_armed_with "ROCKET 1" rate 16 rounds 20
  68.     inert
  69.  
  70. create "laser gun"
  71.     label "rowla"
  72.     position 46951 on ground 43875
  73.     forward -0.5 0 0.8 up 0 1 0
  74.     armed_with "GREEN LASER"    rate 2
  75.     inert
  76.  
  77. create "rack"
  78.     position 46494 on ground 44332
  79.     forward 0.5 0 0.8 up 0 1 0
  80.     armed_with "GUIDED MISSILE"    rate 64
  81.     task
  82.         slave_to "rowla"
  83.     end
  84.  
  85. create "laser gun"
  86.     label "pearl"
  87.     position 37261 on ground 50165
  88.     forward -1 0 0 up 0 1 0
  89.     armed_with "GREEN LASER"    rate 2
  90.     inert
  91.  
  92. create "rack"
  93.     position 36803 on ground 49675
  94.     forward 0.5 0 0.8 up 0 1 0
  95.     armed_with "GUIDED MISSILE"    rate 64
  96.     inert
  97.     task
  98.         slave_to "pearl"
  99.     end
  100.  
  101. create hero "laser gun"
  102.     label "banstyle"
  103.     position 37200 on ground 42201
  104.     forward -0.8 0 -0.5 up 0 1 0
  105.     armed_with "GREEN LASER"    rate 2
  106.     task
  107.         wait_until flag 0 set
  108.         playercontrols
  109.             break_task_if flag 31 set
  110.     end
  111.  
  112. create "rack"
  113.     position 36780 on ground 41773
  114.     forward 0.5 0 0.8 up 0 1 0
  115.     armed_with "GUIDED MISSILE"    rate 64
  116.     task
  117.         slave_to "banstyle"
  118.     end
  119.  
  120. hud off
  121. camera
  122.     attached_to "hero"
  123.     position 600 -300 -600
  124.     pointing_at "hero"
  125.     dolly 0
  126. pause 40
  127. set_flag 0
  128.  
  129. camera cockpit
  130.  
  131. create "tranheli"
  132.     position 40000 -1200 36000
  133.     task
  134.         goto 35000 -600 42000
  135.         goto 37500 -1000 46000
  136.         goto 65000 -2500 65000
  137.         kill
  138.     end
  139.  
  140. ;----------------------------
  141. ;first 2 waves
  142.  
  143. procedure "a1"
  144.     create "lfighter"
  145.         position 27580 -1100 29500
  146.         towards "hero"
  147.         armed_with "PURPLE LASER"    rate 6
  148.         task
  149.             patrol
  150.                 point 28920 -1640 34824
  151.                 point 36200 -700 41670
  152.                 point 37900 -950 42790
  153.                 point 36860 -2900 36150
  154.         end
  155.  
  156.     pause 30
  157. end_procedure terminate after 4 loops
  158.  
  159. pause 60
  160. #....................................................................
  161.     phasemessage 26 30
  162.  
  163.     play_speech "incoming alien fighters"
  164. #....................................................................
  165.  
  166. wait_until proc "a1" terminated
  167. wait_until number_of "aliens" = 0
  168.  
  169. procedure "a1"
  170.     create "lfighter"
  171.         position 21420 -2380.2 43450.8
  172.         towards "hero"
  173.         task
  174.             patrol
  175.                 point 25902 -1841.2 35409.8
  176.                 point 35548.8 -821.2 41675
  177.                 point 37980.8 -1681.2 42581.8
  178.                 point 40255.6 -3465.1 49358.6
  179. ;                point 19634.1 -3021.2 37580.8
  180.  
  181.         end
  182.  
  183.     pause 30
  184. end_procedure terminate after 4 loops
  185.  
  186. wait_until proc "a1" terminated
  187. wait_until number_of "aliens" = 0
  188.  
  189.  
  190. ;----------------------------
  191.  
  192. create "lbomber"
  193. ;path red1
  194.     position 22000 -2300 40000
  195.     towards "hero"
  196.     armed_with "PLASMA BOLT 4" rate 4
  197.     task
  198.         patrol
  199.             point 35000 -2300 40000
  200.             point 37500 -2300 40000
  201.             point 38000 -2300 45000
  202.             point 30000 -2300 42500
  203.     end
  204.     
  205. pause 100
  206.  
  207.  
  208. create "lfighter"
  209. ;path pink2
  210.     position 20000 -3100 42200
  211.     towards "hero"
  212.     armed_with "PLASMA BOLT 3" rate 8
  213.     task
  214.             goto 31500 -3100 42200
  215.             goto 32500 -2400 42200
  216.             goto 34000 -2000 42200
  217.             goto 35500 -1600 42200
  218.             goto 38000 -1400 42200
  219.         patrol
  220.             point 36000 -3100 47000
  221.             point 40000 -3100 40000
  222.             point 38000 -3100 36000
  223.             point 35000 -3100 35000
  224.             point 33000 -3100 46000
  225.             break_task_if number_of "aliens" <2
  226.         attack "hero"
  227.     end
  228.     
  229. create "lfighter"
  230. ;path pink3
  231.     position 15000 -2800 39000
  232.     towards "hero"
  233.     armed_with "PLASMA BOLT 3" rate 8
  234.     task
  235.         patrol
  236.             point 37500 -2800 37500
  237.             point 40000 -2800 42000
  238.             point 35000 -2800 46000
  239.             point 31000 -2800 42000
  240.             point 31000 -2800 36000
  241.             break_task_if number_of "aliens" <5
  242.         attack "hero"
  243.     end
  244.     
  245. pause 40
  246.  
  247. create "lbomber"
  248.     position 25000 -2100 39000
  249.     towards "hero"
  250.     armed_with "PLASMA BOLT 4" rate 4
  251.     task
  252.         patrol
  253.             point 35000 -1900 37500
  254.             point 40000 -1900 40000
  255.             point 36000 -1900 46000
  256.             point 32500 -1900 44000
  257.     end
  258.  
  259. pause 200
  260.  
  261. create "lfighter"
  262.     position 5000 -3400 30000
  263.     towards "hero"
  264.     armed_with "PLASMA BOLT 3" rate 8
  265.     task
  266.         goto 20000 -3400 40000
  267.         goto 30000 -3400 42200
  268.         goto 31000 -2400 42200
  269.         goto 32000 -2200 42200
  270.         goto 33000 -2000 42200
  271.         goto 34000 -1800 42200
  272.         goto 35000 -1600 42200
  273.         goto 38000 -1400 42200
  274.         patrol
  275.              point 41000 -3400 42200
  276.             point 40000 -3400 45000
  277.             point 30000 -3400 40000
  278.             point 29000 -3400 38000
  279.             point 32500 -3400 35000
  280.             break_task_if number_of "aliens" <2
  281.         attack "hero"
  282.     end
  283.     
  284. create "lfighter"
  285.     position 15000 -2500 40000
  286.     towards "hero"
  287.     armed_with "PLASMA BOLT 3" rate 8
  288.     task
  289.         patrol
  290.             point 35000 -2500 45000
  291.             point 39000 -2500 42000
  292.             point 37000 -2500 38000
  293.             point 32500 -2500 37500
  294.             point 32500 -2500 42000
  295.             break_task_if number_of "aliens" <5
  296.         attack "hero"
  297.  
  298.     end
  299.     
  300. create "lbomber"
  301.     position 25000 -500 34500
  302.     towards "hero"
  303.     armed_with "PLASMA BOLT 4" rate 4
  304.     task
  305.              goto 37500 -700 42500
  306.             goto 40000 -1000 40000
  307.             goto 38500 -1500 37500
  308.         patrol
  309.             point 34000 -1700 39000
  310.             point 37000 -1700 47000
  311.             point 40000 -1700 45000
  312.             point 39000 -1700 42000
  313.             point 37500 -1700 41000
  314.     end
  315.  
  316. create "tranheli"
  317.     position 37500 -2500 57500
  318.     task
  319.         goto 36000 -2500 53000
  320.         goto 34000 -2000 50000
  321.         goto 33000 -2000 47000
  322.         goto 37500 -2000 47000
  323.         goto 60000 -2500 47000
  324.         kill
  325.     end
  326.  
  327. create "tranheli"
  328.     position 40000 -2500 20000
  329.     forward -1 0 0 up 0 1 0
  330.     task
  331.         goto 35000 -2500 40000
  332.         goto 40000 -600 50000
  333.         goto 55000 -2500 40000
  334.         kill
  335.     end
  336.  
  337. procedure "a"
  338.     wait_until number_of_baddies < 22
  339.  
  340.     create "lfighter"
  341.         position 27500 -4000 25000
  342.         towards "hero"
  343.         armed_with "PLASMA BOLT 3" rate 8
  344.         task
  345.             goto 34000 -4000 44000
  346.             shoot
  347.             goto 38000 -4000 44000
  348.             shoot
  349.             goto 39000 -4000 40000
  350.             shoot
  351.             goto 27500 -4000 25000
  352.             kill
  353.         end
  354.    pause 1200
  355. do_procedure_until number_of "aliens" <3
  356.  
  357. procedure "b"
  358.     pause 50
  359.     wait_until number_of_baddies < 22
  360.     create "lfighter"
  361.         position 22500 -4400 31000
  362.         towards "hero"
  363.         armed_with "PLASMA BOLT 3" rate 8
  364.         task
  365.             goto 33000 -4400 44000
  366.             shoot
  367.             goto 37000 -4400 43000
  368.             shoot
  369.             goto 37500 -4400 39000
  370.             shoot
  371.             goto 22500 -4400 31000
  372.             kill
  373.         end
  374.     pause 1000
  375. do_procedure_until number_of "aliens" <4
  376.  
  377. procedure "c"
  378.     pause 100
  379.     wait_until number_of_baddies < 22
  380.     create "lfighter"
  381.         position 20000 -4800 45000
  382.         towards "hero"
  383.         armed_with "PLASMA BOLT 3" rate 8
  384.         task
  385.             goto 35000 -4800 37500
  386.             shoot
  387.             goto 37500 -4800 40000
  388.             shoot
  389.             goto 37000 -4800 43000
  390.             shoot
  391.             goto 20000 -4800 45000
  392.              kill
  393.         end
  394.     pause 800
  395. do_procedure_until number_of "aliens" <5
  396.  
  397. create "tranheli"
  398.     position 60000 -2300 50000
  399.     forward -1 0 0 up 0 1 0
  400.     task
  401.         goto 40000 -2300 42500
  402.         goto 30000 -600 37500
  403.         goto 20000 -2500 30000
  404.         kill
  405.     end
  406.  
  407. wait_until number_of "aliens" =0
  408.  
  409. end_procedure "a"
  410. end_procedure "b"
  411. end_procedure "c"
  412.  
  413.  
  414. #....................................................................
  415.     phasemessage 25 30
  416.  
  417.     play_speech "incoming alien craft"
  418. #....................................................................
  419.  
  420.  
  421.  
  422. create "lfighter"
  423.     position 45780.7 -801.2 57207.5
  424.     towards "hero"
  425.     armed_with "PLASMA BOLT 3" rate 4
  426.     task
  427.         goto 44820.9 -2011.2 52759.4
  428.         goto 42411.7 -2851.2 46658.1
  429.         attack "hero"
  430.     end
  431. pause 30
  432.  
  433.  
  434. procedure "a1"
  435.     create "lfighter"
  436.         position 45780.7 -801.2 57207.5
  437.         towards "hero"
  438.         task
  439.             patrol
  440.                 point 44820.9 -2011.2 52759.4
  441.                 point 42411.7 -2851.2 46658.1
  442.                 point 37155.6 -551.2 42836.6
  443.                 point 35229.8 -1461.2 39685.4
  444.                 point 34942.1 -3461.2 48188
  445.         end
  446.     pause 30
  447. end_procedure terminate after 2 loops
  448.  
  449. wait_until proc "a1" terminated
  450.  
  451. create "lfighter"
  452.     position 48544.9 -616.438 43517.7
  453.     towards "hero"
  454.     armed_with "PLASMA BOLT 3" rate 4
  455.     task
  456.         patrol
  457.             point 46531.2 -1090.15 45691.1
  458.             point 43920.5 -2333.05 45947.4
  459.             point 38340.5 -740.886 42777.7
  460.             point 35968 -2308.35 38655.1
  461.             point 42888.1 -3192.52 36984.1
  462.     end
  463. pause 30
  464.  
  465.  
  466. procedure "a2"
  467.     create "lfighter"
  468.         position 48544.9 -616.438 43517.7
  469.         towards "hero"
  470.         task
  471.             patrol
  472.                 point 46531.2 -1090.15 45691.1
  473.                 point 43920.5 -2333.05 45947.4
  474.                 point 38340.5 -740.886 42777.7
  475.                 point 35968 -2308.35 38655.1
  476.                 point 42888.1 -3192.52 36984.1
  477.         end
  478.     pause 30
  479. end_procedure terminate after 2 loops
  480.  
  481. wait_until proc "a2" terminated
  482.  
  483. wait_until number_of "aliens" =0
  484.  
  485. set_flag 31
  486. set_inert "hero"
  487.  
  488. #....................................................................
  489.     phasemessage 10 60
  490.  
  491.     play_speech "phase complete"
  492. #....................................................................
  493.  
  494. pause 20
  495.  
  496. kill group "aihuman"
  497.  
  498. hud off
  499. camera
  500.     attached_to "hero"
  501.     position 600 -300 -600
  502.     pointing_at "hero"
  503.     dolly 0
  504. pause 40
  505.  
  506. ;-------------------------------------------------------
  507. ;PHASE 2
  508. ;-------------------------------------------------------
  509.  
  510. phasestart
  511.  
  512. playcdtrack 5
  513. clear_flag all
  514.  
  515. create "recpod2"
  516.     label "dark"
  517. ;    mission_critical
  518.     position 22500 on ground 42500
  519.     inert
  520.     task
  521.         wait_until flag 3 set
  522.         bepod
  523.         set_flag 1
  524. ;        take_to 0 -100 0 relative to "replen1"
  525.         take_to 0 -150 0 relative to "P2pad"
  526.         set_flag 2
  527.         pause 70
  528.         kill
  529.     end
  530.  
  531.  
  532. create "AItank1"
  533.     position 22800 on ground 41800
  534.     label "cnvyA"
  535.  
  536. switch_hero "rez"
  537.     task
  538.         wait_until flag 0 set
  539.         playercontrols
  540.             break_task_if distance_between "rez" and "dark" <2000 and flag 3 set
  541.         playercontrolswithrope from "dark" to 0 -150 0 relative to "P2pad"
  542.     end
  543.  
  544. set_waypoint "dark"
  545.  
  546. camera_task
  547.     hud off
  548.     cam_pos 600 -200 -600 attached_to "hero"
  549.     cam_focus "hero"
  550.     dolly 0
  551.     set_flag 0
  552.  
  553.     cam_goto -600 -200 -600
  554.     wait_until distance_between "hero" and "replen1" > 500
  555.  
  556.     cam_mode cockpit
  557.  
  558.     wait_until    distance_between "hero" and "dark" <2000 and flag 3 set
  559.     cam_pos 0 0 -2000 attached_to "dark"
  560.     cam_focus "hero"
  561.     hud off
  562.  
  563.     pause 20
  564.     cam_goto 1000 0 0
  565.  
  566.     wait_until flag 1 set
  567.     cam_mode last    ;cockpit
  568.  
  569.     wait_until    distance_between "hero" and "Rdrop" <2000
  570.     cam_pos waypoint
  571. ;    0 0 -2000 attached_to "replen1"
  572.     cam_focus "hero"
  573.     hud off
  574.  
  575.     pause 50
  576. ;    cam_goto 1000 -200 1000
  577. end
  578.  
  579. #....................................................................
  580.     phasemessage 86 60
  581.  
  582.     play_speech "follow waypoint marker"
  583. #....................................................................
  584.  
  585.  
  586. wait_until distance_between "rez" and "dark" <12000
  587.  
  588. #....................................................................
  589.     phasemessage 30 60
  590.  
  591.     play_speech "destroy alien surface craft"
  592. #....................................................................
  593.  
  594. clear_waypoint
  595.  
  596. create "AItank2"
  597.     position 21000 on ground 40500
  598.     forward -1 0 0 up 0 1 0
  599.     armed_with "RED LASER" rate 64
  600.     task
  601.             wait_until number_of "aliens">1
  602.             attack
  603.             goto 22600 on ground 43500
  604.     end
  605.  
  606. create "AItank2"
  607.     position 19000 on ground 42500
  608.     forward -1 0 0 up 0 1 0
  609.     armed_with "RED LASER" rate 64
  610.     task
  611.             wait_until number_of "aliens">1
  612.             attack
  613.             goto 22000 on ground 41800
  614.     end
  615.  
  616. create "atank"
  617.     position 11000 on ground 40000
  618.     forward 1 0 0 up 0 1 0
  619.     armed_with "PLASMA BOLT 1" rate 28
  620.     task
  621.         attack
  622.     end
  623.  
  624. create "atank"
  625.     position 8000 on ground 37500
  626.     forward 1 0 0 up 0 1 0
  627.     armed_with "PLASMA BOLT 1" rate 28
  628.     task
  629.         attack
  630.     end
  631.  
  632. ;------------
  633. ;convoy
  634.  
  635. create "atank"
  636.     position 13627.3 on ground 21100.4
  637.     armed_with "PLASMA BOLT 1" rate 28
  638.     task
  639.         patrol
  640.             point 12378.7 on ground 30264.5
  641.             point 18460 on ground 40820
  642.             point 20760 on ground 41250
  643.             point 24190 on ground 40670
  644.             break_task_if distance_between 24190 on ground 40670 and me < 1200
  645.             attack "rad4"
  646.             attack "hero"
  647.     end
  648. pause 50
  649.  
  650. create "atank"
  651.     position 13627.3 on ground 21100.4
  652.     armed_with "PLASMA BOLT 1" rate 28
  653.     task
  654.         patrol
  655.             point 12378.7 on ground 30264.5
  656.             point 18460 on ground 40820
  657.             point 20760 on ground 41250
  658.             point 24190 on ground 40670
  659.             break_task_if distance_between 24190 on ground 40670 and me < 1200
  660.             attack "rad4"
  661.             attack "hero"
  662.     end
  663. pause 50
  664.  
  665. create "atank"
  666.     position 13627.3 on ground 21100.4
  667.     armed_with "PLASMA BOLT 1" rate 28
  668.     task
  669.         patrol
  670.             point 12378.7 on ground 30264.5
  671.             point 18460 on ground 40820
  672.             point 20760 on ground 41250
  673.             point 26900 on ground 36850
  674.             break_task_if distance_between 26900 on ground 36850 and me < 1200
  675.             attack "rad5"
  676.             attack "hero"
  677.     end
  678. pause 50
  679.  
  680. create "atank"
  681.     position 13627.3 on ground 21100.4
  682.     armed_with "PLASMA BOLT 1" rate 28
  683.     task
  684.         patrol
  685.             point 12378.7 on ground 30264.5
  686.             point 18460 on ground 40820
  687.             point 20760 on ground 41250
  688.             point 26900 on ground 36850
  689.             break_task_if distance_between 26900 on ground 36850 and me < 1200
  690.             attack "rad5"
  691.             attack "hero"
  692.     end
  693.  
  694. ;------------
  695.  
  696.  
  697. create "lfighter"
  698.     position 12938 -1416 26491
  699.     towards "hero"
  700.     armed_with "PLASMA BOLT 3" rate 8
  701.     task
  702.         attack "hero"
  703.     end
  704.  
  705.  
  706. create "lfighter"
  707.     position 42500 -2600 9000
  708.     towards "hero"
  709.     armed_with "PLASMA BOLT 3" rate 8
  710.     task
  711.         patrol
  712.             point 11500 -3000 35000
  713.             point 7500 -3000 35000
  714.             point 5000 -3000 38000
  715.             point 10000 -3000 42000
  716.             point 12500 -3000 39000
  717.             break_task_if number_of "aland" <2
  718.             attack group "aihuman"
  719.             attack
  720.     end
  721.  
  722. procedure "n"
  723.     set_waypoint nearest "aland"
  724. do_procedure_until number_of "aland" = 0
  725.  
  726. wait_until number_of "aland" =0
  727. end_procedure "n"
  728.  
  729.  
  730. create "lfighter"
  731.     position 12938 -1416 26491
  732.     towards "hero"
  733.     armed_with "PLASMA BOLT 3" rate 8
  734.     task
  735.         attack "hero"
  736.     end
  737.  
  738.  
  739. create "lfighter"
  740.     position 42500 -2600 9000
  741.     towards "hero"
  742.     armed_with "PLASMA BOLT 3" rate 8
  743.     task
  744.         attack "hero"
  745.     end
  746.  
  747. wait_until number_of "aliens" =0
  748.  
  749. set_flag 3
  750. set_waypoint "dark"
  751. #....................................................................
  752.     phasemessage 50 30
  753.  
  754.     play_speech "follow waypoint marker"
  755. #....................................................................
  756.  
  757.  
  758.  
  759. wait_until distance_between "hero" and waypoint <2000
  760. #....................................................................
  761.     phasemessage 64 60
  762.  
  763.     play_speech "retrieve recon pod"
  764. #....................................................................
  765.  
  766. wait_until flag 1 set
  767. #....................................................................
  768.     phasemessage 50 30
  769.  
  770.     play_speech "follow waypoint marker"
  771. #....................................................................
  772.  
  773.  
  774. wait_until flag 2 set
  775. pause 1
  776. clear_waypoint
  777.  
  778. set_flag 31
  779. set_inert "hero"
  780.  
  781.  
  782. #....................................................................
  783.     phasemessage 10 60
  784.  
  785.     play_speech "phase complete"
  786. #....................................................................
  787.  
  788.  
  789. pause 20
  790.  
  791. kill group "aihuman"
  792.  
  793. pause 100
  794.  
  795. ;-------------------------------------------------------
  796. ;PHASE 3
  797. ;-------------------------------------------------------
  798.  
  799. #===================================
  800.  
  801. phasestart
  802.  
  803. #....................................................................
  804.     phasemessage 29 60
  805.  
  806.     play_speech "incoming alien tanks"
  807. #....................................................................
  808.  
  809.  
  810. clear_flag all
  811.  
  812. switch_hero "spikee"
  813.     task
  814.         wait_until flag 0 set
  815.         playercontrols
  816.             break_task_if flag 31 set
  817. ;            break_task_if flag 10 set
  818.     end
  819.  
  820. hud off
  821. camera
  822.     attached_to "hero"
  823.     position 600 -200 -600
  824.     pointing_at "hero"
  825.     dolly 0
  826. pause 40
  827. set_flag 0
  828.  
  829. camera cockpit
  830.  
  831. set_inert "rez"
  832. set_task "rez"
  833.         position 41321 -152 49574
  834.         secondary_armed_with "GUIDED MISSILE" rate 64 rounds 20
  835. ;        secondary_armed_with "ROCKET 2" rate 20 rounds 20
  836.     end
  837.  
  838. create "tranheli"
  839.     position 10000 -800 15000
  840.     task
  841.         goto 20000 -1000 20000
  842.         goto 25000 -1000 25000
  843.         goto 35000 -2000 45000
  844.         kill
  845.     end
  846.  
  847. create "atank"
  848.     position 11000 on ground 27500
  849.     towards "hero"
  850.     armed_with "PLASMA BOLT 1" rate 14
  851.     task
  852.         goto 12000 on ground 20000
  853.         attack "hero"
  854.     end
  855.  
  856. create "atank"
  857.     position 12500 on ground 28000
  858.     towards "hero"
  859.     armed_with "PLASMA BOLT 1" rate 14
  860.     task
  861.         goto 14000 on ground 20000
  862.         attack "hero"
  863.     end
  864.  
  865. pause 100
  866.  
  867. create "facraft"
  868.     position 11000 on ground 38500
  869.     towards "hero"
  870.     armed_with "PLASMA BOLT 1" rate 28
  871.     task
  872.         goto 12000 on ground 19000
  873.         attack "storeT1"
  874.          attack "hero"
  875.     end
  876.     
  877. create "facraft"
  878.     position 13500 on ground 38000
  879.     towards "hero"
  880.     armed_with "PLASMA BOLT 1" rate 28
  881.     task
  882.         goto 14000 on ground 19000
  883.         attack "rad3"
  884.         attack
  885.     end
  886.     
  887. create "facraft"
  888.     position -1000 on ground 17500 relative toxz "hero"
  889.     towards "hero"
  890.     armed_with "PLASMA BOLT 1" rate 28
  891.     task
  892.         goto -1000 on ground 16500 relative toxz "hero"
  893.         attack "hero"
  894.     end
  895.     
  896. create "facraft"
  897.     position 1000 on ground 16500 relative toxz "hero"
  898.     towards "hero"
  899.     armed_with "PLASMA BOLT 1" rate 28
  900.     task
  901.         attack "storeT1"
  902.         attack
  903.     end
  904.  
  905. wait_until number_of "aliens" <= 0
  906.  
  907. #....................................................................
  908.     phasemessage 23 60
  909.  
  910.     play_speech "incoming"
  911. #....................................................................
  912.  
  913.  
  914. procedure "a1"
  915.     create "atank"
  916.         position 25383 on ground 14385.5
  917.         armed_with "PLASMA BOLT 1" rate 14
  918.         task
  919.             goto 23676.3 on ground 18963.7
  920.             goto 18922.2 on ground 18294.9
  921.             goto 16235.8 on ground 14738.4
  922.             attack "rad3"
  923.             attack
  924.         end
  925.         pause 100
  926. end_procedure terminate after 2 loops
  927.  
  928. procedure "a2"
  929.     create "atank"
  930.         position 26383 on ground 15385.5
  931.         armed_with "PLASMA BOLT 1" rate 14
  932.         task
  933.             goto 24676.3 on ground 19963.7
  934.             goto 19922.2 on ground 19294.9
  935.             goto 17235.8 on ground 15738.4
  936.             attack "storeT1"
  937.             attack
  938.         end
  939.         pause 100
  940. end_procedure terminate after 2 loops
  941.  
  942.  
  943. wait_until proc "a1" terminated
  944. wait_until proc "a2" terminated
  945.  
  946. wait_until number_of "aliens" <= 2
  947.  
  948. procedure "a3"
  949.     create "atank"
  950.         position  510 on ground 15290
  951.         towards "hero"
  952.  
  953.         armed_with "PLASMA BOLT 1" rate 14
  954.         task
  955.             goto 4950 on ground 13670
  956.             attack "rad3"
  957.             attack "hero"
  958.         end
  959.         pause 100
  960. end_procedure terminate after 3 loops
  961.  
  962. wait_until proc "a3" terminated
  963.  
  964. wait_until number_of "aliens" = 0
  965.  
  966. set_flag 31
  967. set_inert "hero"
  968.  
  969.  
  970. #....................................................................
  971.     phasemessage 10 60
  972.  
  973.     play_speech "phase complete"
  974. #....................................................................
  975.  
  976.  
  977. pause 20
  978.  
  979. hud off
  980. camera
  981.     attached_to "hero"
  982.     position 600 -300 -600
  983.     pointing_at "hero"
  984.     dolly 0
  985. pause 40
  986.  
  987. ;-------------------------------------------------------
  988. ;PHASE 4
  989. ;-------------------------------------------------------
  990.  
  991. #=================================================
  992.  
  993. phasestart
  994.  
  995. playcdtrack 4
  996. clear_flag all
  997.  
  998. #....................................................................
  999.     phasemessage 61 100
  1000.  
  1001.     play_speech "defend installation"
  1002. #....................................................................
  1003.  
  1004.  
  1005. switch_hero "pearl"
  1006.     task
  1007.         wait_until flag 0 set
  1008.         playercontrols
  1009.             break_task_if flag 31 set
  1010.     end
  1011.  
  1012. hud off
  1013. camera
  1014.     attached_to "hero"
  1015.     position 600 -200 -600
  1016.     pointing_at "hero"
  1017.     dolly 0
  1018.     pause 40
  1019.     set_flag 0
  1020.  
  1021. camera cockpit
  1022.  
  1023. kill "spikee"
  1024. ;set_task "spikee"
  1025. ;        position 14500 on ground 15000
  1026. ;        secondary_armed_with "GUIDED MISSILE" rate 20 rounds 20
  1027. ;    end
  1028.  
  1029. set_task "rez"
  1030.         position 13347 -152 15970
  1031.         forward 0 0 1 up 0 1 0
  1032.     end
  1033.  
  1034. create "tranheli"
  1035.     position 37500 -1300 57500
  1036.     task
  1037.         goto 34000 -1200 50000
  1038.         goto 37500 -1200 47000
  1039.         goto 62500 -2500 42500
  1040.         kill
  1041.     end
  1042.  
  1043.  
  1044.  
  1045. procedure "bonus1"
  1046.  
  1047.     pause 450
  1048.  
  1049.     create "lbomber"
  1050.         position 37248 -1461.2 63109.1
  1051.         towards "hero"
  1052.         task
  1053.             goto 35978.7 -3571.2 28172.2
  1054.             kill
  1055.         end
  1056.  
  1057.     pause 450
  1058.  
  1059. end_procedure terminate after 2 loops
  1060.  
  1061.  
  1062. procedure "bonus2"
  1063.  
  1064.     pause 950
  1065.  
  1066.     create "lbomber"
  1067.         position 19780 -4611.2 35540
  1068.  
  1069.         towards "hero"
  1070.         task
  1071.             goto 52017.6 -4611.2 60594.2
  1072.             kill
  1073.         end
  1074.  
  1075. end_procedure terminate after 2 loops
  1076.  
  1077. ;-----------wave 1
  1078. procedure "a1"
  1079.     create "lfighter"
  1080.         position 27925 -2060 56600
  1081.  
  1082.         towards "hero"
  1083.         armed_with "PLASMA BOLT 3" rate 32
  1084.         task
  1085.             goto 29684 -2731.3 54978
  1086.             goto 34775.5 -821.295 51708.7
  1087.             attack "hero"
  1088.         end
  1089.  
  1090.         pause 50
  1091.  
  1092. end_procedure terminate after 4 loops
  1093.  
  1094. wait_until proc "a1" terminated
  1095. wait_until number_of "aair" <=1
  1096.  
  1097. ;-----------wave 2
  1098. procedure "a1"
  1099.     create "lfighter"
  1100.         position 37613.6 -801.2 55473.7
  1101.         towards "hero"
  1102.         task
  1103.             patrol
  1104.                 point 37506.4 -1341.2 53797.2
  1105.                 point 37316.2 -681.2 50823.2
  1106.                 point 37875.4 -1161.2 50211.6
  1107.                 point 38867.7 -1201.2 50709.3
  1108.         end
  1109.  
  1110.         pause 50
  1111.  
  1112. end_procedure terminate after 4 loops
  1113.  
  1114. wait_until proc "a1" terminated
  1115. wait_until number_of "aair" <=1
  1116.  
  1117. ;-----------wave 3
  1118. procedure "a1"
  1119.     create "lfighter"
  1120.         position 29475.1 -2051.2 45627.7
  1121.         towards "hero"
  1122.         armed_with "PLASMA BOLT 3" rate 32
  1123.         task
  1124.             goto 31994.8 -3200 46335.2
  1125.             attack "hero"
  1126.         end
  1127.  
  1128.         pause 50
  1129. end_procedure terminate after 2 loops
  1130.  
  1131. procedure "a2"
  1132.     create "lfighter"
  1133.         position 29647.2 -1911.2 45252
  1134.         towards "hero"
  1135.         armed_with "PLASMA BOLT 1" rate 32
  1136.         task
  1137.             do
  1138.                 goto 32329.1 -2611.2 44700.9
  1139.                 goto 35531 -1701.2 44801.9
  1140.                 shoot "adata"
  1141.                 goto 42115.7 -2911.2 48027.2
  1142.                 shoot "adata"
  1143.                 goto 34970 -3200 49550.2
  1144.             until "adata" destroyed
  1145.             attack "hero"
  1146.         end
  1147.  
  1148.         pause 50
  1149. end_procedure terminate after 2 loops
  1150.  
  1151.  
  1152. wait_until proc "a1" terminated
  1153. wait_until proc "a2" terminated
  1154.  
  1155. wait_until number_of "aair" =0
  1156.  
  1157. ;-----------wave 4
  1158. procedure "a1"
  1159.     create "lfighter"
  1160.         position 27925 -2060 56600
  1161.  
  1162.         towards "hero"
  1163.         armed_with "PLASMA BOLT 3" rate 32
  1164.         task
  1165.                goto 29684 -2731.3 54978
  1166.                goto 34775.5 -821.295 51708.7
  1167.                attack "hero"
  1168.         end
  1169.  
  1170.         pause 50
  1171.  
  1172. end_procedure terminate after 2 loops
  1173.  
  1174. procedure "a2"
  1175.  
  1176.     pause 50
  1177.  
  1178.     create "lfighter"
  1179.         position 28479.4 -2411.2 58187
  1180.         towards "hero"
  1181.         armed_with "PLASMA BOLT 3" rate 32
  1182.         task
  1183.                goto 30413 -2871.2 56157.5
  1184.                goto 33583.5 -1091.2 53589.6
  1185.                attack "hero"
  1186.         end
  1187.  
  1188. end_procedure terminate after 2 loops
  1189.  
  1190.  
  1191. wait_until proc "a1" terminated
  1192. wait_until proc "a2" terminated
  1193. wait_until number_of "aair" =0
  1194.  
  1195. ;-----------wave 5
  1196. procedure "a1"
  1197.     create "lfighter"
  1198.         position 40318 -221 48770
  1199.  
  1200.  
  1201.         towards "hero"
  1202.         armed_with "PLASMA BOLT 3" rate 32
  1203.         task
  1204.             do
  1205.                 goto 39359.1 -1071.2 49104.7
  1206.                 shoot "hero"
  1207.                 goto 37992.7 -1441.2 50047.4
  1208.                 shoot "hero"
  1209.                 goto 35147.8 -1951.2 49729.8
  1210.                 shoot "hero"
  1211.                 goto 36527.1 -1691.2 46773.3
  1212.                 goto 37818.9 -1691.2 48777.3
  1213.             until "hero" destroyed
  1214.         end
  1215.  
  1216.         pause 50
  1217.  
  1218. end_procedure terminate after 4 loops
  1219.  
  1220.  
  1221. wait_until proc "a1" terminated
  1222. wait_until number_of "aair" =0
  1223.  
  1224. ;-----------wave 6
  1225. procedure "a1"
  1226.     create "lfighter"
  1227.         position 27925 -2060 56600
  1228.  
  1229.         towards "hero"
  1230.         armed_with "PLASMA BOLT 3" rate 32
  1231.         task
  1232.             goto 29684 -2731.3 54978
  1233.             goto 34775.5 -821.295 51708.7
  1234.             attack "hero"
  1235.         end
  1236.  
  1237.         pause 50
  1238.  
  1239. end_procedure terminate after 2 loops
  1240.  
  1241. procedure "a2"
  1242.  
  1243.     pause 50
  1244.  
  1245.     create "lfighter"
  1246.         position 28479.4 -2411.2 58187
  1247.         towards "hero"
  1248.         armed_with "PLASMA BOLT 3" rate 32
  1249.         task
  1250.             goto 30413 -2871.2 56157.5
  1251.             goto 33583.5 -1091.2 53589.6
  1252.             attack "hero"
  1253.         end
  1254.  
  1255. end_procedure terminate after 2 loops
  1256.  
  1257.  
  1258. wait_until proc "a1" terminated
  1259. wait_until proc "a2" terminated
  1260. wait_until number_of "aair" =0
  1261.  
  1262. #....................................................................
  1263.     phasemessage 28 100        
  1264.  
  1265.     play_speech "incoming alien bomber"
  1266. #....................................................................
  1267.  
  1268.  
  1269. create "bomber"
  1270.     position 48547.5 -851.2 57572.6
  1271.     towards "hero"
  1272.     armed_with "ENERGY 2" rate 32
  1273.     task
  1274.         goto 46141.1 -1791.2 56059.2
  1275.         goto 39609.6 -2001.2 51258.2
  1276.         do
  1277.             goto 35628.3 -3051.2 47013
  1278.             shoot "adata"
  1279.             goto 43388.7 -3051.2 38966.6
  1280.             shoot "adata"
  1281.             goto 44108.3 -3051.2 44329.5
  1282.             shoot "adata"
  1283.             goto 36491.8 -3051.2 47017.2
  1284.         until "hero" destroyed
  1285.     end
  1286.  
  1287.  
  1288.  
  1289. wait_until number_of "aliens" =0
  1290.  
  1291. end_procedure "bonus1"
  1292. end_procedure "bonus2"
  1293.  
  1294. set_flag 31
  1295. set_inert "hero"
  1296.  
  1297. #....................................................................
  1298.     phasemessage 10 60
  1299.  
  1300.     play_speech "phase complete"
  1301. #....................................................................
  1302.  
  1303.  
  1304. pause 20
  1305.  
  1306. hud off
  1307. camera
  1308.     attached_to "hero"
  1309.     position 600 -300 -600
  1310.     pointing_at "hero"
  1311.     dolly 0
  1312. pause 40
  1313.  
  1314. kill group "aihuman"
  1315.  
  1316. ;-------------------------------------------------------
  1317. ;PHASE 5
  1318. ;-------------------------------------------------------
  1319.  
  1320. phasestart
  1321.  
  1322. clear_flag all
  1323.  
  1324. set_volatile "pearl"
  1325.  
  1326. switch_hero "rez"
  1327.     task
  1328.         wait_until flag 0 set
  1329.         playercontrols
  1330.             break_task_if flag 31 set
  1331. ;            break_task_if flag 10 set
  1332.     end
  1333.  
  1334.  
  1335. camera_task
  1336.     hud off
  1337.     cam_pos 600 -200 -600 attached_to "hero"
  1338.     cam_focus "hero"
  1339.     dolly 0
  1340.     set_flag 0
  1341.  
  1342.     cam_goto -600 -200 -600
  1343.     wait_until distance_between "hero" and "replen3" > 500
  1344.     cam_mode cockpit
  1345. end
  1346.  
  1347. pause 25
  1348.  
  1349. #....................................................................
  1350.     phasemessage 51 100
  1351.  
  1352.     play_speech "destroy way-pointed object"
  1353. #....................................................................
  1354.  
  1355.  
  1356. ;---------------------
  1357. ;---first & onlybomber
  1358.  
  1359. create "bomber"
  1360.     label "ytsan"
  1361.     position 5000 -2900 30000
  1362.     towards "hero"
  1363.     armed_with "ENERGY 2" rate 5
  1364.     task
  1365.         do
  1366.             goto 33808 -3200 44744
  1367.             shoot "adata"
  1368.             goto 44371 -3200 49578
  1369.             shoot "adata"
  1370.             goto 48838 -3200 38633
  1371.             shoot "adata"
  1372.             goto 36089 -3200 37081
  1373.             shoot "adata"
  1374.         until "hero" destroyed
  1375.     end
  1376.  
  1377.  
  1378. create "lfighter"
  1379.     position 1000 -1000 1000 relative to "ytsan"
  1380.     towards "hero"
  1381.     armed_with "PLASMA BOLT 3" rate 8
  1382.     task
  1383.         do
  1384.             goto 1000 -1000 1000 relative to "ytsan"
  1385.         until distance_between "hero" and "ytsan" < 7000
  1386.             or "ytsan" destroyed
  1387.         attack "hero"
  1388.     end
  1389.  
  1390. create "lfighter"
  1391.     position -1000 -1000 -1000 relative to "ytsan"
  1392.     towards "hero"
  1393.     armed_with "PLASMA BOLT 3" rate 8
  1394.     task
  1395.         do
  1396.             goto -1000 -1000 -1000 relative to "ytsan"
  1397.         until distance_between "hero" and "ytsan" < 7000
  1398.             or "ytsan" destroyed
  1399.         attack "hero"
  1400.     end
  1401.  
  1402. set_waypoint "ytsan"
  1403.  
  1404. procedure "a1"
  1405.     wait_until number_of "aair" < 2
  1406.  
  1407.     create "lfighter"
  1408.         position 0 -2900 17000 relative toxz "ytsan"
  1409.         towards "hero"
  1410.         armed_with "PLASMA BOLT 3" rate 16
  1411.         task
  1412.             do
  1413.                 goto -1000 500 1000 relative to "ytsan"
  1414.             until distance_between "hero" and "ytsan" < 7000
  1415.             or "ytsan" destroyed
  1416.             attack "hero"
  1417.         end
  1418.     pause 400
  1419. end_procedure terminate after 5 loops
  1420.  
  1421. procedure "a2"
  1422.     wait_until number_of "fighters" < 2
  1423.  
  1424.     create "hfighter"
  1425.         position 17000 -3200 500 relative toxz "hero"
  1426.         towards "hero"
  1427.         armed_with "PLASMA BOLT 3" rate 16
  1428.         task
  1429.             attack "hero"
  1430.         end
  1431.  
  1432.     pause 400
  1433. end_procedure terminate after 4 loops
  1434.  
  1435.  
  1436. set_waypoint "ytsan"
  1437. wait_until "ytsan" destroyed
  1438. end_procedure "a1"
  1439. end_procedure "a2"
  1440.  
  1441.  
  1442. clear_waypoint
  1443. #....................................................................
  1444.     phasemessage 55 60
  1445.  
  1446.     play_speech "destroy all alien craft"
  1447. #....................................................................
  1448.  
  1449. wait_until number_of "aliens" = 0
  1450.  
  1451. #....................................................................
  1452.     phasemessage 23 100
  1453.  
  1454.     play_speech "incoming"
  1455. #....................................................................
  1456.  
  1457.  
  1458. procedure "a1"
  1459.     wait_until number_of "aair" < 2
  1460.  
  1461.     create "lfighter"
  1462.         position 0 -3200 -17000 local toxz "hero"
  1463.         towards "hero"
  1464.         armed_with "PLASMA BOLT 3" rate 16
  1465.         task
  1466.             attack "hero"
  1467.         end
  1468.     pause 75
  1469. end_procedure terminate after 5 loops
  1470.  
  1471. wait_until proc "a1" terminated
  1472. wait_until number_of "aliens" = 0
  1473.  
  1474. set_flag 31
  1475. set_inert "hero"
  1476.  
  1477. #....................................................................
  1478.     phasemessage 10 60
  1479.  
  1480.     play_speech "phase complete"
  1481. #....................................................................
  1482.  
  1483.  
  1484. pause 20
  1485.  
  1486. hud off
  1487. camera
  1488.     attached_to "hero"
  1489.     position 600 -300 -600
  1490.     pointing_at "hero"
  1491.     dolly 0
  1492. pause 40
  1493.  
  1494. kill group "aihuman"
  1495.  
  1496. ;-------------------------------------------------------
  1497. ;PHASE 6
  1498. ;-------------------------------------------------------
  1499.  
  1500. phasestart
  1501.  
  1502. playcdtrack 7
  1503.  
  1504.  
  1505. clear_flag all
  1506.  
  1507. set_inert "rez"
  1508.  
  1509. create "tank2"
  1510.     label "P6hero"
  1511.     position 14500 on ground 15000
  1512.     armed_with "ROCKET 1" rate 32
  1513.     secondary_armed_with "GUIDED MISSILE" rate 64 rounds 20
  1514.  
  1515. switch_hero "P6hero"
  1516.     task
  1517.         wait_until flag 0 set
  1518.         playercontrols
  1519.             break_task_if flag 31 set
  1520.     end
  1521.  
  1522. set_task "rez"
  1523.     position 41321 -122 49574
  1524.     secondary_armed_with "GUIDED MISSILE" rate 64 rounds 20
  1525.     end
  1526.  
  1527. hud off
  1528. camera
  1529.     attached_to "hero"
  1530.     position 600 -200 -600
  1531.     pointing_at "hero"
  1532.     dolly 0
  1533. pause 40
  1534. set_flag 0
  1535.  
  1536. camera cockpit
  1537.  
  1538. create "c-lfight"
  1539.     label "downed"
  1540.     position 38834 -55 13184
  1541.     forward 0.5 0 0.8 up 0 1 0
  1542.     inert
  1543.  
  1544.  
  1545. #....................................................................
  1546.     phasemessage 57 60
  1547.  
  1548.     play_speech "destroy alien surface craft"
  1549. #....................................................................
  1550.  
  1551.  
  1552. ;-------------------------------------
  1553. ;-----alien recovery team-------------
  1554.  
  1555.  
  1556. create "atank"
  1557.     label "P6R1"
  1558.     position -3000 on ground -3000 relative to "downed"
  1559.     towards "hero"
  1560.     armed_with "PLASMA BOLT 1" rate 16
  1561.     inert
  1562.     task
  1563.         patrol
  1564.             point -3000 on ground 3000 relative to "downed"
  1565.             point 3000 on ground 3000 relative to "downed"
  1566.             point 3000 on ground -3000 relative to "downed"
  1567.             point -3000 on ground -3000 relative to "downed"
  1568.             break_task_if distance_between "hero" and "downed" < 2000
  1569.         attack "hero"
  1570.     end
  1571.  
  1572. create "atank"
  1573.     label "P6R2"
  1574.     position 3000 on ground 3000 relative to "downed"
  1575.     towards "hero"
  1576.     armed_with "PLASMA BOLT 1" rate 16
  1577.     inert
  1578.     task
  1579.         patrol
  1580.             point 3000 on ground -3000 relative to "downed"
  1581.             point -3000 on ground -3000 relative to "downed"
  1582.             point -3000 on ground 3000 relative to "downed"
  1583.             point -3000 on ground 3000 relative to "downed"
  1584.             break_task_if distance_between "hero" and "downed" < 2000
  1585.         attack "hero"
  1586.     end
  1587.  
  1588.  
  1589. ;-------------------------------------
  1590. ;-------decoys------------------------
  1591.  
  1592. create "facraft"
  1593.     position 22169.1 on ground 20785.6
  1594.     towards "hero"
  1595.     armed_with "PLASMA BOLT 1" rate 28
  1596.     task
  1597.         wait_until distance_between me and "hero" < 3000
  1598.         attack "hero"
  1599.     end
  1600.  
  1601. create "facraft"
  1602.     position 27260.7 on ground 12604.8
  1603.     towards "hero"
  1604.     armed_with "PLASMA BOLT 1" rate 28
  1605.     task
  1606.         wait_until distance_between me and "hero" < 6000
  1607.         attack "hero"
  1608.     end
  1609.  
  1610.  
  1611. procedure "wp"
  1612.     set_waypoint nearest "aland"
  1613. do_procedure_until number_of "aland" = 0
  1614.  
  1615. wait_until number_of "aland" <= 2
  1616.  
  1617. ;---------------
  1618. ;---------ambush
  1619.  
  1620. create "facraft"
  1621.     position 20415.7 on ground 10850.5
  1622.     towards "hero"
  1623.     armed_with "PLASMA BOLT 1" rate 16
  1624.     task
  1625.         attack "hero"
  1626.     end
  1627.  
  1628. create "facraft"
  1629.     position 20592 on ground 8473.08
  1630.     towards "hero"
  1631.     armed_with "PLASMA BOLT 1" rate 16
  1632.     task
  1633.         attack "hero"
  1634.     end
  1635.  
  1636. create "facraft"
  1637.     position 20868.2 on ground 11713.7
  1638.     towards "hero"
  1639.     armed_with "PLASMA BOLT 1" rate 16
  1640.     task
  1641.         attack "hero"
  1642.     end
  1643.  
  1644.  
  1645. wait_until number_of "aland" <= 2
  1646.  
  1647. ;---------------------
  1648. ;---------DEATH VALLEY
  1649.  
  1650. set_volatile "P6R1"
  1651. set_volatile "P6R2"
  1652.  
  1653. create "atank"
  1654.     position 27720 on ground 16576.4
  1655.     towards "hero"
  1656.     armed_with "ROCKET 1" rate 16
  1657.     task
  1658.         attack "hero"
  1659.     end
  1660.  
  1661. create "atank"
  1662.     position 30551.6 on ground 10820.5
  1663.     towards "hero"
  1664.     armed_with "PLASMA BOLT 1" rate 16
  1665.     task
  1666.         attack "hero"
  1667.     end
  1668.  
  1669.  
  1670. #....................................................................
  1671.     phasemessage 25 100
  1672.  
  1673.     play_speech "incoming alien tanks"
  1674. #....................................................................
  1675.  
  1676.  
  1677. pause 100
  1678.  
  1679. create "atank"
  1680.     position 27720 on ground 16576.4
  1681.     towards "hero"
  1682.     armed_with "PLASMA BOLT 1" rate 16
  1683.     task
  1684.         attack "hero"
  1685.     end
  1686.  
  1687.  
  1688.  
  1689. wait_until number_of "aland" <= 2
  1690. end_procedure "wp"
  1691.  
  1692. ;----------------------
  1693. ;---------CRASHED ALIEN
  1694.  
  1695. wait_until number_of "aliens" <= 1
  1696. set_waypoint "downed"
  1697. #....................................................................
  1698.     phasemessage 50 60
  1699.  
  1700.     play_speech "follow waypoint marker"
  1701. #....................................................................
  1702.  
  1703.  
  1704.  
  1705. wait_until distance_between "downed" and "hero" < 1000
  1706.  
  1707. set_flag 31
  1708. set_inert "hero"
  1709.  
  1710.  
  1711. #....................................................................
  1712.     phasemessage 10 60
  1713.  
  1714.     play_speech "phase complete"
  1715. #....................................................................
  1716.  
  1717.  
  1718. pause 20
  1719.  
  1720. hud off
  1721. camera
  1722.     attached_to "hero"
  1723.     position 600 -300 -600
  1724.     pointing_at "hero"
  1725.     dolly 0
  1726. pause 40
  1727.  
  1728. ;-------------------------------------------------------
  1729. ;PHASE 7
  1730. ;-------------------------------------------------------
  1731. phasestart
  1732.  
  1733.  
  1734. clear_flag all
  1735.  
  1736. create "wcrate1"
  1737.     label "long"
  1738.     mission_critical
  1739.     position 37088 on ground 40615
  1740.     inert
  1741.     task
  1742.         bepod
  1743.         set_flag 1
  1744.         take_to "downed"
  1745.         set_flag 2
  1746.     end
  1747.  
  1748.  
  1749. switch_hero "rez"
  1750.     task
  1751.         wait_until flag 0 set
  1752.         playercontrols
  1753.             break_task_if        distance_between "rez" and "long" <2000
  1754.         playercontrolswithrope from "long" to "downed"
  1755.         playercontrols
  1756.             break_task_if flag 31 set
  1757.  
  1758.     end
  1759.  
  1760.  
  1761. camera_task
  1762.     hud off
  1763.     cam_pos 600 -200 -600 attached_to "hero"
  1764.     cam_focus "hero"
  1765.     dolly 0
  1766.     set_flag 0
  1767.  
  1768.     cam_goto -600 -200 -600
  1769.     wait_until distance_between "hero" and "replen1" > 500
  1770.  
  1771.     cam_mode cockpit
  1772.  
  1773.     wait_until    distance_between "hero" and "long" <2000
  1774.     cam_pos 0 0 -2000 attached_to "long"
  1775.     cam_focus "hero"
  1776.     hud off
  1777.  
  1778.     pause 20
  1779.     cam_goto 1000 0 0
  1780.  
  1781.     wait_until flag 1 set
  1782.     cam_mode last;    cockpit
  1783.  
  1784.     wait_until    distance_between "hero" and "downed" <2000
  1785.     cam_pos 0 0 -2000 attached_to "downed"
  1786.     cam_focus "hero"
  1787.     hud off
  1788.  
  1789.     wait_until flag 2 set
  1790.     cam_mode cockpit
  1791. end
  1792.  
  1793. set_waypoint "long"
  1794. #....................................................................
  1795.     phasemessage 66 100
  1796.  
  1797.     play_speech "retrieve cargo crate"
  1798. #....................................................................
  1799.  
  1800.  
  1801. wait_until flag 1 set
  1802. ;---------------------------
  1803. ;-----------crate underslung
  1804. #....................................................................
  1805.     phasemessage 50 60
  1806.  
  1807.     play_speech "follow waypoint marker"
  1808. #....................................................................
  1809.  
  1810.  
  1811. procedure "a1"
  1812.     wait_until number_of "fighters" = 0
  1813.  
  1814.     create "hfighter"
  1815.         position 17000 -3200 500 relative toxz "hero"
  1816.         towards "hero"
  1817.         armed_with "PLASMA BOLT 3" rate 16
  1818.         task
  1819.             attack "hero"
  1820.         end
  1821.  
  1822.  
  1823.     create "lfighter"
  1824.         position -17000 -3200 500 relative toxz "hero"
  1825.         towards "hero"
  1826.         armed_with "PLASMA BOLT 3" rate 16
  1827.         task
  1828.             attack "hero"
  1829.         end
  1830.  
  1831.  
  1832.     pause 400
  1833. end_procedure terminate after 3 loops
  1834.  
  1835. procedure "a2"
  1836.     create "atank"
  1837.         position 33337.7 on ground 34186.8
  1838.         towards "downed"
  1839.         task
  1840.             goto 35662.3 on ground 24668.9
  1841.             goto 36120.5 on ground 15750.2
  1842.             patrol
  1843.                 point 37300 on ground 10730
  1844.                 point 39755.2 on ground 10791.8
  1845.                 point 40739.5 on ground 13629.7
  1846.                 point 38791.1 on ground 15332
  1847.         end
  1848.  
  1849.     pause 50
  1850. end_procedure terminate after 4 loops
  1851.  
  1852. create "AItank2"
  1853.     position 39534 on ground 12484
  1854.     forward -0.5 0 0.8 up 0 1 0
  1855.     armed_with "GREEN LASER" rate 16
  1856.     task
  1857.         wait_until number_of "aland" = 4
  1858.         pause 400
  1859.         do
  1860.             attack
  1861.         until number_of "aland" =0
  1862.         goto 39534 on ground 12484
  1863.     end
  1864.  
  1865. create "AItank2"
  1866.     position 39334 on ground 13884
  1867.     forward 0.8 0 0.5 up 0 1 0
  1868.     armed_with "GREEN LASER" rate 16
  1869.     task
  1870.         wait_until number_of "aland" = 4
  1871.         pause 400
  1872.         do
  1873.             attack
  1874.         until number_of "aland" =0
  1875.         goto 39334 on ground 13884
  1876.     end
  1877.  
  1878. create "AItank2"
  1879.     position 39734 on ground 13114
  1880.     forward 0 0 1 up 0 1 0
  1881.     armed_with "GREEN LASER" rate 16
  1882.     task
  1883.         wait_until number_of "aland" = 4
  1884.         pause 400
  1885.         do
  1886.             attack
  1887.         until number_of "aland" =0
  1888.         goto 39734 on ground 13114
  1889.     end
  1890.  
  1891. wait_until distance_between waypoint and "hero" < 4000
  1892.  
  1893. ;-----------------------
  1894. ;-----------crate droped
  1895.  
  1896. wait_until flag 2 set
  1897. set_inert "long"
  1898.  
  1899. #....................................................................
  1900.     phasemessage 46 60
  1901.  
  1902.     play_speech "re-supply complete"
  1903. #....................................................................
  1904.  
  1905.  
  1906. end_procedure "a1"
  1907. end_procedure "a2"
  1908.  
  1909. clear_waypoint
  1910.  
  1911.  
  1912. #....................................................................
  1913.     phasemessage 55 100
  1914.  
  1915.     play_speech "destroy all alien craft"
  1916. #....................................................................
  1917.  
  1918.  
  1919. wait_until number_of "aliens" = 1            ;crashed is an alien
  1920.  
  1921. #....................................................................
  1922.     phasemessage 25 60
  1923.  
  1924.     play_speech "incoming alien craft"
  1925. #....................................................................
  1926.  
  1927. create "hfighter"
  1928.     position -19000 -3200 500 local toxz "hero"
  1929.     towards "hero"
  1930.     armed_with "PLASMA BOLT 2" rate 11
  1931.     task
  1932.         attack "hero"
  1933.     end
  1934.  
  1935. create "hfighter"
  1936.     position -17000 -3200 500 local toxz "hero"
  1937.     towards "hero"
  1938.     armed_with "PLASMA BOLT 2" rate 11
  1939.     task
  1940.         attack "hero"
  1941.     end
  1942.  
  1943. wait_until number_of "aliens" <=2
  1944.  
  1945. create "lbomber"
  1946.     position 17000 -3500 1000 local toxz "hero"
  1947.     towards "hero"
  1948.     armed_with "PLASMA BOLT 4" rate 32
  1949.     task
  1950.         goto 37500 -2500 12500
  1951.         attack group "aihuman"
  1952.     end
  1953.  
  1954. create "lfighter"
  1955.     position 19000 -3500 2500 local toxz "hero"
  1956.     towards "hero"
  1957.     armed_with "PLASMA BOLT 3" rate 8
  1958.     task
  1959.         attack "hero"
  1960.     end
  1961.  
  1962. create "lfighter"
  1963.     position 19500 -3300 500 local toxz "hero"
  1964.     towards "hero"
  1965.     armed_with "PLASMA BOLT 3" rate 8
  1966.     task
  1967.         attack "hero"
  1968.     end
  1969.  
  1970. wait_until number_of "aliens" =1    ;crashed is an alien
  1971.  
  1972. set_flag 31
  1973. set_inert "hero"
  1974.  
  1975.  
  1976. #....................................................................
  1977.     phasemessage 10 60
  1978.  
  1979.     play_speech "phase complete"
  1980. #....................................................................
  1981.  
  1982.  
  1983. pause 20
  1984.  
  1985. hud off
  1986. camera
  1987.     attached_to "hero"
  1988.     position 600 -300 -600
  1989.     pointing_at "hero"
  1990.     dolly 0
  1991. pause 40
  1992.  
  1993. ;-------------------------------------------------------
  1994. ;PHASE 8
  1995. ;-------------------------------------------------------
  1996.  
  1997. phasestart
  1998.  
  1999. clear_waypoint
  2000. clear_flag all
  2001.  
  2002. mission_uncritical "long"
  2003.  
  2004. kill group "aihuman"
  2005. kill "long"
  2006. kill "downed"
  2007.  
  2008. #....................................................................
  2009.     phasemessage 55 100
  2010.  
  2011.     play_speech "destroy all alien craft"
  2012. #....................................................................
  2013.  
  2014.  
  2015. create "plfight"
  2016.     label "slippy"
  2017.     position 38834 -35 13184
  2018.     forward 0.5 0 0 up 0 1 0
  2019.     armed_with "PLASMA BOLT 3" rate 4
  2020.     secondary_armed_with "ENERGY 2" rate 32 rounds 20
  2021.     inert
  2022.  
  2023. switch_hero "slippy"
  2024.     task
  2025.         wait_until flag 0 set
  2026.         playercontrols
  2027.             break_task_if flag 31 set
  2028. ;            break_task_if flag 10 set
  2029.         land 0 -35 0 local to "replen3"
  2030.     end
  2031.  
  2032. set_inert "rez"
  2033. set_task "rez"
  2034.     position 41321 -122 49574
  2035.     forward 0 0 -1 up 0 1 0
  2036.     secondary_armed_with "GUIDED MISSILE" rate 64 rounds 20
  2037.     end
  2038.  
  2039. hud off
  2040. camera
  2041.     attached_to "hero"
  2042.     position 600 -200 -600
  2043.     pointing_at "hero"
  2044.     dolly 0
  2045. pause 40
  2046. set_flag 0
  2047.  
  2048. camera cockpit
  2049.  
  2050.  
  2051. create "lbomber"
  2052.     position 8800 -2000 45000
  2053.     towards "hero"
  2054.     task
  2055.         patrol
  2056.             point 10000 -2000 15000
  2057.             point 15000 -2000 20000
  2058.             point 18000 -2000 15000
  2059.             point 14000 -2000 11000
  2060.     end
  2061.  
  2062. create "lbomber"
  2063.     position 7500 -1500 44500
  2064.     towards "hero"
  2065.     task
  2066.         patrol
  2067.             point 9000 -2500 13000
  2068.             point 13000 -2500 9000
  2069.             point 18000 -2500 13000
  2070.             point 14000 -2500 17500
  2071.     end
  2072.  
  2073. create "lbomber"
  2074.     position 18000 -3000 50000
  2075.     towards "hero"
  2076.     task
  2077.         patrol
  2078.             point 18000 -3000 35000
  2079.             point 14500 -3000 39500
  2080.             point 10000 -3000 32500
  2081.             point 13000 -3000 25000
  2082.             point 10000 -2000 15000
  2083.             point 15000 -2000 20000
  2084.             point 18000 -2000 15000
  2085.             point 14000 -2000 11000
  2086.     end    
  2087.  
  2088. create "lbomber"
  2089.     position 11000 -2400 47500
  2090.     towards "hero"
  2091.     task
  2092.         patrol
  2093.             point 11000 -2400 32500
  2094.             point 14500 -2400 38000
  2095.             point 17000 -2400 35000
  2096.             point 13000 -2400 26500
  2097.             point 9000 -1500 13000
  2098.             point 13000 -1500 9000
  2099.             point 18000 -1500 13000
  2100.             point 14000 -1500 17500
  2101.     end
  2102.  
  2103. wait_until number_of "aliens" =0
  2104.  
  2105. set_waypoint "replen3"
  2106. #....................................................................
  2107.     phasemessage 50 60
  2108.  
  2109.     play_speech "follow waypoint marker"
  2110. #....................................................................
  2111.  
  2112.  
  2113. wait_until distance_between "slippy" and "replen3" <2000
  2114. clear_waypoint
  2115. set_flag 31
  2116. set_inert "hero"
  2117.  
  2118. camera_task
  2119.     hud off
  2120.     cam_pos 0 0 -2000 attached_to "replen3"
  2121.     cam_focus "hero"
  2122.  
  2123.     pause 50
  2124.     cam_goto 1000 -200 1000
  2125. end
  2126.  
  2127. wait_until distance_between "slippy" and "replen3" <100
  2128.  
  2129. #....................................................................
  2130.     phasemessage 10 60
  2131.  
  2132.     play_speech "phase complete"
  2133. #....................................................................
  2134.  
  2135.  
  2136. ;hud off
  2137. ;camera
  2138. ;    attached_to "hero"
  2139. ;    position 600 -300 -600
  2140. ;    pointing_at "hero"
  2141. ;    dolly 0
  2142. pause 100
  2143.  
  2144.  
  2145. ;-------------------------------------------------------
  2146. ;PHASE 9
  2147. ;-------------------------------------------------------
  2148.  
  2149. phasestart
  2150.  
  2151. playcdtrack 8
  2152.  
  2153. clear_flag all
  2154.  
  2155. kill group "aihuman"
  2156.  
  2157. switch_hero "rez"
  2158.     task
  2159.         position 41321 -122 49574
  2160.         wait_until flag 0 set
  2161.         playercontrols
  2162.             break_task_if flag 31 set
  2163.     end
  2164.  
  2165.  
  2166. camera_task
  2167.     hud off
  2168.     cam_pos 600 -200 -600 attached_to "hero"
  2169.     cam_focus "hero"
  2170.     dolly 0
  2171.     set_flag 0
  2172.  
  2173.     cam_goto -600 -200 -600
  2174.     wait_until distance_between "hero" and "replen1" > 500
  2175.     cam_mode cockpit
  2176. end
  2177. wait_until flag 0 set
  2178. kill "slippy"
  2179.  
  2180. ;----------------
  2181. ;-------pre fight
  2182.  
  2183. create "lfighter"
  2184.     position 1000 -2800 -15000 relative toxz "hero"
  2185.     towards "hero"
  2186.     armed_with "PLASMA BOLT 3" rate 16
  2187.     task
  2188.         attack "hero"
  2189.     end
  2190.  
  2191. create "lfighter"
  2192.     position -5000 -3200 -17000 relative toxz "hero"
  2193.     towards "hero"
  2194.     armed_with "PLASMA BOLT 3" rate 16
  2195.     task
  2196.         attack "hero"
  2197.     end
  2198.  
  2199. ;----------------
  2200. ;------convoy
  2201.  
  2202. generation_points
  2203.     position 58500 on ground 15600
  2204.     position 58500 on ground 13600
  2205.     position 58500 on ground 11600
  2206.     position 58500 on ground 9600
  2207.  
  2208. procedure "a1"
  2209.     create "AItank3"
  2210.         position at generation point
  2211.         task
  2212.             do
  2213.                 stop
  2214.                 set_vel 0
  2215.             until flag 3 set
  2216.  
  2217.             patrol
  2218.                 point 58200 on ground 17500
  2219.                 point 51100 on ground 25000
  2220.                 point 49900 on ground 30000
  2221.                 point 50100 on ground 32500
  2222.                 point 50100 on ground 35000
  2223.                 point 47500 on ground 46000
  2224.                 point 43480 on ground 45380
  2225.                 break_task_if distance_between me and 43480 on ground 45380 < 1200
  2226.  
  2227.                 set_flag 2
  2228.             patrol
  2229.  
  2230.                 point 41922.6 on ground 50681.5
  2231.                 point 44020.1 on ground 50785.2
  2232.                 point 45654.7 on ground 48503
  2233.                 point 43570.9 on ground 46097.3
  2234.         end
  2235.  
  2236. end_procedure terminate after 4 loops
  2237.  
  2238. critical_group "aihuman"
  2239. set_waypoint 58500 on ground 15600
  2240.  
  2241.  
  2242. procedure "a2"
  2243.  
  2244.     pause 100
  2245.     wait_until number_of "aair" = 0
  2246.     create "lfighter"
  2247.         position 17000 -3200 0 local toxz "hero"
  2248.         towards "hero"
  2249.         armed_with "PLASMA BOLT 1" rate 8
  2250.         secondary_armed_with "ENERGY 2" rate 50
  2251.         task
  2252.              attack group "aihuman"
  2253.         end
  2254.  
  2255.     create "lfighter"
  2256.         position -17000 -3200 0 local toxz "hero"
  2257.         towards "hero"     
  2258.         armed_with "PLASMA BOLT 1" rate 8
  2259.         secondary_armed_with "ENERGY 2" rate 50
  2260.         task
  2261.              attack group "aihuman"
  2262.         end
  2263.  
  2264.     pause 150
  2265. end_procedure terminate after 4 loops
  2266.  
  2267. #....................................................................
  2268.     phasemessage 50 60
  2269.  
  2270.     play_speech "follow waypoint marker"
  2271. #....................................................................
  2272.  
  2273. wait_until distance_between "hero" and waypoint < 10000
  2274.  
  2275. #....................................................................
  2276.     phasemessage 62 60
  2277.  
  2278.     play_speech "defend allied craft"
  2279. #....................................................................
  2280.  
  2281.  
  2282. clear_waypoint
  2283.  
  2284. wait_until proc "a1" terminated
  2285. wait_until proc "a2" terminated
  2286.  
  2287. wait_until number_of "aair" =0
  2288.  
  2289. set_flag 3
  2290. generation_points
  2291.     position 53157 on ground 35668
  2292.     position 51157 on ground 35668
  2293.     position 49157 on ground 35668
  2294.     position 47157 on ground 35668
  2295.  
  2296. procedure "a1"
  2297.     create "atank"
  2298.         position at generation point
  2299.         towards 58500 on ground 15600
  2300.         armed_with "PLASMA BOLT 1" rate 8
  2301.         task
  2302.             attack group "aihuman"
  2303.         end
  2304. end_procedure terminate after 4 loops
  2305.  
  2306.  
  2307.  
  2308. procedure "a2"
  2309.  
  2310.     pause 100
  2311.     wait_until number_of "aair" <2
  2312.     create "lfighter"
  2313.         position 0 -2800 17000 relative toxz 58500 on ground 15600
  2314.         towards "hero"
  2315.         armed_with "PLASMA BOLT 1" rate 8
  2316.         secondary_armed_with "ENERGY 2" rate 50
  2317.         task
  2318.              attack group "aihuman"
  2319.         end
  2320.  
  2321.     create "lfighter"
  2322.         position 0 -2800 -17000 relative toxz 58500 on ground 15600
  2323.         towards "hero"
  2324.         armed_with "PLASMA BOLT 1" rate 8
  2325.         secondary_armed_with "ENERGY 2" rate 50
  2326.         task
  2327.              attack group "aihuman"
  2328.         end
  2329.  
  2330.  
  2331.     pause 150
  2332. end_procedure
  2333.  
  2334. procedure "n"
  2335.     set_waypoint nearest "aihuman"
  2336. do_procedure_until number_of "aihuman" = 0
  2337.  
  2338.  
  2339. #....................................................................
  2340.     phasemessage 62 60
  2341.  
  2342.     play_speech "defend allied craft"
  2343. #....................................................................
  2344.  
  2345.  
  2346. wait_until flag 2 set
  2347.  
  2348. explode group "aliens"
  2349.  
  2350. uncritical_group "aihuman"
  2351. end_procedure "a1"
  2352. end_procedure "a2"
  2353. end_procedure "n"
  2354.  
  2355. set_flag 31
  2356. set_inert "hero"
  2357.  
  2358.  
  2359. #....................................................................
  2360.     phasemessage 10 60
  2361.  
  2362.     play_speech "phase complete"
  2363. #....................................................................
  2364.  
  2365.  
  2366. pause 20
  2367.  
  2368. hud off
  2369. camera
  2370.     attached_to "hero"
  2371.     position 600 -300 -600
  2372.     pointing_at "hero"
  2373.     dolly 0
  2374. pause 40
  2375.  
  2376. ;-------------------------------------------------------
  2377. ;PHASE 10
  2378. ;-------------------------------------------------------
  2379. phasestart
  2380.  
  2381. clear_flag all
  2382. clear_waypoint
  2383.  
  2384. kill group "aihuman"
  2385.  
  2386. switch_hero "rowla"
  2387.     task
  2388.         wait_until flag 0 set
  2389.         playercontrols
  2390.             break_task_if flag 31 set
  2391.     end
  2392.  
  2393. hud off
  2394. camera
  2395.     attached_to "hero"
  2396.     position 600 -200 -600
  2397.     pointing_at "hero"
  2398. dolly 0
  2399. pause 40
  2400.  
  2401. kill "rez"
  2402.  
  2403. set_flag 0
  2404. camera cockpit
  2405.  
  2406. #....................................................................
  2407.     phasemessage 28 100
  2408.  
  2409.     play_speech "incoming alien bomber"
  2410. #....................................................................
  2411.  
  2412.  
  2413. ;-----------wave 1
  2414. procedure "a1"
  2415.     create "hfighter"
  2416.         position 46609.9 -844 54550.9
  2417.         towards "hero"
  2418.         armed_with "PLASMA BOLT 3" rate 32
  2419.         task
  2420.             goto 46549.1 -1624 52051.7
  2421.             goto 46528.5 -1624 48741.2
  2422.             goto 46473.8 -814 46491.9
  2423.             goto 51400 -2400 43600
  2424.             attack "hero"
  2425.                 break_task_if vel<2
  2426.             explode
  2427.         end
  2428.  
  2429.         pause 50
  2430.  
  2431. end_procedure terminate after 3 loops
  2432.  
  2433.  
  2434. create "bomber"
  2435.     label "1stB"
  2436.     position 48454 -3048.23 62163
  2437.     towards "hero"
  2438.     armed_with "ENERGY 2" rate 1
  2439.     task
  2440.         do
  2441.             goto 44141.9 -3048.23 44316.4
  2442.             shoot
  2443.             goto 37532.3 -3048.23 40501.1
  2444.             shoot
  2445.             goto 35605.3 -3048.23 48822.7
  2446.             shoot
  2447.             goto 39767.6 -3048.23 54973
  2448.             shoot
  2449.         forever
  2450.     end
  2451.  
  2452. create "lfighter"
  2453.     position 1000 -500 1000    relative to "1stB"
  2454.     task
  2455.         do
  2456.             goto 1000 -500 1000    relative to "1stB"
  2457.             goto 1000 -1000 1000    relative to "1stB"
  2458.         until "1stB" destroyed
  2459.         goto 17000 -3200 -17000 relative toxz "hero"
  2460.         kill
  2461.     end
  2462.  
  2463. create "lfighter"
  2464.     position -1000 -500 -1000    relative to "1stB"
  2465.     task
  2466.         do
  2467.             goto -1000 -500 -1000    relative to "1stB"
  2468.             goto -1000 -1000 -1000    relative to "1stB"
  2469.         until "1stB" destroyed
  2470.         goto 17000 -3200 17000 relative toxz "hero"
  2471.         kill
  2472.     end
  2473.  
  2474. wait_until "1stB" destroyed
  2475. #....................................................................
  2476.     phasemessage 38 60
  2477.  
  2478.     play_speech "alien unit destroyed"
  2479. #....................................................................
  2480.  
  2481.  
  2482. end_procedure "a1"
  2483.  
  2484. wait_until number_of "fighters" = 0
  2485.  
  2486. #....................................................................
  2487.     phasemessage 26 60
  2488.  
  2489.     play_speech "incoming alien fighters"
  2490. #....................................................................
  2491.  
  2492.  
  2493. ;-----------wave 2
  2494. procedure "a1"
  2495.     create "lfighter"
  2496.         position 54707.1 -1863.68 38668.7
  2497.  
  2498.         towards "hero"
  2499.         armed_with "PLASMA BOLT 3" rate 8
  2500.         task
  2501.  
  2502.             goto 53798.7 -2283.68 39036.4
  2503.             shoot "hero"
  2504.             goto 48488.1 -1123.68 42732.8
  2505.             goto 49084 -2393.68 45932.6
  2506.             attack "hero"
  2507.                 break_task_if vel<2
  2508.             explode
  2509.         end
  2510.  
  2511.         pause 50
  2512.  
  2513. end_procedure terminate after 4 loops
  2514.  
  2515. wait_until proc "a1" terminated
  2516. wait_until number_of "aair" <= 2
  2517.  
  2518. ;-----------wave 3
  2519. create "bomber"
  2520.     label "2ndB"
  2521.     position 57500 -3500 20700
  2522.     towards "hero"
  2523.     armed_with "ENERGY 2" rate 1
  2524.     task
  2525.         do
  2526.             goto 37532.3 -3048.23 40501.1
  2527.             shoot
  2528.             pause 2
  2529.             shoot
  2530.             goto 35605.3 -3048.23 48822.7
  2531.             shoot
  2532.             goto 39767.6 -3048.23 54973
  2533.             shoot
  2534.             pause 2
  2535.             shoot
  2536.             goto 44141.9 -3048.23 44316.4
  2537.             shoot
  2538.             pause 2
  2539.             shoot
  2540.         forever
  2541.     end
  2542.  
  2543.  
  2544. procedure "a1"
  2545.     create "lfighter"
  2546.         position 56960.4 -1688.23 42107.1
  2547.         towards "hero"
  2548.         armed_with "PLASMA BOLT 3" rate 8
  2549.         task
  2550.             goto 52843.9 -2100 42832.8
  2551.             shoot "hero"
  2552.             goto 47171.4 -2168 43832.7
  2553.             goto 45703.9 -808 44781.9
  2554.             attack "hero"
  2555.                 break_task_if vel<2
  2556.             explode
  2557.         end
  2558.         pause 50
  2559. end_procedure terminate after 4 loops
  2560.  
  2561.  
  2562. procedure "a2"
  2563.     wait_until number_of "fighters" < 1
  2564.  
  2565.     create "hfighter"
  2566.         position 56960.4 -1688.23 42107.1
  2567.         towards "hero"
  2568.         armed_with "PLASMA BOLT 3" rate 8
  2569.         task
  2570.             do
  2571.                 goto -1500 -500 -1500    relative to "2ndB"
  2572.                 goto -1500 -1000 -1500    relative to "2ndB"
  2573.             until "2ndB" destroyed
  2574.             goto -17000 -3200 17000 relative toxz "hero"
  2575.             kill
  2576.         end
  2577. end_procedure terminate after 3 loops
  2578.  
  2579. wait_until "2ndB" destroyed
  2580. end_procedure "a1"
  2581. end_procedure "a2"
  2582.  
  2583. wait_until number_of "aliens" = 0
  2584. #....................................................................
  2585.     phasemessage 26 60
  2586.  
  2587.     play_speech "incoming alien fighters"
  2588. #....................................................................
  2589.  
  2590. ;-----------wave 4
  2591.  
  2592. procedure "a1"
  2593.     create "lfighter"
  2594.         position 37274.3 -705.331 53653.5
  2595.         towards "hero"
  2596. ;        armed_with "GUIDED MISSILE" rate 128
  2597.         armed_with "ROCKET 1" rate 128
  2598.         task
  2599.             goto 38356.4 -1465.33 52488.6
  2600.             goto 42494.3 -825.331 48033.8
  2601.             attack "hero"
  2602.                 break_task_if vel<2
  2603.             explode
  2604.         end
  2605.         pause 50
  2606. end_procedure terminate after 6 loops
  2607.  
  2608. wait_until number_of "aliens" < 1
  2609. end_procedure "a1"
  2610.  
  2611. ;-----------wave 5
  2612.  
  2613.  
  2614. procedure "a1"
  2615.     create "lfighter"
  2616.         position 46852.9 -832.878 34149.3
  2617.  
  2618.  
  2619.         armed_with "PLASMA BOLT 3" rate 8
  2620.         towards "hero"
  2621.         task
  2622.             goto 46800.5 -1632.74 35140
  2623.             shoot "hero"
  2624.             goto 46661.6 -618.8 39779.3
  2625.             shoot "hero"
  2626.             goto 47505 -636.413 41475.2
  2627.             attack "hero"
  2628.                 break_task_if vel<2
  2629.             explode
  2630.         end
  2631.         pause 50
  2632. end_procedure terminate after 4 loops
  2633.  
  2634. wait_until proc "a1" terminated
  2635. wait_until number_of "aliens" = 0
  2636.  
  2637. ;-----------wave 6
  2638.  
  2639. #....................................................................
  2640.     phasemessage 28 60
  2641.  
  2642.     play_speech "incoming alien bomber"
  2643. #....................................................................
  2644.  
  2645.  
  2646. create "bomber"
  2647.     label "3rdB"
  2648.     position 48454 -3048.23 62163
  2649.     towards "hero"
  2650.     armed_with "ENERGY 2" rate 1
  2651.     task
  2652.         do
  2653.             goto 44141.9 -3048.23 44316.4
  2654.             shoot
  2655.             pause 2
  2656.             shoot
  2657.             goto 37532.3 -3048.23 40501.1
  2658.             shoot
  2659.             pause 2
  2660.             shoot
  2661.             pause 2
  2662.             shoot
  2663.             goto 35605.3 -3048.23 48822.7
  2664.             shoot
  2665.             pause 2
  2666.             shoot
  2667.             goto 39767.6 -3048.23 54973
  2668.             shoot
  2669.             pause 2
  2670.             shoot
  2671.             pause 2
  2672.             shoot
  2673.         forever
  2674.     end
  2675.  
  2676.  
  2677. create "bomber"
  2678.     label "4thB"
  2679.     position 57500 -3500 20700
  2680.     towards "hero"
  2681.     armed_with "ENERGY 2" rate 1
  2682.     task
  2683.         do
  2684.             goto 37532.3 -3748.23 40501.1
  2685.             shoot
  2686.             pause 2
  2687.             shoot
  2688.             pause 2
  2689.             shoot
  2690.             goto 35605.3 -3748.23 48822.7
  2691.             shoot
  2692.             pause 2
  2693.             shoot
  2694.             goto 39767.6 -3748.23 54973
  2695.             shoot
  2696.             pause 2
  2697.             shoot
  2698.             pause 2
  2699.             shoot
  2700.             goto 44141.9 -3748.23 44316.4
  2701.             shoot
  2702.             pause 2
  2703.             shoot
  2704.         forever
  2705.     end
  2706.  
  2707. procedure "a1"
  2708.     wait_until number_of "aair" < 2
  2709.     create "lfighter"
  2710.         position 15000 -3200 0 relative toxz "3rdB"
  2711.         towards "hero"
  2712.         armed_with "PLASMA BOLT 3" rate 16
  2713.         task
  2714.             do
  2715.                 goto -1000 -500 -1000 relative to "3rdB"
  2716.                 shoot
  2717.                 goto -1000 -1000 -1000 relative to "3rdB"
  2718.                 shoot
  2719.             until "3rdB" destroyed
  2720.             attack "hero"
  2721.                 break_task_if vel<2
  2722.             explode
  2723.         end
  2724.         pause 150
  2725. do_procedure_until "3rdB" destroyed
  2726.  
  2727. procedure "a2"
  2728.     wait_until number_of "aair" < 2
  2729.  
  2730.     create "lfighter"
  2731.         position -15000 -3200 0 relative toxz "4thB"
  2732.         towards "hero"
  2733.         armed_with "PLASMA BOLT 3" rate 16
  2734.         task
  2735.              do
  2736.                 goto -1000 -500 -1000    relative to "4thB"
  2737.                 shoot
  2738.                 goto -1000 -1000 -1000    relative to "4thB"
  2739.                 shoot
  2740.             until "4thB" destroyed
  2741.             attack "hero"
  2742.                 break_task_if vel<2
  2743.             explode
  2744.         end
  2745.         pause 150
  2746. do_procedure_until "4thB" destroyed
  2747.  
  2748. wait_until number_of "aliens" = 0
  2749.  
  2750. set_flag 31
  2751. set_inert "hero"
  2752.  
  2753.  
  2754. #....................................................................
  2755.     phasemessage 9 60
  2756.  
  2757.     play_speech "scenario completed"
  2758. #....................................................................
  2759.  
  2760.  
  2761. hud off
  2762. camera
  2763.     attached_to "hero"
  2764.     position 600 -300 -600
  2765.     pointing_at "hero"
  2766.     dolly 0
  2767. pause 60
  2768.  
  2769. ;-------------------------------------------------------
  2770. ;END OF SCENARIO
  2771. ;-------------------------------------------------------
  2772.