home *** CD-ROM | disk | FTP | other *** search
/ Hráč 1997 December / Hrac_16_1997-12_cd.bin / DEMA / INCOMING / INCOMING.EXE / _SETUP.1 / mission4.mdl < prev    next >
Text File  |  1997-10-16  |  51KB  |  2,706 lines

  1. drag_coeff    0.01        
  2. gravity        2.2
  3.  
  4. ;-------------------------------------------------------
  5.  
  6. create hero "plfight"
  7.     label "plfight"
  8.     position 28317.6 -78 14188.3
  9.     forward -0.79 0 -0.61 up 0 1 0
  10.     armed_with "GREEN LASER"    rate 4
  11.     secondary_armed_with "ENERGY 1" rate 16 rounds 20
  12.     task
  13.         wait_until flag 0 set
  14.         playercontrols
  15.         position 28317.6 -78 14188.3
  16.     end
  17.  
  18.  
  19. create "mobspgun"
  20.     label "laser1"
  21.     position 23624 -553 15265.9
  22.     forward 0.8 0 0.5 up 0 1 0
  23.     armed_with "GREEN LASER" rate 3
  24.     inert
  25.  
  26. create "mobsprack"
  27.     position 23700 -524 14108.9
  28.     forward 0.5 0 0.8 up 0 1 0
  29.     armed_with "GUIDED MISSILE"    rate 32
  30.     task
  31.         slave_to "laser1"
  32.     end
  33.  
  34. create "mobspgun"
  35.     label "laser2"
  36.     position 34427.6 -1543 13849.6
  37.     forward 0.5 0 0.8 up 0 1 0
  38.     armed_with "GREEN LASER" rate 3
  39.     inert
  40.  
  41. create "mobsprack"
  42.     label "P8rack"
  43.     position 34427.6 -1514 12737.6
  44.     forward 0.5 0 0.8 up 0 1 0
  45.     armed_with "GUIDED MISSILE"    rate 32
  46. ;    task
  47. ;        slave_to "laser2"
  48. ;    end
  49.  
  50. ;-----------------small shields---------------------------
  51. createstatic "sshield"
  52. no_colide "ssgen1"
  53. die_with "ssgen1"
  54. position 29480.2 on ground 37826
  55.  
  56. createstatic "sshield"
  57. no_colide "ssgen3"
  58. die_with "ssgen3"
  59. position 40500.7 on ground 53144.5
  60.  
  61. createstatic "sshield"
  62. no_colide "ssgen4"
  63. die_with "ssgen4"
  64. position 39676.7 on ground 50949.5
  65.  
  66. createstatic "sshield"
  67. no_colide "ssgen5"
  68. die_with "ssgen5"
  69. position 38239.7 on ground 52529.5
  70.  
  71. createstatic "sshield"
  72. no_colide "ssgen6"
  73. die_with "ssgen6"
  74. position 47237 on ground 23138
  75.  
  76. createstatic "sshield"
  77. no_colide "ssgen7"
  78. die_with "ssgen7"
  79. position 48237 on ground 20938
  80.  
  81. createstatic "sshield"
  82. no_colide "ssgen8"
  83. die_with "ssgen8"
  84. position 46237 on ground 20938
  85.  
  86. ;-----------------big shields---------------------------
  87. createstatic "bshield"
  88. no_colide "bsgen1"
  89. die_with "bsgen1"
  90. position 31933.8 on ground 41342.7
  91.  
  92. createstatic "bshield"
  93. no_colide "bsgen2"
  94. die_with "bsgen4"
  95. position 31933.8 on ground 34102.7
  96.  
  97. createstatic "bshield"
  98. no_colide "bsgen3"
  99. die_with "bsgen3"
  100. position 34921.8 on ground 37720.7
  101.  
  102. createstatic "bshield"
  103. no_colide "bsgen4"
  104. die_with "bsgen2"
  105. position 20193.7 on ground 53659.2
  106.  
  107. createstatic "vbshield"
  108. no_colide "bsgen5"
  109. die_with "bsgen5"
  110. position 48847.8 on ground 53587.7
  111.  
  112. createstatic "bshield"
  113. no_colide "bsgen7"
  114. die_with "bsgen7"
  115. position 44309.5 on ground 47462.7
  116.  
  117. createstatic "bshield"
  118. no_colide "bsgen8"
  119. die_with "bsgen8"
  120. position 49081 on ground 36238.2
  121.  
  122. set_inert "bsgen5"
  123. set_inert "bsgen8"
  124.  
  125. set_inert "bsgen7"
  126. set_inert "ssgen3"
  127. set_inert "ssgen4"
  128. set_inert "ssgen5"
  129.  
  130. set_inert "ssgen6"
  131. set_inert "ssgen7"
  132. set_inert "ssgen8"
  133.  
  134. ;-------------------------------------------------------
  135. ;PHASE 1
  136. ;-------------------------------------------------------
  137.  
  138. phasestart
  139. clear_flag all
  140.  
  141. critical_group "ccentre"
  142.  
  143. phasemessage 60 60
  144. playcdslow
  145.  
  146. hud off
  147. camera
  148.     position 600 -300 -600 relative to "hero"
  149.     pointing_at "hero"
  150.     dolly 0
  151.     pause 1
  152.  
  153. procedure "P1e"
  154.     set_waypoint nearest "aland"
  155. end_procedure
  156.  
  157. procedure "P1a"
  158.     create "atank"
  159.         position 19067.7 on ground 22866.4
  160.  
  161.         towards "hero"
  162.         armed_with "ROCKET 1" rate 64
  163.         task
  164.             goto 23950.8 on ground 17849.9
  165.             do
  166.                 goto 26130.4 on ground 14266.9
  167.                 shoot "command4"
  168.                 goto 28348.1 on ground 13026.8
  169.                 shoot "command3"
  170.                 goto 27681.8 on ground 10495.8
  171.                 shoot "command1"
  172.                 goto 25091.8 on ground 11318.9
  173.                 shoot "command2"
  174.             forever
  175.         end
  176.     pause 75
  177. end_procedure terminate after 4 loops
  178.  
  179. pause 40
  180. set_flag 0
  181.  
  182. camera cockpit
  183.  
  184. #==================================
  185.  
  186. procedure "P1b"
  187.     wait_until number_of "aair"<2
  188.  
  189.     create "lfighter"
  190.         position 100 -3000 15000 relative toxz "hero"
  191.         towards "hero"
  192.         armed_with "RED LASER" rate 8
  193.         task
  194.             attack "hero"
  195.             break_task_if number_of "aland"=0
  196.             attack "command1"
  197.             attack "hero"
  198.             attack "command2"
  199.             attack "hero"
  200.             attack "command3"
  201.             attack "hero"
  202.             attack "command4"
  203.         end
  204.     pause 100
  205. end_procedure terminate after 4 loops
  206.  
  207.  
  208. procedure "P1c"
  209.     wait_until number_of "fighters"=0
  210.     create "hfighter"
  211.         position -5000 -3700 17000 relative toxz "hero"
  212.         towards "hero"
  213.         armed_with "PLASMA BOLT 1" rate 16
  214.         task
  215.             goto 0 -2000 0 relative to closest "aland"
  216.             do
  217.                 patrol
  218.                     point 0 -2000 0 relative to closest "aland"
  219.                     break_task_if distance_between me and "hero" <4000
  220.                     or number_of "aland"=0
  221.                 stop
  222.                 shoot "hero"
  223.             until number_of "aland" = 0
  224.             attack "hero"
  225.         end
  226.     pause 100
  227. do_procedure_until number_of "aland" = 0
  228.  
  229.  
  230. wait_until proc "P1a" terminated
  231. wait_until number_of "aland" = 0
  232. end_procedure "P1e"
  233.  
  234. procedure "P1e"
  235.     set_waypoint "command1"
  236.     wait_until "command1" destroyed
  237.  
  238.     set_waypoint "command2"
  239.     wait_until "command2" destroyed
  240.  
  241.     set_waypoint "command3"
  242.     wait_until "command3" destroyed
  243.  
  244.     set_waypoint "command4"
  245.     wait_until "command4" destroyed
  246.     clear_waypoint
  247. end_procedure
  248.  
  249. #==================================
  250. phasemessage 61 60
  251.  
  252. wait_until proc "P1b" terminated
  253. wait_until proc "P1c" terminated
  254.  
  255. wait_until number_of "fighters" = 0
  256. wait_until number_of "aair" = 0
  257. end_procedure "P1e"
  258. clear_waypoint
  259.  
  260. #==================================
  261. phasemessage 91 60
  262.  
  263. uncritical_group "ccentre"
  264.  
  265. pause 20
  266.  
  267. hud off
  268. camera
  269.     attached_to "hero"
  270.     position 600 -300 -600
  271.     pointing_at "hero"
  272.     dolly 1
  273.     dollyspeed 0.1%
  274. pause 80
  275.  
  276. set_inert "plfight"
  277.  
  278. ;-------------------------------------------------------
  279. ;PHASE 2
  280. ;-------------------------------------------------------
  281.  
  282. phasestart
  283. clear_flag all
  284.  
  285. phasemessage 2 60
  286.  
  287. create "hovertank"
  288.     label "P2hero"
  289.     position 24871 on ground 10309.6
  290.     forward 0.57 0 0.82 up 0 1 0
  291.     armed_with "RED LASER"    rate 4
  292.     secondary_armed_with "TRACER SHOT 1" rate 32 rounds 20
  293.  
  294.  
  295. switch_hero "P2hero"
  296.     task
  297.         wait_until flag 0 set
  298.         playercontrols
  299.             break_task_if flag 10 set
  300.     end
  301.  
  302.  
  303. create "bug"
  304.     label "P2bug"
  305.     position 27227.2 -500 14517.8
  306.     towards "hero"
  307.     armed_with "GREEN LASER"    rate 4
  308.     secondary_armed_with "DESIGNATOR" rate 128 rounds 20
  309.     inert
  310.     task
  311.         do
  312.             patrol
  313.                 point 1000 -1800 0 relative to "hero"
  314.                 break_task_if distance_between me and closest "aair" <6000
  315.             stop
  316.             shoot group "aair"
  317.         until flag 10 set
  318.         goto 0 -2000 0 relative to "hero"
  319.     end
  320.  
  321.  
  322.  
  323. create "alnadubs"
  324.     label "gun3"
  325.     position 26882.1 on ground 40742.8
  326.     forward 0 0 -1 up 0 1 0
  327.     armed_with "GREEN ENERGY LASER" rate 16
  328.     task
  329.         attack
  330.     end
  331.  
  332. create "alnadubs"
  333.     label "gun8"
  334.     position 25026.1 on ground 49973.9
  335.     forward 0 0 1 up 0 1 0
  336.     armed_with "GREEN ENERGY LASER" rate 16
  337.     task
  338.         attack
  339.     end
  340.  
  341.  
  342. hud off
  343. camera
  344.     position 600 -300 -600 relative to "hero"
  345.     pointing_at "hero"
  346. dolly 0
  347. pause 1
  348.  
  349. pause 40
  350. set_flag 0
  351.  
  352. camera cockpit
  353. #==================================
  354.  
  355. create "facraft"
  356.     position 22660.2 on ground 28148.3
  357.     towards "hero"
  358.     armed_with "RED LASER"    rate 4
  359.     task
  360.         wait_until distance_between me and "hero" < 7000
  361.         attack "hero"
  362.     end
  363.  
  364. create "facraft"
  365.     position 23689.4 on ground 22977
  366.     towards "hero"
  367.     armed_with "TRACER SHOT 1" rate 128
  368.     task
  369.         wait_until distance_between me and "hero" < 7000
  370.         attack "hero"
  371.     end
  372.  
  373.  
  374. create "facraft"
  375.     position 29410.6 on ground 23134.3
  376.     towards "hero"
  377.     armed_with "RED LASER"    rate 4
  378.     task
  379.         wait_until distance_between me and "hero" < 7000
  380.         attack "hero"
  381.     end
  382.  
  383.  
  384. procedure "P2wp"
  385.     set_waypoint nearest "aland"
  386. end_procedure
  387.  
  388.  
  389. procedure "P2a"
  390.     wait_until number_of "aair"=0
  391.     create "lfighter"
  392.         position 0 -3200 17000 relative to "hero"
  393.         towards "hero"
  394.         armed_with "RED LASER"    rate 4
  395.         task
  396.             attack "hero"
  397.         end
  398.  
  399.     pause 100
  400. end_procedure
  401.  
  402. wait_until distance_between "hero" and 26962.4 on ground 34777.2 <9000
  403. or number_of "aland"=0
  404.  
  405. procedure "P2b"
  406.     create "facraft"
  407.         position 12962.2 on ground 37364.2
  408.         towards "command1"
  409.         armed_with "RED LASER"    rate 4
  410.         task
  411.             goto 17585.1 on ground 31390.8
  412.             attack "hero"
  413.         end
  414.  
  415.     pause 150
  416. end_procedure terminate after 4 loops
  417.  
  418. wait_until proc "P2b" terminated
  419. wait_until number_of "aland" = 0
  420. end_procedure "P2wp"
  421.  
  422. phasemessage 21 60
  423.  
  424.  
  425. procedure "P2b"
  426.     set_waypoint nearest "agun"
  427. end_procedure
  428.  
  429. wait_until number_of "agun" = 0
  430. end_procedure "P2a"
  431. end_procedure "P2b"
  432. kill group "aair"
  433. clear_waypoint
  434. #==================================
  435. phasemessage 91 60
  436.  
  437. set_flag 10
  438. camera cockpit
  439. pause 60
  440.  
  441. ;-------------------------------------------------------
  442. ;PHASE 3
  443. ;-------------------------------------------------------
  444.  
  445. phasestart
  446.  
  447. clear_flag all
  448.  
  449. phasemessage 52 60
  450.  
  451. set_inert "bsgen1"
  452. set_inert "bsgen2"
  453. set_inert "bsgen3"
  454.  
  455. camera_task
  456.     hud off
  457.     cam_pos "hero"
  458.     cam_focus "P2bug"
  459.     dolly 1
  460.  
  461.     pause 150
  462.     cam_mode cockpit
  463.     set_flag 0
  464. end
  465.  
  466. switch_hero "P2bug"
  467.     task
  468.         goto 0 -3500 0 relative toxz "P2hero"
  469.             break_task_if flag 0 set
  470.         playercontrols
  471.         kill
  472.     end
  473. wait_until flag 0 set
  474. auto_aim "hero"
  475. kill "P2hero"
  476.  
  477. #==================================
  478. procedure "P3e"
  479.     wait_until "P2bld" destroyed
  480.  
  481.     camera_task
  482.         hud off
  483.         cam_pos -6000 -3500 0 attached_to "P2bld"
  484.         cam_focus "P2bld"
  485.         dolly 0
  486.         cam_goto 6000 -3500 0
  487.     end
  488.  
  489.     phasemessage 81 120
  490.  
  491.     explode group "aliens"
  492.     pause 50
  493.     explode group "aliens"
  494.     pause 50
  495.     camera cockpit         
  496. end_procedure terminate after 1 loops
  497.  
  498.  
  499. procedure "P3a"
  500.  
  501.     wait_until number_of "bomber" =0
  502.     create "lbomber"
  503.         position 10000 -3500 1000 relative toxz "pad2"
  504.         towards "pad2"
  505.         armed_with "PLASMA BOLT 1"    rate 24
  506.         task
  507.             do
  508.                 goto 0 -3500 0 relative toxz "hero"
  509.                     break_task_if distance_between me and "hero" < 3000
  510.                 shoot "hero"
  511.             forever
  512.         end
  513.     pause 75
  514. end_procedure terminate after 2 loops
  515.  
  516.  
  517. procedure "P3b"
  518.     create "lfighter"
  519.         position 2000 -9000 5000 relative toxz "pad2"
  520.         towards "pad2"
  521.         armed_with "PLASMA BOLT 3"    rate 0
  522.         task
  523.             goto 0 -4200 0 relative toxz "pad2"
  524.             do
  525.                 goto 27051.9 -3430.29 30302.5
  526.                 shoot "hero"
  527.                 goto 25602.4 -3346.02 41119.4
  528.                 shoot "hero"
  529.                 goto 32723.3 -3155.91 46495.4
  530.                 shoot "hero"
  531.                 goto 40765 -3081.51 39478.8
  532.                 shoot "hero"
  533.             forever
  534.  
  535.         end
  536.     pause 150
  537. end_procedure terminate after 4 loops
  538.  
  539.  
  540. wait_until proc "P3a" terminated
  541. wait_until number_of "aair" = 0
  542. wait_until number_of "bomber" = 0
  543. end_procedure "P3b"
  544.  
  545.  
  546. ;----------------
  547. ;-------1st pad
  548. phasemessage 62 60
  549. set_waypoint "bsgen4"
  550. wait_until "bsgen4" destroyed
  551.  
  552. phasemessage 63 60
  553. set_waypoint "pad2"
  554.  
  555. procedure "P3a"
  556.     wait_until number_of "fighters" <4
  557.     create "hfighter"
  558.         position 32110 -845 34375
  559.         towards 29449 -2943 31420
  560.         armed_with "RED LASER"    rate 4
  561.         task
  562.             goto 29449 -2943 31420
  563.             attack "hero"
  564.         end
  565.     pause 75
  566. end_procedure
  567.  
  568. wait_until "pad2" destroyed
  569. end_procedure "P3a"
  570. clear_waypoint
  571.  
  572. phasemessage 52 60
  573.  
  574. wait_until number_of "fighters"=0
  575.  
  576. ;----------------
  577. ;-------2nd pad
  578. set_volatile "bsgen1"
  579.  
  580. phasemessage 62 60
  581. set_waypoint "bsgen1"
  582. wait_until "bsgen1" destroyed
  583.  
  584. phasemessage 63 60
  585. set_waypoint "pad1"
  586.  
  587. procedure "P3a"
  588.     wait_until number_of "aair" <4
  589.     create "lfighter"
  590.         position 31867.9 -708.997 41033.6
  591.         towards 25677.8 -2929 41445.6
  592.         armed_with "RED LASER"    rate 4
  593.         task
  594.             goto 25677.8 -2929 41445.6
  595.             attack "hero"
  596.         end
  597.     pause 40
  598. end_procedure
  599.  
  600. wait_until "pad1" destroyed
  601. end_procedure "P3a"
  602. clear_waypoint
  603. phasemessage 52 60
  604. wait_until number_of "aair"=0
  605.  
  606.  
  607. ;----------------
  608. ;-------3rd pad
  609. set_volatile "bsgen3"
  610. phasemessage 62 60
  611. set_waypoint "bsgen3"
  612. wait_until "bsgen3" destroyed
  613.  
  614. phasemessage 64 60
  615. set_waypoint "pad3"
  616.  
  617. create "lfighter"
  618.     position 34681.9 -791.55 37772.7
  619.     towards 31512 -2193.67 35731
  620.     armed_with "GUIDED MISSILE"    rate 32
  621.     task
  622.         goto 31512 -2193.67 35731
  623.         attack "hero"
  624.     end
  625. pause 20
  626.  
  627. procedure "P3a"
  628.     wait_until number_of "aair" <6
  629.     create "lfighter"
  630.         position 34681.9 -791.55 37772.7
  631.         towards 31512 -2193.67 35731
  632.         armed_with "RED LASER"    rate 4
  633.         task
  634.             goto 31512 -2193.67 35731
  635.             attack "hero"
  636.         end
  637.     pause 20
  638. end_procedure
  639.  
  640. wait_until "pad3" destroyed
  641. end_procedure "P3a"
  642. clear_waypoint
  643. phasemessage 10 60
  644. wait_until number_of "aair"=0
  645.  
  646. procedure "P3a"
  647.     wait_until number_of "aair" <6
  648.     create "lfighter"
  649.         position 17000 -32000 500 relative toxz "hub1"
  650.         armed_with "RED LASER"    rate 4
  651.         task
  652.             attack "hero"
  653.         end
  654.     pause 75
  655. end_procedure
  656.  
  657. set_volatile "bsgen2"
  658. phasemessage 62 60
  659. set_waypoint "bsgen2"
  660. wait_until "bsgen2" destroyed
  661.  
  662. phasemessage 65 60
  663. set_waypoint "hub1"
  664. wait_until "hub1" destroyed
  665.  
  666. phasemessage 62 60
  667. set_waypoint "ssgen1"
  668. wait_until "ssgen1" destroyed
  669. end_procedure "P3e"
  670.  
  671. phasemessage 66 60
  672. set_waypoint "P2bld"
  673. wait_until "P2bld" destroyed
  674. clear_waypoint
  675.  
  676. phasemessage 24 60
  677.  
  678. end_procedure "P3a"
  679.  
  680. wait_until number_of "aair"=0
  681.  
  682. #==================================
  683. phasemessage 91 60
  684.  
  685. pause 20
  686.  
  687. hud off
  688. camera
  689.     attached_to "hero"
  690.     position 600 -300 -600
  691.     pointing_at "hero"
  692.     dolly 1
  693.     dollyspeed 0.1%
  694. pause 80
  695.  
  696.  
  697. ;-------------------------------------------------------
  698. ;PHASE 4
  699. ;-------------------------------------------------------
  700.  
  701. clear_flag all
  702.  
  703. phasemessage 67 120
  704. playcdfast
  705.  
  706. switch_hero "laser1"
  707.     task
  708.         wait_until flag 0 set
  709.         playercontrols
  710.     end
  711.  
  712. #==================================
  713.  
  714. create "lfighter"
  715.     label "P4alien1"
  716.     position 17000 -3200 0 relative toxz "H1"
  717.     armed_with "DESIGNATOR" rate 0
  718.     task
  719.         goto 7000 -2200 0 relative toxz "H1"
  720.         shoot "H1"
  721.         shoot "replen1"
  722.         goto -17000 -3200 0 relative toxz "H1"
  723.         kill
  724.     end
  725.  
  726. create "lfighter"
  727.     label "P4alien2"
  728.     position 17000 -3200 1500 relative toxz "H1"
  729.     armed_with "DESIGNATOR" rate 0
  730.     task
  731.         goto 3000 -2200 0 relative toxz "replen1"
  732.         shoot "replen1"
  733.         set_flag 0
  734.         goto -17000 -3200 0 relative toxz "H1"
  735.         kill
  736.     end
  737.  
  738. camera_task
  739.     hud off
  740.     cam_pos -1500 0 -1500 attached_to "P4alien1"
  741.     cam_focus "P4alien2"
  742.     dolly 0
  743.  
  744.     pause 100
  745.     cam_pos 1000 -1500 1500 attached_to "P4alien2"
  746.     cam_focus "P4alien1"
  747.     dolly 1
  748.  
  749.     pause 100
  750.  
  751.     cam_pos 0 -1000 0 relative to "hero"
  752.     cam_focus "command1"
  753.     cam_goto 7000 -1500 1000 relative to "command3"
  754. end
  755.  
  756. wait_until flag 0 set
  757. pause 150
  758.  
  759. camera
  760.     attached_to "hero"
  761.     position -600 -300 600
  762.     pointing_at "hero"
  763. dolly 0
  764. pause 40
  765.  
  766. camera cockpit
  767.  
  768. kill group "aair"
  769.  
  770. #==================================
  771. phasestart
  772. clear_flag all
  773. phasemessage 61 60
  774.  
  775. ;-------------------
  776. ;-------------wave 1
  777.  
  778. procedure "P4a"
  779.     create "lfighter"
  780.     position 18005.8 -2547.28 15095
  781.     towards "hero"
  782.     armed_with "RED LASER" rate 6
  783.     task
  784.         goto 25662.1 -2524.7 16144.9
  785.         goto 26377.9 -970.332 13115.6
  786.         shoot
  787.         goto 23453.2 -970.04 12283.5
  788.         shoot "hero"
  789.         goto 23629.6 -958.432 14836.3
  790.         attack "hero"
  791.             break_task_if vel < 2
  792.         explode
  793.     end
  794.     pause 50
  795. end_procedure terminate after 6 loops
  796.  
  797.  
  798. wait_until proc "P4a" terminated
  799. wait_until number_of "aair"<=3
  800.  
  801. ;-------------------
  802. ;-------------wave 2
  803. procedure "P4a"
  804.     create "lfighter"
  805.     position 23838.2 -160 22518.1
  806.     towards "hero"
  807.     armed_with "RED LASER" rate 6
  808.     task
  809.         goto 23795.5 -1197.95 20526.2
  810.         goto 23512.8 -1190.01 12990
  811.         goto 26952.5 -1173.41 9873.09
  812.         attack "command1"
  813.         attack "command2"
  814.         attack "command3"
  815.         attack "command4"
  816.         attack "hero"
  817.  
  818.     end
  819.     pause 50
  820. end_procedure terminate after 6 loops
  821.  
  822.  
  823. wait_until proc "P4a" terminated
  824. wait_until number_of "aair"<=3
  825.  
  826. ;-------------------
  827. ;-------------wave 3
  828.  
  829. phasemessage 49 60
  830.  
  831. procedure "P4a"
  832.     create "skimmer"
  833.     position 39016.9 on ground 7518.43
  834.     towards "hero"
  835.     armed_with "RED LASER" rate 6
  836.     task
  837.         goto 31770.9 on ground 9736.93
  838.         shoot
  839.  
  840.         goto 26688.1 on ground 13672.1
  841.         shoot "hero"
  842.         goto 25083.3 on ground 15841
  843.         shoot
  844.         goto 22046.8 on ground 20858.7
  845.         goto 17738 on ground 25989.1
  846.         kill
  847.     end
  848.     pause 50
  849. end_procedure terminate after 4 loops
  850.  
  851. create "bug"
  852.     position 18005.8 -2547.28 15095
  853.     towards "hero"
  854.     armed_with "BLUE LASER" rate 6
  855.     task
  856.         goto 26358.6 -1500 13491.8
  857.         pause 150
  858.         do
  859.             goto 29045 -1500 11323.4
  860.             shoot
  861.             goto 26358.6 -1500 13491.8
  862.             shoot
  863.         until number_of "aland"=0
  864.         attack
  865.         goto 18005.8 -2547.28 15095
  866.         kill
  867.     end
  868.  
  869.  
  870. wait_until proc "P4a" terminated
  871. wait_until number_of "aland"=0
  872.  
  873. #===============================
  874. phasemessage 67 80
  875.  
  876. create "lfighter"
  877.     label "P4badman"
  878.     position 17000 -3200 0 relative toxz "H2"
  879.     armed_with "DESIGNATOR" rate 0
  880.     inert
  881.     task
  882.         goto 3000 -2200 0 relative toxz "H2"
  883.         shoot "H2"
  884.         pause 1
  885.         shoot "replen2"
  886.         goto 18005.8 -2547.28 15095
  887. ;        goto -17000 -3200 0 relative toxz "H2"
  888.         kill
  889.     end
  890.  
  891. wait_until "H2" destroyed
  892. pause 20
  893. set_volatile "P4badman"
  894.  
  895. wait_until number_of "aair"=0
  896.  
  897. ;-------------------
  898. ;-------------wave 4
  899. procedure "P4a"
  900.     create "lfighter"
  901.     position 17204.4 -613.22 6974.41
  902.     towards "hero"
  903.     armed_with "RED LASER" rate 6
  904.     task
  905.         goto 21011.5 -1112.41 8080.85
  906.         goto 23930.8 -1112.25 12082.2
  907.         goto 23609.7 -1110.4 17370.4
  908.         goto 27687.2 -1476.38 19280.5
  909.         attack "hero"
  910.     end
  911.     pause 50
  912. end_procedure terminate after 6 loops
  913.  
  914. wait_until proc "P4a" terminated
  915. wait_until number_of "aair"=0
  916.  
  917. ;-------------------
  918. ;-------------wave 5
  919. procedure "P4a"
  920.     create "lfighter"
  921.     position 37887.9 -1669.24 13338.5
  922.     towards "hero"
  923.     armed_with "RED LASER" rate 6
  924.     task
  925.         goto 35864.1 -2111 13519.3
  926.         goto 28705.9 -730.743 13358.9
  927.         attack "hero"
  928.     end
  929.     pause 50
  930. end_procedure terminate after 6 loops
  931.  
  932. wait_until proc "P4a" terminated
  933. wait_until number_of "aair"=0
  934.  
  935.  
  936. ;-------------------
  937. ;-------------wave 6
  938. procedure "P4a"
  939.     create "lfighter"
  940.     position 23838.2 -160 22518.1
  941.     towards "hero"
  942.     armed_with "RED LASER" rate 6
  943.     task
  944.         goto 23795.5 -1197.95 20526.2
  945.         goto 23512.8 -1190.01 12990
  946.         goto 26952.5 -1173.41 9873.09
  947.         attack "command1"
  948.         attack "command2"
  949.         attack "command3"
  950.         attack "command4"
  951.         attack "hero"
  952.  
  953.     end
  954.     pause 50
  955. end_procedure terminate after 6 loops
  956.  
  957.  
  958. wait_until proc "P4a" terminated
  959. wait_until number_of "aair"<=3
  960.  
  961.  
  962. ;-------------------
  963. ;-------------wave 7
  964.  
  965. procedure "P4a"
  966.     create "lfighter"
  967.     position 18005.8 -2547.28 15095
  968.     towards "hero"
  969.     armed_with "RED LASER" rate 6
  970.     task
  971.         goto 25662.1 -2524.7 16144.9
  972.         goto 26377.9 -970.332 13115.6
  973.         shoot
  974.         goto 23453.2 -970.04 12283.5
  975.         shoot "hero"
  976.         goto 23629.6 -958.432 14836.3
  977.         attack "hero"
  978.             break_task_if vel < 2
  979.         explode
  980.     end
  981.     pause 50
  982. end_procedure terminate after 6 loops
  983.  
  984.  
  985. wait_until proc "P4a" terminated
  986. wait_until number_of "aair"<=3
  987.  
  988.  
  989. ;-------------------
  990. ;-------------wave 8
  991. procedure "P4a"
  992.     create "lfighter"
  993.     position 37887.9 -1669.24 13338.5
  994.     towards "hero"
  995.     armed_with "RED LASER" rate 6
  996.     task
  997.         goto 35864.1 -2111 13519.3
  998.         goto 28705.9 -730.743 13358.9
  999.         attack "hero"
  1000.     end
  1001.     pause 50
  1002. end_procedure terminate after 6 loops
  1003.  
  1004. wait_until proc "P4a" terminated
  1005. wait_until number_of "aair"=0
  1006.  
  1007.  
  1008. ;-------------------
  1009. ;-------------wave 9
  1010. procedure "P4a"
  1011.     create "lfighter"
  1012.     position 17204.4 -613.22 6974.41
  1013.     towards "hero"
  1014.     armed_with "RED LASER" rate 6
  1015.     task
  1016.         goto 21011.5 -1112.41 8080.85
  1017.         goto 23930.8 -1112.25 12082.2
  1018.         goto 23609.7 -1110.4 17370.4
  1019.         goto 27687.2 -1476.38 19280.5
  1020.         attack "hero"
  1021.     end
  1022.     pause 50
  1023. end_procedure terminate after 6 loops
  1024.  
  1025. wait_until proc "P4a" terminated
  1026. wait_until number_of "aair"=0
  1027.  
  1028.  
  1029.  
  1030. #==================================
  1031. phasemessage 91 60
  1032.  
  1033. pause 20
  1034.  
  1035. hud off
  1036. camera
  1037.     attached_to "hero"
  1038.     position 600 -300 -600
  1039.     pointing_at "hero"
  1040.     dolly 1
  1041.     dollyspeed 0.1%
  1042. pause 80
  1043.  
  1044. ;-------------------------------------------------------
  1045. ;PHASE 5
  1046. ;-------------------------------------------------------
  1047. clear_flag all
  1048. phasestart
  1049.  
  1050. set_volatile "bsgen7"
  1051. set_volatile "ssgen3"
  1052. set_volatile "ssgen4"
  1053. set_volatile "ssgen5"
  1054.  
  1055. phasemessage 15 60
  1056. playcdslow
  1057.  
  1058. create "alnadubs"
  1059.     label "gun5"
  1060.     position 42782.1 on ground 40742.8
  1061.     forward 0 0 -1 up 0 1 0
  1062.     armed_with "BLUE LASER" rate 16
  1063.     task
  1064.         attack
  1065.     end
  1066.  
  1067. create "alnadubs"
  1068.     label "gun6"
  1069.     position 43966 on ground 40633
  1070.     forward 0 0 1 up 0 1 0
  1071.     armed_with "BLUE LASER" rate 16
  1072.     task
  1073.         attack
  1074.     end
  1075.  
  1076. create "lance"
  1077.     label "P5hero"
  1078.     position 28638.6 -15 10823.3
  1079.     forward -0.58 0 0.81 up 0 1 0
  1080.     armed_with "PURPLE LASER" rate 2
  1081.     secondary_armed_with "GUIDED MISSILE" rate 32 rounds 20
  1082.     inert
  1083.  
  1084. switch_hero "P5hero"
  1085.     task
  1086.         wait_until flag 0 set
  1087.         playercontrols
  1088.     end
  1089.  
  1090. auto_aim "hero"
  1091.  
  1092. hud off
  1093. camera
  1094.     position 600 -300 -600 local to "hero"
  1095.     pointing_at "hero"
  1096.     dolly 0
  1097. pause 40
  1098. camera cockpit
  1099. set_flag 0
  1100.  
  1101. #==================================
  1102.  
  1103. create "Slowhovertank"
  1104.     label "P5ca"
  1105.     position 28780.1 on ground 16717.6
  1106.     towards 42535 on ground 30375.5
  1107.     armed_with "DESIGNATOR" rate 0
  1108.     inert
  1109.     mission_critical
  1110.     task
  1111.         goto 42535 on ground 30375.5
  1112.         goto 44032.9 on ground 41027.6
  1113.         goto 40512.6 on ground 45885.8
  1114.         shoot "bsgen7"
  1115.         #==================================
  1116.         goto 36498.5 on ground 49701.9
  1117.         shoot "ssgen4"
  1118.         shoot "ssgen5"
  1119.  
  1120.         #==================================
  1121.         goto 32536.2 on ground 55190.8
  1122.         goto 36616.2 on ground 55737.8
  1123.         goto 39239.4 on ground 55353.8
  1124.         shoot "ssgen3"
  1125.  
  1126.     end
  1127.  
  1128. create "Slowhovertank"
  1129.     position 0 0 -600 local to "P5ca"
  1130.     towards "P5ca"
  1131.     armed_with "DESIGNATOR" rate 0
  1132.     task
  1133.         goto 42535 on ground 30375.5
  1134.         goto 44032.9 on ground 41027.6
  1135.         goto 40512.6 on ground 45885.8
  1136.         shoot "bsgen7"
  1137.         #==================================
  1138.         goto 36498.5 on ground 49701.9
  1139.         shoot "ssgen4"
  1140.         shoot "ssgen5"
  1141.  
  1142.         #==================================
  1143.         goto 32536.2 on ground 55190.8
  1144.         goto 36616.2 on ground 55737.8
  1145.         goto 39239.4 on ground 55353.8
  1146.         shoot "ssgen3"
  1147.     end
  1148.  
  1149. create "Slowhovertank"
  1150.     position 0 0 -1200 local to "P5ca"
  1151.     towards "P5ca"
  1152.     armed_with "DESIGNATOR" rate 0
  1153.     task
  1154.         goto 42535 on ground 30375.5
  1155.         goto 44032.9 on ground 41027.6
  1156.         goto 40512.6 on ground 45885.8
  1157.         shoot "bsgen7"
  1158.         #==================================
  1159.         goto 36498.5 on ground 49701.9
  1160.         shoot "ssgen4"
  1161.         shoot "ssgen5"
  1162.  
  1163.         #==================================
  1164.         goto 32536.2 on ground 55190.8
  1165.         goto 36616.2 on ground 55737.8
  1166.         goto 39239.4 on ground 55353.8
  1167.         shoot "ssgen3"
  1168.     end
  1169.  
  1170.  
  1171. create "atank"
  1172.     label "P5ambush"
  1173.     position 39295.1 -878.048 30194.9
  1174.     towards "hero"
  1175.     armed_with "TRACER SHOT 1" rate 64
  1176.     task
  1177.         do
  1178.             goto -2000 0 2000 local to "P5ca"
  1179.             shoot
  1180.             goto -2000 0 -1000 local to "P5ca"
  1181.             shoot
  1182.             goto 2000 0 -1000 local to "P5ca"
  1183.             shoot
  1184.             goto 2000 0 2000 local to "P5ca"
  1185.             shoot
  1186.         forever
  1187.     end
  1188.  
  1189. create "atank"
  1190.     position 500 0 500 local to "P5ambush"
  1191.     towards "hero"
  1192.     armed_with "TRACER SHOT 1" rate 64
  1193.     task
  1194.         do
  1195.             goto 2000 0 3000 local to "P5ca"
  1196.             shoot
  1197.             goto 2000 0 -2000 local to "P5ca"
  1198.             shoot
  1199.             goto -2000 0 -2000 local to "P5ca"
  1200.             shoot
  1201.             goto -2000 0 3000 local to "P5ca"
  1202.             shoot
  1203.         forever
  1204.     end
  1205.  
  1206. create "atank"
  1207.     position 1500 0 1500 local to "P5ambush"
  1208.     towards "hero"
  1209.     armed_with "TRACER SHOT 1" rate 64
  1210.     task
  1211.         do
  1212.             goto -3000 0 4000 local to "P5ca"
  1213.             shoot
  1214.             goto -3000 0 -3000 local to "P5ca"
  1215.             shoot
  1216.             goto 3000 0 -3000 local to "P5ca"
  1217.             shoot
  1218.             goto 3000 0 4000 local to "P5ca"
  1219.             shoot
  1220.         forever
  1221.     end
  1222.  
  1223. #==================================
  1224. procedure "P5wp"
  1225.     set_waypoint nearest "aihover"
  1226. end_procedure
  1227.  
  1228. procedure "P5a"
  1229.     create "lfighter"
  1230.     position 39295.1 -878.048 30194.9
  1231.     towards "hero"
  1232.     armed_with "RED LASER" rate 8
  1233.     task
  1234.         goto 40522.4 -1897.23 28036.5
  1235. ;        goto 37358.1 -2288.97 24202.9
  1236.         attack "hero"
  1237.     end
  1238.     pause 50
  1239. end_procedure terminate after 8 loops
  1240.  
  1241. procedure "P5b"
  1242.     wait_until distance_between "P5ca" and "gun5" < 5000
  1243.     set_volatile "P5ca"
  1244. end_procedure
  1245.  
  1246.  
  1247. wait_until proc "P5a" terminated
  1248. wait_until number_of "aair"=0
  1249. wait_until number_of "aland"=0
  1250. end_procedure "P5wp"
  1251. end_procedure "P5b"
  1252. set_volatile "P5ca"
  1253.  
  1254. phasemessage 21 60
  1255.  
  1256. procedure "P5wp"
  1257.     set_waypoint nearest "agun"
  1258. end_procedure
  1259.  
  1260. wait_until number_of "agun"=0
  1261. end_procedure "P5wp"
  1262.  
  1263. clear_flag 1
  1264.  
  1265. procedure "P5a"
  1266.  
  1267.     wait_until number_of "aair"<2
  1268.     wait_until flag 1 set or "bsgen7" not destroyed
  1269.  
  1270.     create "lfighter"
  1271.         position 17000 -3200 500 relative toxz "hero"
  1272.         towards "hero"
  1273.         armed_with "RED LASER"    rate 4
  1274.         task
  1275.             attack "hero"
  1276.         end
  1277.     pause 20
  1278.     create "lfighter"
  1279.         position -17000 -3200 500 relative toxz "hero"
  1280.         towards "hero"
  1281.         armed_with "RED LASER"    rate 4
  1282.         task
  1283.             attack "hero"
  1284.         end
  1285.     pause 50
  1286.     clear_flag 1
  1287. end_procedure
  1288.  
  1289. set_flag 1
  1290. phasemessage 2 60
  1291.  
  1292.  
  1293. wait_until "bsgen7" destroyed
  1294. set_flag 1
  1295.  
  1296. phasemessage 68 60
  1297. set_waypoint "chapel1"
  1298. wait_until "chapel1" destroyed
  1299. clear_waypoint
  1300.  
  1301. wait_until "ssgen4" destroyed
  1302. set_flag 1
  1303.  
  1304. phasemessage 66 60
  1305. set_waypoint "flat2"
  1306. wait_until "flat2" destroyed
  1307. clear_waypoint
  1308.  
  1309. wait_until "ssgen5" destroyed
  1310. set_flag 1
  1311.  
  1312. phasemessage 66 60
  1313. set_waypoint "flat3"
  1314. wait_until "flat3" destroyed
  1315. clear_waypoint
  1316.  
  1317. wait_until "ssgen3" destroyed
  1318. set_flag 1
  1319.  
  1320. mission_uncritical "P5ca"
  1321.  
  1322. phasemessage 66 60
  1323. set_waypoint "flat1"
  1324. wait_until "flat1" destroyed
  1325. clear_waypoint
  1326.  
  1327. set_flag 1
  1328. pause 2
  1329.  
  1330. phasemessage 52 60
  1331.  
  1332. wait_until number_of "aair"=0
  1333. end_procedure "P5a"
  1334.  
  1335. #==================================
  1336. phasemessage 91 60
  1337.  
  1338. pause 20
  1339.  
  1340. hud off
  1341. camera
  1342.     attached_to "hero"
  1343.     position 600 -300 -600
  1344.     pointing_at "hero"
  1345.     dolly 1
  1346.     dollyspeed 0.1%
  1347. pause 80
  1348.  
  1349. ;-------------------------------------------------------
  1350. ;PHASE 6
  1351. ;-------------------------------------------------------
  1352. clear_flag all
  1353. phasestart
  1354.  
  1355. #==================
  1356. # camera cuts here
  1357. #==================
  1358.  
  1359. phasemessage 40 60
  1360. playcdfast
  1361.  
  1362. switch_hero "plfight"
  1363.     task
  1364.         secondary_armed_with "ENERGY 1" rate 16 rounds 20
  1365.  
  1366. ;        position 16450.4 -400 15524.3
  1367.         position 16450.4 -3200 15524.3
  1368.  
  1369. ;        goto 16450.4 -3200 15524.3
  1370. ;        goto 20421.2 -2800 14555.5
  1371. ;        goto 23252.5 -2800 13923.2
  1372.  
  1373.         wait_until flag 0 set
  1374.         playercontrols
  1375.     end
  1376.  
  1377. set_volatile "plfight"
  1378.  
  1379. hud off
  1380. camera
  1381.     position 600 -300 -600 local to "hero"
  1382.     pointing_at "hero"
  1383.     dolly 1
  1384.  
  1385. pause 80
  1386. camera cockpit
  1387. set_flag 0
  1388. kill "P5hero"
  1389. kill group "aihover"
  1390.  
  1391.  
  1392. #==================================
  1393.  
  1394. create "command"
  1395.     label "P6big"
  1396.     position 59696.2 -3440.08 54918.8
  1397.     armed_with "ENERGY 1" rate 2
  1398.     inert
  1399.     task
  1400.         patrol
  1401.             point 49432.4 -3800 53780.9
  1402.             point 21482.6 -3800 53904.9
  1403.             point 8672.39 -3800 45725
  1404.             point 28217.9 -3800 37727.3
  1405.             point 39510.2 -3800 20433.1
  1406.             point 34708.7 -3800 12347.9
  1407.             point 21956.1 -3800 14222.8
  1408.             point 25311 -3800 22406.9
  1409.         end
  1410.  
  1411. procedure "P6a"
  1412.     wait_until number_of "aair" <6
  1413.     create "lfighter"
  1414.         position 500 0 17000 local to "hero"
  1415.         towards "hero"
  1416.         armed_with "PLASMA BOLT 1"    rate 12
  1417.         task
  1418.             set_vel 4
  1419.             attack "hero"
  1420.                 break_task_if vel<2
  1421.             explode
  1422.         end
  1423.     pause 25
  1424. end_procedure terminate after 24 loops
  1425.  
  1426. wait_until proc "P6a" terminated
  1427. wait_until number_of "aair"=0
  1428. phasemessage 69 60
  1429. set_waypoint "P6big"
  1430.  
  1431.  
  1432. create "lance"
  1433.     label "P6ha"
  1434.     position 500 3200 -17000 relative toxz "hero"
  1435.     forward -0.58 0 0.81 up 0 1 0
  1436.     armed_with "GREEN LASER" rate 2
  1437.     inert
  1438.     task
  1439.         do
  1440.             attack group "fighters"
  1441.         until flag 2 set
  1442.  
  1443.         armed_with "DESIGNATOR"
  1444.  
  1445.         do
  1446.             goto 6000 300 6000 local to "P6big"
  1447.             shoot "P6big"
  1448.         until "P6big" destroyed
  1449.     end
  1450.  
  1451. create "lance"
  1452.     label "P6hb"
  1453.     position 5000 3200 -17000 relative toxz "hero"
  1454.     forward -0.58 0 0.81 up 0 1 0
  1455.     armed_with "GREEN LASER" rate 2
  1456.     inert
  1457.     task
  1458.         do
  1459.             goto 5000 300 5000 local to "P6big"
  1460.             shoot group "aair"
  1461.             goto 5000 300 -5000 local to "P6big"
  1462.             shoot group "aair"
  1463.             goto -5000 300 -5000 local to "P6big"
  1464.             shoot group "aair"
  1465.             goto -5000 300 5000 local to "P6big"
  1466.             shoot group "aair"
  1467.         until flag 2 set
  1468.  
  1469.         armed_with "DESIGNATOR"
  1470.  
  1471.         do
  1472.             goto -6000 300 -6000 local to "P6big"
  1473.             shoot "P6big"
  1474.         until "P6big" destroyed
  1475.  
  1476.     end
  1477.  
  1478.  
  1479. procedure "P6a"
  1480.     wait_until number_of "fighters" <6
  1481.  
  1482.     create "hfighter"
  1483.         position 17000 0 500 local to "P6big"
  1484.         towards "hero"
  1485.         armed_with "PLASMA BOLT 3"    rate 0
  1486.         task
  1487.             do
  1488.                 goto 4000 300 4000 local to "P6big"
  1489.                     break_task_if vel<2
  1490.                 shoot      
  1491.                 goto 2000 300 -2000 local to "P6big"
  1492.                     break_task_if vel<2
  1493.                 shoot
  1494.                 goto -2000 300 -2000 local to "P6big"
  1495.                     break_task_if vel<2
  1496.                 shoot
  1497.                 goto -4000 300 4000 local to "P6big"
  1498.                     break_task_if vel<2
  1499.                 shoot
  1500.             until vel <2
  1501.             explode
  1502.         end
  1503.     pause 90
  1504. end_procedure terminate after 12 loops
  1505.  
  1506. wait_until distance_between "hero" and waypoint <8000
  1507. phasemessage 70 60
  1508.  
  1509. procedure "P6b"
  1510.     wait_until number_of "aair" <6
  1511.     create "lfighter"
  1512.         position 500 0 17000 local to "hero"
  1513.         towards "hero"
  1514.         armed_with "PLASMA BOLT 1"    rate 12
  1515.         task
  1516.             set_vel 4
  1517.             attack "hero"
  1518.                 break_task_if vel<2
  1519.             explode
  1520.         end
  1521.     pause 25
  1522. end_procedure terminate after 12 loops
  1523.  
  1524.  
  1525.  
  1526. wait_until proc "P6a" terminated
  1527. wait_until proc "P6b" terminated
  1528.  
  1529. wait_until number_of "aair"=0
  1530. wait_until number_of "fighters"=0
  1531.  
  1532. set_volatile "P6big"
  1533. ;set_volatile "P6ha"
  1534. ;set_volatile "P6hb"
  1535. set_flag 2
  1536.  
  1537. phasemessage 71 120
  1538.  
  1539. wait_until "P6big" destroyed
  1540. #==================================
  1541. phasemessage 91 60
  1542.  
  1543. pause 20
  1544.  
  1545. hud off
  1546. camera
  1547.     attached_to "hero"
  1548.     position 600 -300 -600
  1549.     pointing_at "hero"
  1550.     dolly 1
  1551.     dollyspeed 0.1%
  1552. pause 80
  1553.  
  1554. ;-------------------------------------------------------
  1555. ;PHASE 7
  1556. ;-------------------------------------------------------
  1557. clear_flag all
  1558. phasestart
  1559.  
  1560. phasemessage 6 60
  1561. playcdslow
  1562.  
  1563. create "alnadubs"
  1564.     label "P7gun1"
  1565.     position 41822.6 on ground 26884.4
  1566.     forward 0 0 -1 up 0 1 0
  1567.     armed_with "GREEN ENERGY LASER"    rate 16
  1568.     task
  1569.         attack
  1570.     end
  1571.  
  1572.  
  1573. create "alnadubs"
  1574.     label "P7gun2"
  1575.     position 37559.1 on ground 29409.7
  1576.     forward 0 0 1 up 0 1 0
  1577.     armed_with "GREEN ENERGY LASER"    rate 16
  1578.     task
  1579.         attack
  1580.     end
  1581.  
  1582.  
  1583.  
  1584. create "hovercraft"
  1585.     label "P7hero"
  1586.     position 24871 on ground 10309.6
  1587.     forward 0.57 0 0.82 up 0 1 0
  1588.     armed_with "GREEN LASER"    rate 4
  1589.     secondary_armed_with "DESIGNATOR" rate 32 rounds 20
  1590.  
  1591.  
  1592.  
  1593. switch_hero "P7hero"
  1594.     task
  1595.         wait_until flag 0 set
  1596.         playercontrols
  1597.     end
  1598.  
  1599. hud off
  1600. camera
  1601.     position 600 -300 -600 local to "hero"
  1602.     pointing_at "hero"
  1603.     dolly 0
  1604.  
  1605. pause 40
  1606. camera cockpit
  1607. set_flag 0
  1608. kill "plfight"
  1609. kill "P6ha"
  1610. kill "P6hb"
  1611.  
  1612. #==================================
  1613.  
  1614. create "hovertank"
  1615.     position 28780.1 on ground 16717.6
  1616.     towards 42535 on ground 30375.5
  1617.     armed_with "TRACER SHOT 1" rate 64
  1618.     inert
  1619.     task
  1620.         wait_until flag 1 set
  1621.         goto 40522.4 on ground 28036.5
  1622.         do
  1623.             shoot "P7gun1"
  1624.         until "P7gun1" destroyed
  1625.         do
  1626.             shoot "P7gun2"
  1627.         until "P7gun2" destroyed
  1628.  
  1629.         goto 28780.1 on ground 16717.6
  1630.         kill
  1631.     end
  1632.  
  1633. create "bug"
  1634.     label "P7bug"
  1635.     position 27227.2 -500 14517.8
  1636.     towards "hero"
  1637.     armed_with "GREEN LASER"    rate 4
  1638.     inert
  1639.     task
  1640.         do
  1641.             patrol
  1642.                 point 1000 -1800 0 relative to "hero"
  1643.                 break_task_if distance_between me and closest "aair" <6000
  1644.             stop
  1645.             shoot group "aair"
  1646.         until flag 2 set
  1647.     end
  1648.  
  1649.  
  1650. create "skimmer"
  1651.     position 26125.6 on ground 24593.9
  1652.     towards "hero"
  1653.     armed_with "PURPLE LASER"    rate 4
  1654.     task
  1655.         attack "hero"
  1656.     end
  1657.  
  1658. create "facraft"
  1659.     position 38940.3 on ground 26042.2
  1660.     towards "hero"
  1661.     armed_with "PURPLE LASER"    rate 4
  1662.     task
  1663.         attack "hero"
  1664.     end
  1665.  
  1666.  
  1667. create "skimmer"
  1668.     position 32541.7 on ground 28886.7
  1669.     towards "hero"
  1670.     armed_with "PURPLE LASER"    rate 4
  1671.     task
  1672.         attack "hero"
  1673.     end
  1674.  
  1675.  
  1676. procedure "P7a"
  1677.     wait_until number_of "aair" <2
  1678.     create "lfighter"
  1679.         position 500 0 17000 local to "hero"
  1680.         towards "hero"
  1681.         armed_with "PLASMA BOLT 3"    rate 16
  1682.         task
  1683.             set_vel 4
  1684.             attack "hero"
  1685.                 break_task_if vel<2
  1686.             explode
  1687.         end
  1688.     pause 25
  1689. end_procedure
  1690.  
  1691. procedure "P7c"
  1692.     set_waypoint nearest "aland"
  1693. end_procedure
  1694.  
  1695. procedure "P7d"
  1696.     wait_until distance_between "hero" and "laser2" <500
  1697.  
  1698.     phasemessage 72 60
  1699.     set_task "laser2"
  1700.         attack
  1701.     end
  1702. end_procedure terminate after 1 loops
  1703.  
  1704. wait_until number_of "aland"=0
  1705. set_flag 1
  1706.  
  1707. procedure "P7b"
  1708.     create "skimmer"
  1709.         position 39295.1 on ground 30194.9
  1710.         towards "hero"
  1711.         armed_with "PLASMA BOLT 3"    rate 16
  1712.         task
  1713.             goto 40522.4 on ground 28036.5
  1714.             attack "hero"
  1715.         end
  1716.     pause 150
  1717. end_procedure terminate after 3 loops
  1718.  
  1719.  
  1720. wait_until proc "P7b" terminated
  1721. wait_until number_of "aland"=0
  1722. #==============================
  1723.  
  1724. end_procedure "P7c"
  1725.  
  1726. phasemessage 92 60
  1727. set_volatile "ssgen6"
  1728. set_waypoint "ssgen6"
  1729. wait_until distance_between "hero" and waypoint <4000
  1730. phasemessage 26 60
  1731.  
  1732. wait_until "ssgen6" destroyed
  1733. set_waypoint "P7b1"
  1734. wait_until "P7b1" destroyed
  1735.  
  1736. set_volatile "ssgen7"
  1737. set_waypoint "ssgen7"
  1738. wait_until "ssgen7" destroyed
  1739. set_waypoint "P7b2"
  1740. wait_until "P7b2" destroyed
  1741.  
  1742. set_volatile "ssgen8"
  1743. set_waypoint "ssgen8"
  1744. wait_until "ssgen8" destroyed
  1745. set_waypoint "P7b3"
  1746. wait_until "P7b3" destroyed
  1747.  
  1748. end_procedure "P7a"
  1749. kill group "aair"
  1750. set_flag 2
  1751. clear_waypoint
  1752.  
  1753. phasemessage 48 60
  1754.  
  1755. procedure "P7a"
  1756.     create "skimmer"
  1757.         position 39295.1 on ground 30194.9
  1758.         armed_with "PLASMA BOLT 3"    rate 16
  1759.         task
  1760.             attack "hero"
  1761.         end
  1762.     pause 150
  1763. end_procedure terminate after 3 loops
  1764.  
  1765. wait_until proc "P7a" terminated
  1766. wait_until number_of "aland" = 0
  1767.  
  1768. set_waypoint 26438 on ground 11584.6
  1769. phasemessage 73 120
  1770.  
  1771. wait_until distance_between "hero" and waypoint < 1000
  1772. clear_waypoint
  1773.  
  1774. end_procedure "P7d"
  1775.  
  1776. #==================================
  1777. phasemessage 91 60
  1778.  
  1779. pause 20
  1780.  
  1781. hud off
  1782. camera
  1783.     attached_to "hero"
  1784.     position 600 -300 -600
  1785.     pointing_at "hero"
  1786.     dolly 1
  1787.     dollyspeed 0.1%
  1788. pause 80
  1789.  
  1790. ;-------------------------------------------------------
  1791. ;PHASE 8
  1792. ;-------------------------------------------------------
  1793. clear_flag all
  1794.  
  1795. phasemessage 74 120
  1796.  
  1797. set_task "P8rack"
  1798.     slave_to "laser2"
  1799. end
  1800.  
  1801. switch_hero "laser2"
  1802.     task
  1803.         position 34427.6 -1543 13849.6
  1804.         rotate_gun towards "replen1"
  1805.         wait_until flag 0 set
  1806.         playercontrols
  1807.     end
  1808.  
  1809. create "lance"
  1810.     label "P8b-team1"
  1811.     mission_critical
  1812.     position 17000 -3200 500 relative toxz "hero"
  1813.     armed_with "RED LASER" rate 4
  1814.     secondary_armed_with "DESIGNATOR" rate 64 rounds 20
  1815.     task
  1816.         land 27320.9 on ground 13587.1
  1817.     end
  1818.  
  1819. create "lance"
  1820.     label "P8b-team2"
  1821.     mission_critical
  1822.     position 17000 -4000 3500 relative toxz "hero"
  1823.     armed_with "RED LASER" rate 8
  1824.     task
  1825.         land 27522.4 on ground 12766.9
  1826.  
  1827.     end
  1828.  
  1829. camera_task
  1830.     hud off
  1831.     cam_pos -1500 0 -1500 attached_to "P8b-team1"
  1832.     cam_focus "P8b-team2"
  1833.     dolly 0
  1834.  
  1835.     pause 100
  1836.     cam_pos 0 0 -1500 attached_to "P8b-team1"
  1837.     cam_focus "P8b-team1"
  1838.     dolly 1
  1839.  
  1840.     pause 100
  1841.     cam_pos -1500 0 -2500 attached_to "P8b-team1"
  1842.     dolly 1
  1843.  
  1844.     pause 100
  1845.  
  1846.     cam_pos 27438 on ground 11584.6
  1847.     dolly 0
  1848.  
  1849.     pause 100
  1850.     cam_focus "P8b-team2"
  1851.     dolly 1
  1852.     pause 250
  1853.     set_flag 0
  1854. end
  1855.  
  1856.  
  1857. kill "P7hero"
  1858. kill "P7bug"
  1859.  
  1860. pause 100
  1861.  
  1862. create "bug"
  1863.     label "P8-bug1"
  1864.     mission_critical
  1865.     position 17000 -4000 3500 relative toxz "hero"
  1866.     armed_with "RED LASER" rate 4
  1867.     task
  1868.         land 28143 on ground 13332.4
  1869.     end
  1870.  
  1871. create "bug"
  1872.     label "P8-bug2"
  1873.     mission_critical
  1874.     position 17000 -3200 500 relative toxz "hero"
  1875.     armed_with "RED LASER" rate 4
  1876.     secondary_armed_with "DESIGNATOR" rate 64 rounds 20
  1877.     task
  1878.         land 26994.3 on ground 12888.5
  1879.     end
  1880.  
  1881. wait_until flag 0 set
  1882.  
  1883. camera
  1884.     position 600 -300 -600 local to "hero"
  1885.     pointing_at "hero"
  1886.     dolly 0
  1887.  
  1888. pause 40
  1889. camera cockpit
  1890. set_flag 0
  1891.  
  1892. #==================================
  1893. #====wave 1
  1894. clear_flag all
  1895. phasestart
  1896.  
  1897. phasemessage 75 60
  1898.  
  1899. procedure "P8a"
  1900.     create "lfighter"
  1901.         position 15812.1 -1593.82 13237.8
  1902.         armed_with "RED LASER" rate 6
  1903.         task
  1904.             goto 18535.1 -2513.7 13798.1
  1905.             goto 25286 -1193.4 10858.4
  1906.             shoot
  1907.             goto 32152.2 -2283.1 12271.2
  1908.             goto 37794 -2562.85 13432.1
  1909.             attack
  1910.  
  1911.         end
  1912.     pause 75
  1913.  
  1914. end_procedure terminate after 3 loops
  1915.  
  1916. procedure "P8b"
  1917.     create "lfighter"
  1918.         position 13231.1 -1993.94 17753.9
  1919.         armed_with "RED LASER" rate 6
  1920.         task
  1921.             goto 19260.8 -2283.67 16735.6
  1922.             goto 25948.2 -1073.37 13593.8
  1923.             shoot
  1924.             goto 32027.2 -2383.1 14218.4
  1925.             goto 34110.8 -3193.02 18597.4
  1926.             attack
  1927.         end
  1928.     pause 75
  1929. end_procedure terminate after 3 loops
  1930.  
  1931.  
  1932. wait_until proc "P8a" terminated
  1933. wait_until proc "P8b" terminated
  1934. wait_until number_of "aair" =0
  1935.  
  1936. pause 50
  1937.  
  1938. #==================================
  1939. #====wave 2
  1940.  
  1941. procedure "P8a"
  1942.     create "lfighter"
  1943.         position 38049 -573.974 15397.7
  1944.         towards "hero"
  1945.         armed_with "PLASMA BOLT 2" rate 6
  1946.         task
  1947.             land 38049 -2300 15397.7
  1948.             shoot "hero"
  1949.             goto 38150.4 -2300 15489.7
  1950.             goto 31404 -2379.15 14251.9
  1951.             goto 28588.1 -904.273 14892.6
  1952.             goto 28147.2 -613.805 12303.4
  1953.             attack
  1954.  
  1955.         end
  1956.     pause 25
  1957.  
  1958.     create "lfighter"
  1959.         position 36049 -573.974 15397.7
  1960.         towards "hero"
  1961.         armed_with "PLASMA BOLT 2" rate 6
  1962.         task
  1963.             land 36049 -1600 15397.7
  1964.             shoot "hero"
  1965.             goto 36150.4 -2300 15489.7
  1966.             shoot "hero"
  1967.             goto 31404 -2379.15 14251.9
  1968.             goto 28588.1 -904.273 14892.6
  1969.             goto 28147.2 -613.805 12303.4
  1970.             attack
  1971.         end
  1972.     pause 25
  1973.  
  1974. end_procedure terminate after 5 loops
  1975.  
  1976. wait_until proc "P8a" terminated
  1977. wait_until number_of "aair" =0
  1978. #==================================
  1979. #====wave 3
  1980.  
  1981. procedure "P8a"
  1982.     create "lfighter"
  1983.         position 17967.1 -1502.95 8879.56
  1984.         armed_with "RED LASER" rate 6
  1985.         task
  1986.             goto 23400.7 -1525.91 8831.56
  1987.             shoot
  1988.             goto 29269.7 -1560.42 11202.8
  1989.             shoot
  1990.             goto 31317.3 -2486.77 15598
  1991.             shoot
  1992.             goto 28100.8 -2466.99 14082.7
  1993.             attack "hero"
  1994.  
  1995.         end
  1996.     pause 25
  1997.  
  1998. end_procedure terminate after 4 loops
  1999.  
  2000. procedure "P8b"
  2001.     pause 25
  2002.     create "lfighter"
  2003.         position 20095 -1490.92 3613.2
  2004.         armed_with "RED LASER" rate 6
  2005.         task
  2006.             goto 23400.7 -1525.91 8831.56
  2007.             shoot
  2008.             goto 29269.7 -1560.42 11202.8
  2009.             shoot
  2010.             goto 33744.9 -2473.03 9589.91
  2011.             shoot
  2012.             goto 30213.7 -2455.04 8853.45
  2013.             attack
  2014.  
  2015.         end
  2016. end_procedure terminate after 4 loops
  2017.  
  2018. wait_until proc "P8a" terminated
  2019. wait_until proc "P8b" terminated
  2020. wait_until number_of "aair" =0
  2021.  
  2022.  
  2023. #==================================
  2024. #====wave 4
  2025.  
  2026. procedure "P8a"
  2027.     create "lfighter"
  2028.         position 41350.2 -1007.2 8291.51
  2029.         armed_with "RED LASER" rate 6
  2030.         task
  2031.             goto 40705.9 -1811.59 8743.49
  2032.             shoot
  2033.             goto 37319.9 -2153.67 11656.5
  2034.             shoot
  2035.             goto 32353.1 -1953.11 15122.7
  2036.             goto 28092.2 -1016.93 13149
  2037.             attack
  2038.         end
  2039.     pause 25
  2040.  
  2041. end_procedure terminate after 6 loops
  2042.  
  2043.  
  2044. wait_until proc "P8a" terminated
  2045. wait_until number_of "aair" <=3
  2046.  
  2047. create "hbomber"
  2048.     label "P8mother"
  2049.     position 15935 -527 15062
  2050.     towards "hero"
  2051.     armed_with "ENERGY 1" rate 0
  2052.     task
  2053.         land 15935 -3100 15062
  2054.         do
  2055.             goto 24092.7 -3100 15484.9
  2056.             shoot
  2057.             goto 32402.1 -3100 14846.4
  2058.             shoot
  2059.             goto 29976.4 -3100 10050.1
  2060.             shoot
  2061.         forever
  2062.     end
  2063.  
  2064. camera_task
  2065.     hud off
  2066.     cam_pos 0 -3000 3000 local to "P8mother"
  2067.     cam_focus "P8mother"
  2068.  
  2069.     pause 250
  2070.     cam_pos 0 500 -3000 local to "P8mother"
  2071.     dolly 1
  2072.     dollyspeed 0.1%
  2073.  
  2074.     pause 125
  2075.     cam_mode cockpit
  2076.     phasemessage 76 60
  2077. end
  2078.  
  2079. wait_until "P8mother" destroyed
  2080. pause 50
  2081.  
  2082. #==================================
  2083. phasemessage 91 60
  2084.  
  2085. pause 20
  2086.  
  2087. hud off
  2088. camera
  2089.     attached_to "hero"
  2090.     position 600 -300 -600
  2091.     pointing_at "hero"
  2092.     dolly 1
  2093.     dollyspeed 0.1%
  2094. pause 80
  2095.  
  2096.  
  2097. ;-------------------------------------------------------
  2098. ;PHASE 9
  2099. ;-------------------------------------------------------
  2100. clear_flag all
  2101. phasestart
  2102.  
  2103. phasemessage 2 60
  2104.  
  2105. set_inert "ring1"
  2106.  
  2107.  
  2108. mission_uncritical "P8b-team1"
  2109. mission_uncritical "P8b-team2"
  2110. mission_uncritical "P8-bug1"
  2111. mission_uncritical "P8-bug2"
  2112.  
  2113. set_inert "P8b-team2"
  2114. set_inert "P8-bug2"
  2115.  
  2116.  
  2117. switch_hero "P8b-team1"
  2118.     task
  2119.         position 27320.9 on ground 13587.1
  2120.         wait_until flag 0 set
  2121.         land  27320.9 -1250 13587.1
  2122.         wait_until flag 1 set
  2123.         playercontrols
  2124.     end
  2125.  
  2126. auto_aim "hero"
  2127.  
  2128. set_task "P8-bug1"
  2129.     position 28143 on ground 13332.4
  2130.     wait_until flag 0 set
  2131.     land 28143 -1250 13332.4
  2132.         do
  2133.             patrol
  2134.                 point 3000 0 -2000 local to "hero"
  2135.                 point 2000 0 -2000 local to "hero"
  2136.                 break_task_if distance_between "P8-bug1" and closest_enemy < 3000
  2137.             stop
  2138.             shoot
  2139.         until flag 9 set
  2140.         kill
  2141. end
  2142.  
  2143. camera_task
  2144.     hud off
  2145.     set_flag 0
  2146.     cam_pos 0 -200 3000 attached_to "hero"
  2147.     cam_focus  "P8-bug1"
  2148.     cam_goto -1000 -200 -300
  2149.  
  2150.     cam_pos 500 0 -500 attached_to "hero"
  2151.     cam_focus  "hero"
  2152.     dolly 1
  2153.     dollyspeed 0.1%
  2154.  
  2155.     pause 100
  2156.     cam_mode cockpit
  2157.     set_flag 1
  2158. end
  2159.  
  2160. wait_until flag 1 set
  2161. #==================================
  2162.  
  2163. procedure "P9a"
  2164.     wait_until number_of "aair" <6
  2165.     create "lfighter"
  2166.         position 500 0 17000 local to "hero"
  2167.         towards "hero"
  2168.         armed_with "BLUE LASER"    rate 12
  2169.         task
  2170.             set_vel 4
  2171.             attack "hero"
  2172.                 break_task_if vel<2
  2173.             explode
  2174.         end
  2175.     pause 25
  2176. end_procedure terminate after 24 loops
  2177.  
  2178. wait_until proc "P9a" terminated
  2179. wait_until number_of "aair"<2
  2180.  
  2181. phasemessage 92 60
  2182. set_waypoint "bsgen8"
  2183. wait_until distance_between "hero" and waypoint < 8000
  2184. phasemessage 62 60
  2185. set_volatile "bsgen8"
  2186. wait_until "bsgen8" destroyed
  2187.  
  2188. phasemessage 65 60
  2189. set_waypoint "hub2"
  2190.  
  2191.  
  2192. procedure "P9a"
  2193.     wait_until number_of "aair" <6
  2194.     create "lfighter"
  2195.         position 500 0 17000 local to "hero"
  2196.         towards "hero"
  2197.         armed_with "BLUE LASER"    rate 12
  2198.         task
  2199.             set_vel 4
  2200.             attack "hero"
  2201.                 break_task_if vel<2
  2202.             explode
  2203.         end
  2204.     pause 25
  2205. end_procedure terminate after 12 loops
  2206.  
  2207. wait_until "hub2" destroyed
  2208. clear_waypoint
  2209. phasemessage 52 60
  2210.  
  2211.  
  2212. wait_until proc "P9a" terminated
  2213. wait_until number_of "aair"<2
  2214.  
  2215. phasemessage 62 60
  2216. set_volatile "bsgen5"
  2217. set_waypoint "bsgen5"
  2218. wait_until "bsgen5" destroyed
  2219.  
  2220. phasemessage 77 60
  2221.  
  2222. procedure "P9a"
  2223.     wait_until number_of "fighters" <9
  2224.     create "hfighter"
  2225.         position 0 -1100 0 local to "ring1"
  2226.         armed_with "BLUE LASER"    rate 12
  2227.         task
  2228.             land 0 -3500 0 local to "ring1"
  2229.             set_vel 70
  2230.             attack "hero"
  2231.                 break_task_if vel<2
  2232.             explode
  2233.         end
  2234.     
  2235.     pause 15
  2236.     wait_until number_of "fighters" <9
  2237.  
  2238.  
  2239.     create "hfighter"
  2240.         position 800 -1100 500 local to "ring1"
  2241.         towards "hero"
  2242.         armed_with "BLUE LASER"    rate 12
  2243.         task
  2244.             land 800 -3200 500 local to "ring1"
  2245.             set_vel 70
  2246.             attack "hero"
  2247.                 break_task_if vel<2
  2248.             explode
  2249.         end
  2250.  
  2251.     pause 15
  2252.     wait_until number_of "fighters" <9
  2253.  
  2254.     create "hfighter"
  2255.         position -800 -1100 -500 local to "ring1"
  2256.         armed_with "BLUE LASER"    rate 12
  2257.         task
  2258.             land -800 -2900 -500 local to "ring1"
  2259.             set_vel 70
  2260.             attack "hero"
  2261.                 break_task_if vel<2
  2262.             explode
  2263.         end
  2264.  
  2265.     pause 60
  2266.  
  2267. end_procedure terminate after 12 loops
  2268.  
  2269.  
  2270. set_waypoint "ring1"
  2271.  
  2272. pause 200
  2273. set_volatile "ring1"
  2274. phasemessage 78 60
  2275.  
  2276. wait_until "ring1" destroyed
  2277. clear_waypoint
  2278. end_procedure "P9a"
  2279.  
  2280. phasemessage 52 60
  2281.  
  2282. wait_until number_of "fighters" = 0
  2283.  
  2284. #==================================
  2285. phasemessage 91 60
  2286.  
  2287. pause 20
  2288. set_flag 9
  2289.  
  2290. hud off
  2291. camera
  2292.     attached_to "hero"
  2293.     position 600 -300 -600
  2294.     pointing_at "hero"
  2295.     dolly 1
  2296.     dollyspeed 0.1%
  2297. pause 80
  2298.  
  2299. ;-------------------------------------------------------
  2300. ;PHASE 10
  2301. ;-------------------------------------------------------
  2302. clear_flag all
  2303. playcdfast
  2304.  
  2305.  
  2306. switch_hero "P8-bug2"
  2307.     task
  2308.         position 26994.3 on ground 12888.5
  2309.         wait_until flag 0 set
  2310.         land  26994.3 -1250 12888.5
  2311.         wait_until flag 1 set
  2312.         playercontrols
  2313.     end
  2314.  
  2315. auto_aim "hero"
  2316.  
  2317. set_task "P8b-team2"
  2318.     position 27522.4 on ground 12766.9
  2319.     wait_until flag 0 set
  2320.     land 27522.4 -1250 12766.9
  2321.         do
  2322.             patrol
  2323.                 point 3000 0 -2000 local to "hero"
  2324.                 point 2000 0 -2000 local to "hero"
  2325.                 break_task_if distance_between me and closest "aliens" < 3000
  2326.             stop
  2327.             shoot
  2328.         until flag 9 set
  2329.         kill
  2330. end
  2331.  
  2332. create "alnportl-c"
  2333.     label "portal-c"
  2334.     position 18826.9 on ground 34922.5
  2335.     set_color 0 0 0
  2336.  
  2337. set_operate "portal-c" "bcloak"
  2338.  
  2339.  
  2340. camera_task
  2341.     cam_pos 0 -2075 8000 attached_to "portal-c"
  2342.     cam_focus  18826.9 -2075 34922.5
  2343.     hud off
  2344.  
  2345.     cam_goto 3000 -2075 -4000
  2346.     set_flag 0
  2347.  
  2348.     cam_pos 0 -200 3000 attached_to "hero"
  2349.     cam_focus  "P8b-team2"
  2350.     cam_goto -1000 -200 -300
  2351.  
  2352.     cam_pos 500 0 -500 attached_to "hero"
  2353.     cam_focus  "hero"
  2354.     dolly 1
  2355.     dollyspeed 0.1%
  2356.  
  2357.     pause 100
  2358.     cam_mode cockpit
  2359.     set_flag 1
  2360.  
  2361. end
  2362.  
  2363. kill "P8b-team1"
  2364.  
  2365. wait_until flag 0 set
  2366. kill "portal-c"
  2367. create "alnportl"
  2368.     label "portal"
  2369.     position 18826.9 on ground 34922.5
  2370.     inert
  2371.  
  2372. create "bug"
  2373.     label "P10-bug"
  2374.     position 17000 -3200 500 relative to "hero"
  2375.     armed_with "RED LASER" rate 8
  2376.     task
  2377.         do
  2378.             patrol
  2379.                 point 3000 0 2000 local to "hero"
  2380.                 point 2000 0 2000 local to "hero"
  2381.                 break_task_if distance_between me and closest "aliens" < 3000
  2382.             stop
  2383.             shoot
  2384.         until flag 9 set
  2385.         kill
  2386.     end
  2387.  
  2388.  
  2389. wait_until flag 1 set
  2390.  
  2391.  
  2392.  
  2393. #==================================
  2394. #phase 10.1
  2395.  
  2396. phasestart
  2397. phasemessage 52 60
  2398.  
  2399. procedure "P10a"
  2400.  
  2401.     wait_until number_of_baddies<22
  2402.     wait_until number_of "aair" <6
  2403.     create "lfighter"
  2404.         position 500 -2000 -12000 local to "hero"
  2405.         towards "hero"
  2406.         armed_with "BLUE LASER"    rate 12
  2407.         task
  2408.             set_vel 4
  2409.             attack "hero"
  2410.                 break_task_if vel<2
  2411.             explode
  2412.         end
  2413.     pause 25
  2414. end_procedure terminate after 24 loops
  2415.  
  2416. wait_until proc "P10a" terminated
  2417. wait_until number_of "aair" = 0
  2418.  
  2419. #==================================
  2420. #phase 10.2
  2421.  
  2422. camera_task
  2423.     hud off
  2424.     cam_pos 200 -2075 -4000 attached_to "portal"
  2425.     cam_focus  18826.9 -2075 34922.5
  2426.     dolly 1
  2427.     dollyspeed 1%
  2428.  
  2429.     pause 200
  2430.     cam_mode cockpit
  2431.     set_flag 3
  2432. end
  2433.  
  2434. pause 50
  2435. phasemessage 8 120
  2436.  
  2437. create "bomber-c"
  2438.     label "P10-b1"
  2439.     position 0 -1800 0 local to "portal"
  2440.     towards 0 -1800 -1000 local to "portal"
  2441.     armed_with "ENERGY 2"    rate 0
  2442.     set_color 0 0 0
  2443.     set_operate me "bcloak2"
  2444.     task
  2445.         pause 32
  2446.         do
  2447.             shoot
  2448.             goto 0 -3200 -10000 local to "portal"
  2449.             shoot
  2450.             goto 11282.7 -3200 54484
  2451.             shoot
  2452.             goto 6115.19 -3200 46747.1
  2453.             shoot
  2454.             goto 9761.33 -3200 38901.7
  2455.             shoot
  2456.             goto 14255.5 -3200 29727.2
  2457.             shoot
  2458.             goto 24398.6 -3200 28996.1
  2459.             shoot
  2460.         forever
  2461.     end
  2462. pause 10
  2463.  
  2464. startwave 0 -1800 0 local to "portal" 0
  2465. pause 70
  2466.  
  2467. set_waypoint "P10-b1"
  2468.  
  2469. wait_until flag 3 set
  2470.  
  2471. create "hfighter"
  2472.     position 0 -3200 12000 local to "P10-b1"
  2473.     towards "portal"
  2474.     armed_with "BLUE LASER"    rate 24
  2475.     task
  2476.         do
  2477.             goto 5000 0 1000 local to "P10-b1"
  2478.             break_task_if distance_between me and closest "human" < 5000
  2479.             stop
  2480.             shoot
  2481.         until "P10-b1" destroyed
  2482.         attack "hero"
  2483.     end
  2484.  
  2485. create "hfighter"
  2486.     position 1000 -3200 12000 local to "P10-b1"
  2487.     towards "portal"
  2488.     armed_with "BLUE LASER"    rate 24
  2489.     task
  2490.         do
  2491.             goto 1000 0 3000 local to "P10-b1"
  2492.             break_task_if distance_between me and closest "human" < 3000
  2493.             stop
  2494.             shoot
  2495.         until "P10-b1" destroyed
  2496.         attack "hero"
  2497.     end
  2498.  
  2499. create "hfighter"
  2500.     position 2000 -3200 12000 local to "P10-b1"
  2501.     towards "portal"
  2502.     armed_with "BLUE LASER"    rate 24
  2503.     task
  2504.         do
  2505.             goto -5000 0 -1000 local to "P10-b1"
  2506.             break_task_if distance_between me and closest "human" < 5000
  2507.             stop
  2508.             shoot
  2509.         until "P10-b1" destroyed
  2510.         attack "hero"
  2511.     end
  2512.  
  2513. create "hfighter"
  2514.     position -2000 -3200 12000 local to "P10-b1"
  2515.     towards "portal"
  2516.     armed_with "BLUE LASER"    rate 24
  2517.     task
  2518.         do
  2519.             goto -1000 0 -3000 local to "P10-b1"
  2520.             break_task_if distance_between me and closest "human" < 3000
  2521.             stop
  2522.             shoot
  2523.         until "P10-b1" destroyed
  2524.         attack "hero"
  2525.     end
  2526.  
  2527. wait_until "P10-b1" destroyed
  2528. clear_waypoint
  2529.  
  2530. wait_until number_of "fighters" = 0
  2531. #==================================
  2532. #phase 10.2
  2533.  
  2534. phasemessage 10 120
  2535.  
  2536.  
  2537. procedure "P10a"
  2538.     wait_until number_of_baddies<22
  2539.     wait_until number_of "aair" <6
  2540.  
  2541.     create "lfighter-c"
  2542.         position 0 -1800 0 local to "portal"
  2543.         towards 0 -1800 -1000 local to "portal"
  2544.         armed_with "PLASMA BOLT 2"    rate 16
  2545.         set_color 0 0 0
  2546.         set_operate me "bcloak2"
  2547.         task
  2548.             pause 16
  2549.             set_vel 70
  2550.             pause 16
  2551.             attack
  2552.                 break_task_if vel<2
  2553.             explode
  2554.         end
  2555.  
  2556.     pause 75
  2557. end_procedure
  2558.  
  2559. procedure "P10b"
  2560.     wait_until number_of_baddies<22
  2561.     wait_until number_of "fighters" <3
  2562.     create "hfighter"
  2563.         position 0 -3200 10000 local to "portal"
  2564.         armed_with "BLUE LASER"    rate 16
  2565.         task
  2566.             do
  2567.                 goto 2000 -2800 2000 local to "portal"
  2568.                 shoot
  2569.                 goto 2000 -2800 -2000 local to "portal"
  2570.                 shoot
  2571.                 goto -2000 -2800 -2000 local to "portal"
  2572.                 shoot
  2573.                 goto -2000 -2800 2000 local to "portal"
  2574.                 shoot
  2575.             forever
  2576.         end
  2577.  
  2578.     pause 75
  2579. end_procedure terminate after 8 loops
  2580.  
  2581.  
  2582. wait_until proc "P10b" terminated
  2583. wait_until number_of "fighters" = 0
  2584.  
  2585. #==================================
  2586. #phase 10.3
  2587.  
  2588. phasemessage 33 60
  2589.  
  2590. create "hbomber"
  2591.     label "P10-b2"
  2592.     position 0 -3200 17000 local to "portal"
  2593.     armed_with "ENERGY 2"    rate 0
  2594.     task
  2595.         do
  2596.             shoot
  2597.             goto 5000 -3200 1000 local to "portal"
  2598.             shoot
  2599.             goto 8000 -3200 -8000 local to "portal"
  2600.             shoot
  2601.             goto -3000 -3200 -5000 local to "portal"
  2602.             shoot
  2603.             goto -3000 -3200 8000 local to "portal"
  2604.             shoot
  2605.             goto 5000 -3200 8000 local to "portal"
  2606.             shoot
  2607.         forever
  2608.     end
  2609. pause 10
  2610.  
  2611. set_waypoint "P10-b2"
  2612. wait_until "P10-b2" destroyed
  2613.  
  2614. clear_waypoint
  2615. phasemessage 80 60
  2616. pause 400
  2617. #==================================
  2618. #phase 10.4
  2619.  
  2620. phasemessage 76 60
  2621.  
  2622. create "command"
  2623.     label "P10-b3"
  2624.     position 0 -3200 17000 local to "portal"
  2625.     armed_with "ENERGY 1"    rate 0
  2626.     task
  2627.         do
  2628.             shoot
  2629.             goto 5000 -3800 1000 local to "portal"
  2630.             shoot
  2631.             goto 8000 -3800 -8000 local to "portal"
  2632.             shoot
  2633.             goto -3000 -3800 -5000 local to "portal"
  2634.             shoot
  2635.             goto -3000 -3800 8000 local to "portal"
  2636.             shoot
  2637.             goto 5000 -3800 8000 local to "portal"
  2638.             shoot
  2639.         forever
  2640.     end
  2641. pause 10
  2642.  
  2643. set_waypoint "P10-b3"
  2644.  
  2645. procedure "P10b"
  2646.  
  2647.     wait_until number_of_baddies<22
  2648.     wait_until number_of "fighters" <6
  2649.     create "hfighter"
  2650.         position 8000 0 500 local to "P10-b3"
  2651.         towards "hero"
  2652.         armed_with "PLASMA BOLT 1"    rate 4
  2653.         task
  2654.             do
  2655.                 goto 4000 300 4000 local to "P10-b3"
  2656.                     break_task_if "P10-b3" destroyed
  2657.                 shoot      
  2658.                 goto 2000 300 -2000 local to "P10-b3"
  2659.                     break_task_if "P10-b3" destroyed
  2660.                 shoot
  2661.                 goto -2000 300 -2000 local to "P10-b3"
  2662.                     break_task_if "P10-b3" destroyed
  2663.                 shoot
  2664.                 goto -4000 300 4000 local to "P10-b3"
  2665.                     break_task_if "P10-b3" destroyed
  2666.                 shoot      
  2667.             until "P10-b3" destroyed
  2668.             attack "hero"
  2669.         end
  2670.     pause 90
  2671. end_procedure terminate after 12 loops
  2672.  
  2673. wait_until "P10-b3" destroyed
  2674. clear_waypoint
  2675. phasemessage 80 60
  2676. wait_until proc "P10b" terminated
  2677.  
  2678. wait_until number_of "fighters" =0
  2679.  
  2680.  
  2681. phasemessage 79 60
  2682. set_volatile "portal"
  2683. set_waypoint "portal"
  2684.  
  2685. wait_until "portal" destroyed
  2686. end_procedure "P10a"
  2687.  
  2688. phasemessage 80 60
  2689.  
  2690. wait_until number_of "aair" =0
  2691.  
  2692. phasemessage 90 60
  2693.  
  2694. pause 20
  2695.  
  2696. hud off
  2697. camera
  2698.     attached_to "hero"
  2699.     position 600 -300 -600
  2700.     pointing_at "hero"
  2701.     dolly 1
  2702.     dollyspeed 0.1%
  2703. pause 80
  2704. ;-------------------------------------------------------
  2705. ;END OF SCENARIO
  2706.