home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hráč 1997 December
/
Hrac_16_1997-12_cd.bin
/
DEMA
/
INCOMING
/
INCOMING.EXE
/
_SETUP.1
/
mission3.mdl
< prev
next >
Wrap
Text File
|
1997-10-21
|
49KB
|
2,640 lines
drag_coeff 0.01
gravity 2.2
;-------------------------------------------------------
;type "PLASMA BOLT 1" alien heavy cannon rate 14 tank 28 fa & battle
;type "TRACER SHOT 1" ? rate -
;type "ROCKET 1" player light rocket rate 4
;type "GUIDED MISSILE" player guided missile rate 64
;type "GREEN LASER" player fixed gun rate 2
;type "GREEN ENERGY LASER" player fixed gun rate 8 player 32 ai
;type "PLASMA BOLT 2" alien medium cannon rate 11
;type "PLASMA BOLT 3" alien light cannon rate 8
;type "ROCKET 2" player heavy rocket rate 20
;type "RED LASER" player heavy gun rate 4
;type "BLUE LASER" player medium gun rate -
;type "PURPLE LASER" player light gun rate 2
;type "BOMB 1" ? rate -
;type "ENERGY 1" alien special weapon rate 32
;type "PLASMA BOLT 4" alien bomb rate 4 nom 32 free attack
;-------------------------------------------------------
create hero "plfight"
label "left"
position 0 -100 0 relative to "replen1"
forward -0.5 0 -0.8 up 0 1 0
armed_with "RED LASER" rate 3
secondary_armed_with "ENERGY 1" rate 24 rounds 20
task
wait_until flag 0 set
playercontrols
position 0 -100 0 relative to "replen1"
end
create "heavylaser"
label "laser1"
position 43579 -1430 42541
forward -0.8 0 0.5 up 0 1 0
armed_with "GREEN LASER" rate 1
inert
create "rack"
position 44670 -1415 42136
forward 0.5 0 0.8 up 0 1 0
armed_with "GUIDED MISSILE" rate 32
task
slave_to "laser1"
end
create "heavylaser"
label "laser2"
position 31853 -132 43076
forward 0.5 0 -0.8 up 0 1 0
armed_with "GREEN LASER" rate 1
inert
create "rack"
position 32517 -117 43741
forward 0.5 0 0.8 up 0 1 0
armed_with "GUIDED MISSILE" rate 32
task
slave_to "laser2"
end
create "heavylaser"
label "laser3"
position 35273.8 -1780 12904.8
forward 0 0 1 up 0 1 0
armed_with "GREEN LASER" rate 1
inert
create "rack"
position 34587.8 -1767 12195.8
forward 0 0 1 up 0 1 0
armed_with "GUIDED MISSILE" rate 32
task
slave_to "laser3"
end
create "shuttle"
label "shuttle1"
mission_critical
position 30852 -1961 38089
forward -1 0 0 up 0 1 0
mission_critical
create "shuttle"
label "shuttle2"
mission_critical
position 52079 -1961 50399
forward 0 0 1 up 0 1 0
mission_critical
inert
create "shuttle"
label "shuttle3"
mission_critical
position 30280 -1961 48756
forward 1 0 0 up 0 1 0
mission_critical
inert
create "shuttle"
label "shuttle4"
mission_critical
position 47603 -1961 34739
forward 1 0 0 up 0 1 0
mission_critical
inert
setsfx "shuttle1" off
setsfx "shuttle2" off
setsfx "shuttle3" off
setsfx "shuttle4" off
set_inert "vab"
#===================================
# PHASE 1
#===================================
phasestart
phasemessage 47 60
playcdslow
clear_flag all
set_flag 11
camera_task
hud off
cam_pos 600 -200 -600 attached_to "hero"
cam_focus "hero"
dolly 0
set_flag 0
cam_goto -600 -200 -600
wait_until distance_between "hero" and "replen1" > 500
cam_mode cockpit
end
collision "shuttle1" as "hero"
procedure "P1a"
wait_until number_of "aair"<4
wait_until flag 11 set
create "lfighter"
position 100 -3700 -17000 relative toxz "shuttle1"
towards "hero"
armed_with "PLASMA BOLT 1" rate 16
task
do
goto 35795.3 -1500 33421.8
shoot "hero"
goto 31381.1 -4900 39794.2
goto 27251.1 -1100 39144.8
shoot "hero"
goto 27506.5 -2800 35668.7
forever
end
clear_flag 11
set_flag 12
end_procedure terminate after 3 loops
procedure "P1b"
wait_until number_of "aair"<4
wait_until flag 12 set
create "lfighter"
position 500 -3500 -17000 relative toxz "shuttle1"
towards "hero"
armed_with "PLASMA BOLT 3" rate 132
task
do
goto 27506.5 -1102.94 35668.7
goto 27251.1 -2811.08 39144.8
shoot "shuttle1"
goto 31381.1 -1453.35 39794.2
shoot "hero"
goto 35795.3 -4969.24 33421.8
shoot "shuttle1"
until "shuttle1" destroyed
end
clear_flag 12
set_flag 13
end_procedure terminate after 3 loops
procedure "P1c"
wait_until number_of "aair"<4
wait_until flag 13 set
create "lfighter"
position 800 -3700 -17000 relative toxz "shuttle1"
towards "hero"
armed_with "PLASMA BOLT 1" rate 132
task
do
goto 35795.3 -1500 33421.8
shoot "shuttle1"
goto 31381.1 -4900 39794.2
shoot "hero" bomb
goto 27251.1 -1100 39144.8
shoot "shuttle1"
goto 27506.5 -2800 35668.7
until "shuttle1" destroyed
end
clear_flag 13
set_flag 14
end_procedure terminate after 3 loops
procedure "P1d"
wait_until number_of "aair"<4
wait_until flag 14 set
create "lfighter"
position 500 -4200 -17500 relative toxz "shuttle1"
towards "hero"
armed_with "PLASMA BOLT 1" rate 16
task
do
goto 27506.5 -1102.94 35668.7
shoot "hero"
goto 27251.1 -2811.08 39144.8
shoot "hero"
goto 31381.1 -1453.35 39794.2
shoot "hero"
goto 35795.3 -4969.24 33421.8
forever
end
clear_flag 14
set_flag 11
pause 100
end_procedure terminate after 3 loops
wait_until proc "P1a" terminated
wait_until proc "P1b" terminated
wait_until proc "P1c" terminated
wait_until proc "P1d" terminated
wait_until number_of "aair"=0
set_inert "left"
phasemessage 91 60
hud off
camera
attached_to "hero"
position 600 -300 -600
pointing_at "hero"
dolly 1
pause 40
;-------------------------------------------------------
;PHASE 2
;-------------------------------------------------------
phasestart
clear_flag all
phasemessage 40 60
set_inert "shuttle1"
create "helicopter"
label "P2heli"
position 0 -150 0 relative to "replen2"
forward -0.5 0 -0.8 up 0 1 0
armed_with "PURPLE LASER" rate 2
secondary_armed_with "GUIDED MISSILE" rate 64 rounds 20
switch_hero "P2heli"
task
wait_until flag 0 set
playercontrols
break_task_if flag 10 set
; stop
position 0 -150 0 relative to "replen2"
end
camera_task
hud off
cam_pos 600 -200 -600 attached_to "hero"
cam_focus "hero"
dolly 0
set_flag 0
cam_goto -600 -200 -600
wait_until distance_between "hero" and "replen2" > 500
cam_mode cockpit
end
pause 20
kill group "aair"
collision "shuttle2" as "hero"
camera last cockpit
mission_critical "Sshuttle"
create "atank"
label "P2ta"
position 47700 on ground 59580
towards "hero"
armed_with "RED LASER" rate 1
task
do
goto 40530 on ground 58980
goto 40269.4 on ground 38447.8
shoot
pause 2
shoot bomb
goto 40248.5 on ground 27617.5
shoot "Sshuttle"
pause 2
shoot "Sshuttle"
pause 2
shoot "Sshuttle"
pause 2
shoot "Sshuttle"
goto 41286.4 on ground 30292.3
shoot "Sshuttle"
pause 2
shoot "Sshuttle"
pause 2
shoot "Sshuttle"
pause 2
shoot "Sshuttle"
goto 40900 on ground 33110
shoot
pause 2
shoot
forever
end
create "atank"
label "P2tb"
position 45700 on ground 59580
towards "hero"
armed_with "RED LASER" rate 1
task
do
goto 40530 on ground 58980
goto 40269.4 on ground 38447.8
shoot bomb
pause 2
shoot bomb
goto 40248.5 on ground 27617.5
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
goto 41286.4 on ground 30292.3
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
goto 40900 on ground 33110
shoot bomb
pause 2
shoot bomb
forever
end
create "atank"
label "P2tc"
position 43700 on ground 59580
towards "hero"
armed_with "RED LASER" rate 1
task
do
goto 40530 on ground 58980
goto 40269.4 on ground 38447.8
shoot bomb
pause 2
shoot bomb
goto 40248.5 on ground 27617.5
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
goto 41286.4 on ground 30292.3
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
goto 40900 on ground 33110
shoot bomb
pause 2
shoot bomb
forever
end
create "atank"
label "P2td"
position 41700 on ground 59580
towards "hero"
armed_with "RED LASER" rate 1
task
do
goto 40530 on ground 58980
goto 40269.4 on ground 38447.8
shoot bomb
pause 2
shoot bomb
goto 40248.5 on ground 27617.5
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
goto 41286.4 on ground 30292.3
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
pause 2
shoot "Sshuttle" bomb
goto 40900 on ground 33110
shoot bomb
pause 2
shoot bomb
forever
end
create "hfighter"
position 17000 -3500 0 relative to "P2ta"
towards "hero"
armed_with "PLASMA BOLT 3" rate 8
task
do
patrol
point 0 -3200 0 relative to "P2ta"
break_task_if distance_between me and "hero" < 11000
shoot "hero" bomb
until "P2ta" destroyed
attack "hero"
end
create "hfighter"
position -17000 -3500 0 relative to "P2tb"
towards "hero"
armed_with "PLASMA BOLT 3" rate 8
task
do
patrol
point 0 -3200 0 relative to "P2tb"
point 0 -3200 1000 relative to "P2tb"
break_task_if distance_between me and "hero" < 11000
shoot "hero" bomb
until "P2tb" destroyed
attack "hero"
end
create "hfighter"
position 0 -3500 17000 relative to "P2td"
towards "hero"
armed_with "PLASMA BOLT 3" rate 8
task
do
patrol
point 0 -3200 0 relative to "P2td"
point 1000 -3200 0 relative to "P2td"
break_task_if distance_between me and "hero" < 11000
shoot "hero" bomb
until "P2td" destroyed
attack "hero"
end
procedure "P2a"
wait_until number_of "aair"<2
create "lfighter"
position 500 -3300 15000 relative toxz "hero"
towards "hero"
armed_with "RED LASER" rate 3
task
attack "hero"
end
pause 150
end_procedure terminate after 8 loops
wait_until distance_between "hero" and 35021 -122 20963 > 2000
camera cockpit
procedure "P2b"
set_waypoint nearest "aland"
end_procedure
wait_until number_of "aland"=0
end_procedure "P2b"
clear_waypoint
wait_until number_of "fighters"=0
wait_until number_of "aair"=0
set_inert "P2heli"
end_procedure "P2a"
#=========================
#=======take off shuttle 1
set_flag 10
hud off
camera
position 31080 -3200 39790
pointing_at "shuttle1"
dolly 1
set_operate "shuttle1" "brocket"
setsfx "shuttle1" on
pause 50
set_task "shuttle1"
goto 30852 -19000 38089
end
mission_uncritical "shuttle1"
pause 250
camera
position 37918.1 -444 38493
pointing_at 31184.3 -1500 38026
dolly 0
pause 250
phasemessage 91 60
pause 50
kill "shuttle1"
;-------------------------------------------------------
;PHASE 3
;-------------------------------------------------------
phasestart
clear_flag all
phasemessage 41 60
set_volatile "shuttle2"
switch_hero "laser1"
task
wait_until flag 0 set
playercontrols
end
hud off
camera
attached_to "hero"
position 600 -300 -600
pointing_at "hero"
dolly 0
pause 40
set_flag 0
camera cockpit
;-----------
;-----wave 1
procedure "P3a"
create "lfighter"
position 33598.5 -975 43475.9
towards "hero"
armed_with "RED LASER" rate 4
task
goto 35055.6 -2355 43383.3
shoot "hero"
goto 40346.4 -815 42596.3
shoot "hero"
goto 42402.2 -2575 42465.6
do
goto 46530 -1820 45260
shoot "shuttle2"
goto 51849.3 -4935 48428.7
goto 57336 -2385 54081.6
shoot "shuttle2"
goto 47118.4 -2545 53544.1
forever
end
pause 50
end_procedure terminate after 4 loops
wait_until proc "P3a" terminated
wait_until number_of "aair"<=1
;------------------------------------
;-----------I hope you dont see these
create "atank"
position 40521.5 on ground 25356.6
towards "hero"
armed_with "RED LASER" rate 1
task
goto 41084 on ground 34339
goto 40971 on ground 45640
goto 49070 on ground 45852
end
create "atank"
position 40904 on ground 59258
towards "hero"
armed_with "RED LASER" rate 4
task
goto 41360 on ground 45680
goto 47981 on ground 47362
stop
do
shoot "shuttle2"
until "shuttle2" destroyed
end
;-----------
;-----wave 2
procedure "P3a"
create "lfighter"
position 45125.4 -1345.37 58910.3
towards "hero"
armed_with "RED LASER" rate 8
task
goto 49272.1 -1345.33 56080.5
goto 47864.1 -3145.14 47779.8
shoot "hero"
attack "hero"
end
pause 100
end_procedure terminate after 4 loops
procedure "P3b"
create "lfighter"
position 43834.2 -1275 58445.7
towards "hero"
armed_with "RED LASER" rate 8
task
goto 40922.4 -1275 58057.9
shoot "hero"
attack "hero"
end
pause 100
end_procedure terminate after 4 loops
wait_until proc "P3a" terminated
wait_until proc "P3b" terminated
wait_until number_of "aair"=0
;-----------
;-----wave 3
procedure "P3a"
create "lfighter"
position 43636.9 -315 35543.6
towards "hero"
armed_with "RED LASER" rate 4
task
goto 43653.4 -1375 36203.3
goto 43180.9 -2315 40081.3
shoot "hero"
attack "hero"
end
pause 50
end_procedure terminate after 4 loops
wait_until proc "P3a" terminated
wait_until number_of "aair"<=1
;-----------
;-----wave 4
procedure "P3a"
create "lfighter"
position 51279.6 -645 42720.5
towards "shuttle2"
armed_with "RED LASER" rate 4
task
do
goto 53733.6 -1285 47461.4
shoot "shuttle2"
goto 55690.5 -2045 54245.7
goto 50195.2 -1685 54767.3
goto 45946.6 -1785 46847.5
shoot "hero"
forever
end
pause 50
end_procedure terminate after 4 loops
wait_until proc "P3a" terminated
wait_until number_of "aair"<=3
create "bomber"
label "P3bomb"
position 26030.4 -3994 43725.3
towards "shuttle2"
armed_with "ENERGY 1" rate 1
task
do
goto 38402.5 -4104 47904.7
shoot
goto 43687.3 -4104 53981.7
shoot
goto 54038.4 -4254 50721.1
shoot
goto 53934.9 -4254 44352.3
shoot
goto 48042.8 -4254 44208.1
shoot
forever
end
wait_until number_of "bombers"=0
phasemessage 91 60
hud off
camera
attached_to "hero"
position 600 -300 -600
pointing_at "hero"
dolly 1
pause 40
;-------------------------------------------------------
;PHASE 4
;-------------------------------------------------------
phasestart
clear_flag all
phasemessage 92 60
playcdfast
settimer 1800
set_inert "shuttle2"
set_inert "pad2"
mission_uncritical "shuttle2"
set_flag 9
create "lfighter-pu"
label "P4Aonfire"
inert
position 51267.4 -901.501 49713.8
task
bepod
set_flag 5
take_to 100 0 800 relative to "vab"
set_flag 3
end
create "lfighter-pu"
label "P4Bonfire"
inert
position 52869.5 -400 48877
task
bepod
set_flag 4
take_to 0 0 1000 relative to "vab"
set_flag 2
end
set_operate "P4Aonfire" "bflames"
set_operate "P4Bonfire" "bflames"
procedure "P4a"
wait_until timer=0
set_task "hero"
pause 1000
end
clear_flag 9
set_volatile "P4Aonfire"
explode "P4Aonfire"
set_volatile "P4Bonfire"
explode "P4Bonfire"
set_volatile "pad2"
explode "pad2"
pause 50
set_volatile "shuttle2"
explode "shuttle2"
set_flag 1
do_procedure_until flag 1 set
procedure "P4b"
wait_until number_of "aair" <4
create "lfighter"
armed_with "RED LASER" rate 8
position 500 -5000 17000 relative toxz "hero"
task
set_vel 2
attack "hero"
break_task_if vel < 1
explode
end
pause 50
create "lfighter"
armed_with "RED LASER" rate 8
position 500 -5000 -17000 relative toxz "hero"
task
set_vel 2
attack "hero"
break_task_if vel < 1
explode
end
pause 50
end_procedure
set_volatile "P2heli"
switch_hero "P2heli"
task
secondary_armed_with "FOAM" rate 4 rounds 99
wait_until flag 0 set
playercontrols
break_task_if distance_between "hero" and "P4Bonfire" <1200
and flag 1 set
playercontrolswithrope from "P4Bonfire" to 100 0 800 relative to"vab"
goto 40450 -1150 26575
playercontrols
break_task_if distance_between "hero" and "P4Aonfire" <1200
playercontrolswithrope from "P4Aonfire" to 0 0 1000 relative to "vab"
goto 40450 -1150 26575
playercontrols
break_task_if flag 10 set
stop
position 0 -150 0 relative to "replen2"
end
camera_task
hud off
cam_pos 600 -300 -600 attached_to "hero"
cam_focus "hero"
dolly 1
cam_goto -600 -200 -600
set_flag 0
wait_until distance_between "hero" and "replen2" > 500 or timer = 0
cam_mode cockpit
wait_until timer = 0
cam_pos 1000 0 -5200 relative to "shuttle2"
cam_focus "shuttle2"
dolly 0
pause 50
phasemessage 97 200
mission_fail 200
end
set_waypoint "P4Aonfire"
wait_until distance_between "hero" and waypoint <5000
phasemessage 42 60
wait_until "P4Aonfire" no operate
setsfx "P4Aonfire" off
set_waypoint "P4Bonfire"
wait_until "P4Aonfire" no operate
and
"P4Bonfire" no operate
setsfx "P4Bonfire" off
wait_until flag 9 set
end_procedure "P4a"
settimer 0
set_flag 1
phasemessage 43 60
camera_task
wait_until distance_between "hero" and "P4Bonfire" <1200
cam_pos 0 -100 -2000 attached_to "P4Bonfire"
cam_focus "hero"
hud off
pause 20
cam_goto 1000 -100 0
wait_until flag 4 set
cam_mode cockpit
wait_until distance_between "hero" and waypoint <8000
cam_pos 0 500 -1000 attached_to "hero"
cam_focus "hero"
hud off
wait_until distance_between "hero" and waypoint <2000
cam_pos waypoint
cam_focus "hero"
dolly 1
dollyspeed 0.1%
wait_until flag 2 set
cam_mode cockpit
;---------------
wait_until distance_between "hero" and "P4Aonfire" <1200
cam_pos 0 -100 -2000 attached_to "P4Aonfire"
cam_focus "hero"
hud off
pause 20
cam_goto 1000 -100 0
wait_until flag 5 set
cam_mode cockpit
wait_until distance_between "hero" and waypoint <8000
cam_pos 0 0 -1000 attached_to "hero"
cam_focus "vab"
hud off
wait_until distance_between "hero" and waypoint <2000
cam_pos waypoint
cam_focus "hero"
wait_until flag 3 set
cam_mode cockpit
end
set_waypoint "P4Bonfire"
wait_until flag 4 set
phasemessage 44 60
wait_until flag 2 set
phasemessage 45 60
set_waypoint "P4Aonfire"
wait_until flag 5 set
phasemessage 44 60
wait_until flag 3 set
phasemessage 40 60
end_procedure "P4b"
pause 1
clear_waypoint
wait_until number_of"aair"=0
set_inert "P2heli"
pause 50
#=========================
#=======take off shuttle 2
set_flag 10
camera_task
hud off
cam_pos 100 -2000 100 relative to "shuttle2"
cam_focus 0 0 0 relative to "shuttle2"
dolly 0
pause 250
cam_pos 52080 -2115 46000
cam_focus 52080 -2115 50525
dolly 1
end
set_operate "shuttle2" "brocket"
setsfx "shuttle2" on
pause 50
set_task "shuttle2"
goto 52079 -19000 50399
end
pause 600
phasemessage 91 60
pause 200
kill "shuttle2"
;-------------------------------------------------------
;PHASE 5
;-------------------------------------------------------
phasestart
clear_flag all
phasemessage 46 60
playcdslow
create "vtol"
label "P5plane"
position 30000 -3000 30000
armed_with "PURPLE LASER" rate 2
secondary_armed_with "GUIDED MISSILE" rate 64 rounds 20
switch_hero "P5plane"
task
wait_until flag 0 set
playercontrols
end
pause 20
hud off
camera
attached_to "hero"
position 600 -300 -600
pointing_at "hero"
dolly 0
pause 40
set_flag 0
camera cockpit
kill group "onfire"
auto_aim "hero"
;---------------------------
procedure "P5a"
wait_until number_of "aair" <7
create "lfighter"
armed_with "RED LASER" rate 0
position 500 -3200 17000 relative toxz "hero"
task
set_vel 3
do
goto 1000 500 1000 relative to "hero"
shoot "hero"
shoot "hero"
shoot "hero"
shoot "hero"
goto 8000 500 1000 relative to "hero"
shoot "hero"
shoot "hero"
shoot "hero"
shoot "hero"
goto 1000 -500 -8000 relative to "hero"
shoot "hero"
shoot "hero"
shoot "hero"
shoot "hero"
goto 1000 600 1000 relative to "hero"
shoot "hero"
shoot "hero"
shoot "hero"
shoot "hero"
until vel < 2
explode
end
pause 75
end_procedure terminate after 7 loops
procedure "P5b"
create "lfighter"
armed_with "RED LASER" rate 4
position 500 -3200 -17000 relative toxz "hero"
task
set_vel 3
attack "hero"
break_task_if vel < 2
explode
end
pause 75
end_procedure terminate after 4 loops
wait_until proc "P5a" terminated
wait_until proc "P5b" terminated
wait_until number_of "aair" <= 2
procedure "P5a"
create "lfighter"
armed_with "PLASMA BOLT 2" rate 4
position 23051.7 -4085 -5910.5
task
goto 34259.5 -4085 19101.1
shoot "hero"
goto 35885.7 -2885 34910.4
shoot "hero"
goto 40370 -2885 48610.2
goto 46737.4 -4245 57062.6
shoot "hero"
goto 58249.4 -4245 70880.5
kill
end
pause 75
end_procedure terminate after 6 loops
wait_until proc "P5a" terminated
wait_until number_of "aair" = 0
phasemessage 91 60
hud off
camera
attached_to "hero"
position 600 -300 -600
pointing_at "hero"
dolly 1
pause 40
;-------------------------------------------------------
;PHASE 6
;-------------------------------------------------------
phasestart
clear_flag all
phasemessage 47 60
set_volatile "shuttle3"
switch_hero "laser2"
task
rotate_gun towards "shuttle3"
wait_until flag 0 set
playercontrols
end
hud off
camera
attached_to "hero"
position 600 -300 -600
pointing_at "hero"
dolly 0
pause 40
set_flag 0
camera cockpit
kill "P5plane"
collision "shuttle3" as "hero"
;--------------
;-------wave 1
procedure "P6a"
create "hfighter"
position 35095.8 -1562.3 26315.3
towards "hero"
armed_with "PLASMA BOLT 2" rate 4
task
goto 32809.7 -2552.3 28376.8
goto 29527.4 -2912.3 33434.4
shoot "hero"
do
goto 28271.3 -2062.3 45836.1
goto 27380.7 -2062.3 52658.2
shoot "shuttle3"
goto 32351.4 -3422.3 54252
goto 32955.2 -1552.3 45363.2
shoot "shuttle3"
forever
end
pause 50
end_procedure terminate after 4 loops
wait_until proc "P6a" terminated
wait_until number_of "fighters" <= 2
;--------------
;-------wave 2
procedure "P6a"
create "lfighter"
position 40455.4 -1262.3 43839.8
towards "hero"
armed_with "RED LASER" rate 4
task
goto 40042.2 -1952.3 45527.3
shoot "hero"
goto 35173.2 -1952.3 47502.8
shoot "hero"
goto "shuttle3"
explode
hurt "shuttle3" 60
end
pause 50
end_procedure terminate after 4 loops
wait_until proc "P6a" terminated
wait_until number_of "aair" <= 2
;--------------
;-------wave 3
procedure "P6a"
create "lfighter"
position 11922.4 -1762.3 45527.1
towards "hero"
armed_with "RED LASER" rate 4
task
goto 13462.2 -3662.3 45501.4
goto 23527.3 -1662.3 44523.2
goto 28342.2 -1662.3 43582.7
shoot "hero"
attack "hero"
break_task_if vel<2
explode
end
pause 50
end_procedure terminate after 4 loops
create "bomber"
position 28943.3 -2471.2 60077
towards "hero"
armed_with "ENERGY 1" rate 1
task
goto 27548.1 -3191.2 56046.1
do
goto 26236.8 -3191.2 53317.9
goto 26468.4 -3741.2 50738.3
shoot "pad3"
goto 28483.3 -3741.2 45713.9
goto 32385.6 -3741.2 43516.3
shoot "hero"
pause 1
shoot "pad3"
goto 33922.7 -3741.2 51204.1
forever
end
wait_until proc "P6a" terminated
wait_until number_of "aair" =0
wait_until number_of "bombers" =0
;--------------
;-------wave 4
procedure "P6a"
create "lfighter"
position 17000 -17000 0 relative toxz "shuttle3"
towards "hero"
task
goto "shuttle3"
explode
hurt "shuttle3" 60
end
pause 25
end_procedure terminate after 3 loops
wait_until proc "P6a" terminated
wait_until number_of "aair" <2
create "lbomber-nutter"
position -17000 -4000 0 relative toxz "shuttle3"
towards "hero"
task
goto "shuttle3"
explode
hurt "shuttle3" 60
end
create "lbomber-nutter"
position 17000 -4000 0 relative toxz "shuttle3"
towards "hero"
task
goto "shuttle3"
explode
hurt "shuttle3" 60
end
wait_until number_of "aliens" <=1
;--------------
;-------wave 5
create "facraft"
label "P6leader"
position 40519.1 on ground 56069.2
towards "hero"
armed_with "RED LASER" rate 4
task
goto 40673.7 on ground 52722.8
goto 40730.6 on ground 48370.4
goto 35102.2 on ground 48867.7
goto 33742.9 on ground 45543.5
goto 28312.5 on ground 44147.3
stop
do
shoot "shuttle3"
until "shuttle3" destroyed
end
pause 80
procedure "P6a"
create "facraft"
position 40519.1 on ground 56069.2
towards "hero"
armed_with "RED LASER" rate 4
task
goto 40673.7 on ground 52722.8
goto 40730.6 on ground 48370.4
goto 35102.2 on ground 48867.7
goto 33742.9 on ground 45543.5
goto 28312.5 on ground 44147.3
break_task_if distance_between "P6leader" and 28312.5 -227 44147.3 < 1200
or "P6leader" destroyed
stop
do
shoot "shuttle3"
until "shuttle3" destroyed
end
pause 80
end_procedure terminate after 2 loops
procedure "P6b"
create "lfighter"
position 35095.8 -1562.3 26315.3
towards "hero"
armed_with "RED LASER" rate 4
task
goto 32809.7 -2552.3 28376.8
goto 29527.4 -2912.3 33434.4
shoot "hero"
goto 28271.3 -2062.3 45836.1
shoot "hero"
attack "hero"
end
pause 50
end_procedure terminate after 4 loops
wait_until proc "P6a" terminated
wait_until proc "P6b" terminated
wait_until number_of "fighters" <= 2
wait_until number_of "aland" =0
phasemessage 91 60
hud off
camera
attached_to "hero"
position 600 -300 -600
pointing_at "hero"
dolly 1
pause 40
;-------------------------------------------------------
;PHASE 7
;-------------------------------------------------------
phasestart
clear_flag all
phasemessage 48 60
kill "Sshuttle"
create "shuttle"
label "vabshuttle"
position 40606 -1300 23855
forward 0 0 -1 up 0 1 0
mission_critical
inert
setsfx "vabshuttle" off
create "hovertank"
label "P7hero"
position 30474.1 -1965.5 22286.2
towards "vab"
armed_with "GREEN LASER" rate 2
secondary_armed_with "GUIDED MISSILE" rate 24 rounds 20
switch_hero "P7hero"
task
wait_until flag 0 set
playercontrols
end
camera_task
hud off
cam_pos 600 -300 -600 attached_to "hero"
cam_focus "hero"
dolly 1
wait_until "vabshuttle" destroyed
cam_pos 1000 0 5200 relative to "vabshuttle"
cam_focus "vabshuttle"
dolly 1
pause 50
phasemessage 97 200
mission_fail 200
end
pause 20
camera cockpit
set_flag 0
;---------------------------
create "atank"
label "P7ta"
position 41544.6 on ground 30481.6
towards "vab"
armed_with "RED LASER" rate 4
task
do
shoot "vabshuttle"
forever
end
create "atank"
label "P7tb"
position 40848.3 on ground 31762.4
towards "vab"
armed_with "RED LASER" rate 4
task
do
shoot "vabshuttle"
forever
end
create "atank"
label "P7tc"
position 39950.9 on ground 29958.8
towards "vab"
armed_with "RED LASER" rate 4
task
do
shoot "vabshuttle"
forever
end
set_waypoint "P7ta"
wait_until distance_between "P7ta" and "hero" <8000
#=============================
procedure "P7a"
create "skimmer"
position 34265.4 on ground 36267.1
towards "vab"
armed_with "PLASMA BOLT 1" rate 1
task
goto 38462.5 -567.49 37617.2
goto 40702.7 -567.49 36786.4
do
goto 40064.8 -567.49 34428.4
shoot "hero"
goto 39976.6 -567.49 32050.1
goto 39982.7 -567.49 29518.1
shoot "hero"
goto 40055.9 -567.49 28794.9
shoot "hero"
shoot "vabshuttle"
pause 2
shoot "vabshuttle"
pause 2
shoot "vabshuttle"
pause 2
shoot "vabshuttle"
pause 2
shoot "vabshuttle"
pause 2
shoot "vabshuttle"
pause 2
shoot "vabshuttle"
goto 40604.3 -567.49 27123.4
shoot "hero"
goto 40984.1 -567.49 36635.9
shoot "hero"
until vel < 5
explode
end
pause 75
end_procedure terminate after 4 loops
wait_until "P7ta" destroyed
set_waypoint "P7tb"
wait_until "P7tb" destroyed
set_waypoint "P7tc"
wait_until "P7tc" destroyed
clear_waypoint
set_volatile "vab"
pause 100
set_volatile "vabshuttle"
wait_until proc "P7a" terminated
wait_until number_of "aland"<=2
#=============================
procedure "P7a"
create "skimmer"
position 40620.1 on ground 57421.8
towards "hero"
armed_with "RED LASER" rate 2
task
goto 40685.7 on ground 52779.9
goto 40605.4 on ground 48360.6
do
goto 40502.2 on ground 42681.6
shoot "hero"
pause 2
shoot "hero"
goto 40407.8 on ground 37482.5
shoot "hero"
pause 2
shoot "hero"
goto 40574.9 on ground 32918.7
goto 40786.5 on ground 29154.2
shoot "vabshuttle"
pause 2
shoot "vabshuttle"
until "vabshuttle" destroyed
end
pause 75
end_procedure terminate after 4 loops
pause 200
;--------------
;------surprise
create "atank"
position 50667.3 on ground 23944.9
towards "vab"
armed_with "RED LASER" rate 10
task
goto 45330.3 on ground 24417.4
stop
do
shoot "vab"
until "vab" destroyed
end
create "atank"
position 34307.6 on ground 31784.3
towards "vab"
armed_with "RED LASER" rate 12
task
goto 37044.5 on ground 29264.9
goto 40549.5 on ground 28411.1
stop
do
shoot "vab"
until "vab" destroyed
do
shoot "vabshuttle"
forever
end
wait_until proc "P7a" terminated
wait_until number_of "aland" <=2
procedure "P7a"
create "skimmer"
position 40620.1 on ground 57421.8
towards "hero"
armed_with "RED LASER" rate 2
task
goto 40685.7 on ground 52779.9
goto 40605.4 on ground 48360.6
do
goto 40502.2 on ground 42681.6
shoot "hero"
pause 2
shoot "hero"
goto 40407.8 on ground 37482.5
shoot "hero"
pause 2
shoot "hero"
goto 40574.9 on ground 32918.7
goto 40786.5 on ground 29154.2
shoot "vabshuttle"
pause 2
shoot "vabshuttle"
until "vabshuttle" destroyed
end
pause 75
end_procedure terminate after 4 loops
phasemessage 48 60
wait_until proc "P7a" terminated
wait_until number_of "aliens"=0
#=============================
phasemessage 91 60
hud off
camera
attached_to "hero"
position 600 -300 -600
pointing_at "hero"
dolly 1
pause 40
;-------------------------------------------------------
;PHASE 8
;-------------------------------------------------------
phasestart
clear_flag all
phasemessage 10 60
playcdfast
set_volatile "P2heli"
switch_hero "P2heli"
task
secondary_armed_with "GUIDED MISSILE" rate 64 rounds 20
wait_until flag 0 set
playercontrols
break_task_if flag 10 set
stop
kill
end
camera_task
hud off
cam_pos 600 -200 -600 attached_to "hero"
cam_focus "hero"
dolly 0
set_flag 0
cam_goto -600 -200 -600
wait_until distance_between "hero" and "replen2" > 500
cam_mode cockpit
end
collision "shuttle3" as "hero"
set_inert "vab"
set_inert "vabshuttle"
set_volatile "shuttle3"
kill "P7hero"
#====================
set_flag 11
procedure "P8a"
wait_until flag 11 set
wait_until number_of "aair"<2
create "lfighter"
position 17000 -3200 500 relative toxz "hero"
towards "hero"
armed_with "PLASMA BOLT 1" rate 12
task
set_vel 2
attack "hero"
break_task_if vel < 1
explode
end
clear_flag 11
set_flag 14
pause 50
end_procedure terminate after 3 loops
procedure "P8b"
wait_until number_of "fighters"<1
create "hfighter"
position -17000 -3200 500 relative toxz "hero"
towards "hero"
armed_with "PLASMA BOLT 1" rate 16
task
set_vel 2
attack "hero"
break_task_if vel < 1
explode
end
end_procedure terminate after 3 loops
procedure "P8c"
wait_until number_of "bombers"<1
create "lbomber"
position 500 -3200 17000 relative toxz "hero"
towards "hero"
armed_with "PLASMA BOLT 1" rate 16
task
set_vel 2
attack "hero"
break_task_if vel < 1
explode
end
end_procedure terminate after 3 loops
procedure "P8d"
wait_until flag 14 set
wait_until number_of "aair"<2
create "lfighter"
position 500 -3200 -17000 relative toxz "hero"
towards "hero"
armed_with "GUIDED MISSILE" rate 32
task
set_vel 2
attack "hero"
break_task_if vel < 1
explode
end
clear_flag 14
set_flag 11
pause 50
end_procedure terminate after 3 loops
wait_until proc "P8a" terminated
wait_until proc "P8b" terminated
wait_until proc "P8c" terminated
wait_until proc "P8d" terminated
wait_until number_of "aliens"=0
#======================================
#====convoy
phasemessage 6 60
procedure "P8a"
create "skimmer"
position 41083.7 -582.035 59382.8
towards "hero"
armed_with "PLASMA BOLT 1" rate 2
task
goto 41339.3 -582.035 56518.8
goto 40341.2 -582.035 52908.3
shoot "hero"
goto 41276.1 -582.035 48394.2
goto 40199.3 -582.035 43778.1
shoot "hero"
goto 41461.5 -582.035 38061.9
goto 36531.8 -582.035 37514.4
shoot "hero"
goto 32225.3 -582.035 32888.3
goto 28519.7 -582.035 32795.5
do
goto 25203.3 -582.035 37795.6
shoot "shuttle3"
goto 26230.4 -582.035 42753.5
shoot "shuttle3"
goto 29929.9 -582.035 44291.9
shoot "shuttle3"
forever
end
pause 75
end_procedure terminate after 8 loops
wait_until proc "P8a" terminated
wait_until number_of "aliens"<=1
#======================================
create "facraft"
label "P8leader"
position 40519.1 on ground 56069.2
towards "hero"
armed_with "RED LASER" rate 16
task
goto 40673.7 on ground 52722.8
goto 40730.6 on ground 48370.4
goto 35102.2 on ground 48867.7
goto 33742.9 on ground 45543.5
goto 28312.5 on ground 44147.3
stop
do
shoot "shuttle3"
until "shuttle3" destroyed
end
pause 80
procedure "P8a"
create "facraft"
position 40519.1 on ground 56069.2
towards "hero"
armed_with "RED LASER" rate 16
task
goto 40673.7 on ground 52722.8
goto 40730.6 on ground 48370.4
goto 35102.2 on ground 48867.7
goto 33742.9 on ground 45543.5
goto 28312.5 on ground 44147.3
break_task_if distance_between "P8leader" and 28312.5 -227 44147.3 < 1200
or "P8leader" destroyed
stop
do
shoot "shuttle3"
until "shuttle3" destroyed
end
pause 80
end_procedure terminate after 2 loops
wait_until proc "P8a" terminated
phasemessage 50 60
;---------------------------------
procedure "P8a"
create "lfighter"
position 500 -3200 17000 relative toxz "shuttle3"
towards "shuttle3"
armed_with "PLASMA BOLT 1" rate 12
task
do
goto 24530.7 -2747.99 45675
goto 26198 -1917.99 51524.4
goto 33986.6 -3477.99 56935.7
shoot "shuttle3"
goto 34358.2 -3477.99 49754.3
forever
end
pause 100
end_procedure terminate after 4 loops
wait_until proc "P8a" terminated
wait_until number_of "aliens"<=2
;---------------------------------
;---------------------------------
procedure "P8a"
create "lfighter"
position 17000 -17000 0 relative toxz "shuttle3"
towards "shuttle3"
task
goto "shuttle3"
explode
hurt "shuttle3" 20
end
pause 25
end_procedure terminate after 3 loops
wait_until number_of "aliens" <=2
procedure "P8b"
create "lfighter"
position -17000 -17000 0 relative toxz "shuttle3"
towards "shuttle3"
task
goto "shuttle3"
explode
hurt "shuttle3" 20
end
pause 25
end_procedure terminate after 3 loops
wait_until proc "P8a" terminated
wait_until proc "P8b" terminated
wait_until number_of "aliens"=0
pause 50
#=========================
#=======take off shuttle 3
set_flag 10
camera_task
hud off
cam_pos 500 2000 0 local to "shuttle3"
cam_focus "shuttle3"
dolly 0
pause 250
cam_pos 29985 -4560 47200
cam_focus 31440 -2790 48850
dolly 1
dollyspeed 1%
end
set_operate "shuttle3" "brocket"
setsfx "shuttle3" on
pause 50
set_task "shuttle3"
goto 30280 -19000 48756
end
pause 500
phasemessage 91 60
pause 100
kill "shuttle3"
;-------------------------------------------------------
;PHASE 9
;-------------------------------------------------------
phasestart
clear_flag all
phasemessage 7 60
playcdslow
set_volatile "vab"
set_volatile "vabshuttle"
mission_uncritical "vabshuttle"
switch_hero "laser3"
task
wait_until flag 0 set
playercontrols
end
hud off
camera
attached_to "hero"
position 600 -300 -600
pointing_at "hero"
dolly 0
pause 40
set_flag 0
camera cockpit
;-------------------
;-------wave 1
procedure "P9a"
create "lfighter"
position 54742 -4257.15 5426.54
towards "hero"
armed_with "PLASMA BOLT 1" rate 4
task
goto 47273.1 -4257.15 9769.85
goto 40990.6 -4257.15 10265.2
shoot "hero"
goto 39819.6 -2417.15 15129.8
shoot
; goto 46620.8 -3747.15 19727.5
shoot
attack
break_task_if vel<2
explode
end
pause 25
end_procedure terminate after 6 loops
wait_until proc "P9a" terminated
and number_of "aliens"=0
procedure "P9a"
create "lfighter"
position 40357.9 -1255.55 27578.6
towards "hero"
armed_with "PLASMA BOLT 1" rate 4
task
goto 36671.1 -2515.55 27730.5
goto 35770.8 -2965.55 18269.5
attack "hero"
break_task_if vel<2
explode
end
pause 25
end_procedure terminate after 6 loops
procedure "P9b"
create "lfighter"
position 41448.8 -2185.55 28064
towards "hero"
armed_with "PLASMA BOLT 1" rate 4
task
goto 44526.1 -2185.55 27937.2
goto 46870.4 -2845.55 24107.4
goto 40139.9 -3755.55 16391.2
attack "hero"
break_task_if vel<2
explode
end
pause 25
end_procedure terminate after 6 loops
wait_until proc "P9a" terminated
wait_until proc "P9b" terminated
wait_until number_of "aliens"<=2
wait_until number_of_baddies < 22
procedure "P9a"
create "lbomber"
position 28953.1 -1385 8937.97
towards "hero"
armed_with "PLASMA BOLT 1" rate 4
task
goto 28953.1 -2065 8937.97
shoot
goto 34186.9 -2345 11913.6
shoot
goto 40016 -2345 16280.7
attack "hero"
break_task_if vel<2
explode
end
pause 75
end_procedure terminate after 4 loops
procedure "P9b"
create "lbomber"
position 29078.7 -1445 8352.19
towards "hero"
armed_with "PLASMA BOLT 1" rate 4
task
goto 30886.2 -2055 8651.65
shoot
goto 34172.7 -2275 11142.7
shoot
goto 36355.6 -2275 18304.8
attack
break_task_if vel<2
explode
end
pause 75
end_procedure terminate after 4 loops
wait_until proc "P9a" terminated
wait_until proc "P9b" terminated
and number_of "aliens" <=2
wait_until number_of_baddies < 22
procedure "P9a"
create "lfighter"
position 23600.9 -1105 11228.5
towards "hero"
armed_with "PLASMA BOLT 1" rate 4
task
goto 24888.6 -1965 13277.4
goto 29282.8 -2585 13338.7
goto 34036.2 -2685 14005.9
goto 37453.9 -3415 15555.9
attack
break_task_if vel<2
explode
end
pause 25
end_procedure terminate after 8 loops
wait_until proc "P9a" terminated
and number_of "aliens" <=2
phasemessage 51 60
create "bomber"
label "P9bomber"
position 40068 -4675 28937.6
towards "hero"
armed_with "ENERGY 1" rate 1
task
do
goto 37258.3 -4675 24512.5
shoot
pause 2
shoot
goto 38277.9 -4675 19348
goto 42499.2 -4675 14976.6
shoot
pause 2
shoot
goto 46044.5 -4675 19321.1
shoot
goto 48504.4 -4675 20701.8
shoot
pause 2
shoot
goto 45662.4 -4675 24171.7
shoot
goto 42884.5 -4675 26461.5
forever
end
create "lfighter"
position 17000 -1000 0 relative to "P9bomber"
towards "hero"
armed_with "PLASMA BOLT 1" rate 8
task
do
goto 0 -1000 0 relative to "P9bomber"
shoot
until "P9bomber" destroyed
attack "hero"
end
create "lfighter"
position -17000 -1000 0 relative to "P9bomber"
towards "hero"
armed_with "PLASMA BOLT 1" rate 8
task
do
goto 1000 -1000 0 relative to "P9bomber"
shoot
until "P9bomber" destroyed
attack "hero"
end
create "lfighter"
position 0 -1000 17000 relative to "P9bomber"
towards "hero"
armed_with "PLASMA BOLT 1" rate 8
task
do
goto -1000 -1000 0 relative to "P9bomber"
shoot
until "P9bomber" destroyed
attack "hero"
end
wait_until number_of "aliens" =0
#==================================
wait_until number_of_baddies < 22
procedure "P9a"
create "lfighter"
position 23600.9 -1105 11228.5
towards "hero"
armed_with "PLASMA BOLT 1" rate 4
task
goto 24888.6 -1965 13277.4
goto 29282.8 -2585 13338.7
goto 34036.2 -2685 14005.9
goto 37453.9 -3415 15555.9
attack "hero"
break_task_if vel<2
explode
end
pause 25
end_procedure terminate after 5 loops
create "bomber"
label "P9bomber2"
position 51666.1 -3835 6552.16
towards "hero"
armed_with "ENERGY 1" rate 1
task
do
goto 48173.3 -3835 13058.3
goto 46808.8 -4745 16844.2
shoot
goto 42010.1 -4745 22791.6
goto 35691.7 -4745 22998
shoot
goto 35476.4 -4745 19705.4
shoot
goto 38224.4 -4745 15152
forever
end
create "lfighter"
position 17000 -1000 0 relative to "P9bomber2"
towards "hero"
armed_with "PLASMA BOLT 1" rate 8
task
do
goto 0 -1000 0 relative to "P9bomber2"
shoot
until "P9bomber2" destroyed
attack "hero"
end
create "lfighter"
position -17000 -1000 0 relative to "P9bomber2"
towards "hero"
armed_with "PLASMA BOLT 1" rate 8
task
do
goto 1000 -1000 0 relative to "P9bomber2"
shoot
until "P9bomber2" destroyed
attack "hero"
end
create "lfighter"
position 0 -1000 17000 relative to "P9bomber2"
towards "hero"
armed_with "PLASMA BOLT 1" rate 8
task
do
goto -1000 -1000 0 relative to "P9bomber2"
shoot
until "P9bomber2" destroyed
attack "hero"
end
wait_until proc "P9a" terminated
wait_until number_of "aliens" =0
#==================================
wait_until number_of_baddies < 22
procedure "P9a"
create "lfighter"
position 54742 -4257.15 5426.54
towards "hero"
armed_with "PLASMA BOLT 1" rate 4
task
goto 47273.1 -4257.15 9769.85
goto 40990.6 -4257.15 10265.2
shoot "hero"
goto 39819.6 -2417.15 15129.8
attack "hero"
break_task_if vel<2
explode
end
pause 25
end_procedure terminate after 5 loops
create "bomber"
label "P9bomber3"
position 16882.4 -4745 16481.2
towards "hero"
armed_with "ENERGY 1" rate 1
task
do
goto 25826.7 -4745 19927.3
goto 33482.4 -4805 21499.8
goto 43172.4 -4805 19860.3
shoot
goto 44145.7 -4805 14398
shoot
goto 37800.7 -4805 10670.5
shoot
forever
end
create "lfighter"
position 17000 -1000 0 relative to "P9bomber3"
towards "hero"
armed_with "PLASMA BOLT 1" rate 8
task
do
goto 0 -1000 0 relative to "P9bomber3"
shoot
until "P9bomber3" destroyed
attack "hero"
end
create "lfighter"
position -17000 -1000 0 relative to "P9bomber3"
towards "hero"
armed_with "PLASMA BOLT 1" rate 8
task
do
goto 1000 -1000 0 relative to "P9bomber3"
shoot
until "P9bomber3" destroyed
attack "hero"
end
create "lfighter"
position 0 -1000 17000 relative to "P9bomber3"
towards "hero"
armed_with "PLASMA BOLT 1" rate 8
task
do
goto -1000 -1000 0 relative to "P9bomber3"
shoot
until "P9bomber3" destroyed
attack "hero"
end
wait_until proc "P9a" terminated
wait_until number_of "aliens" =0
phasemessage 91 60
hud off
camera
attached_to "hero"
position 600 -300 -600
pointing_at "hero"
dolly 1
pause 40
;-------------------------------------------------------
;PHASE 10
;-------------------------------------------------------
phasestart
clear_flag all
phasemessage 52 60
playcdfast
set_volatile "laser1"
set_volatile "laser2"
set_volatile "laser3"
set_volatile "shuttle4"
switch_hero "left"
task
wait_until flag 0 set
secondary_armed_with "DESIGNATOR" rate 128 rounds 40
playercontrols
break_task_if flag 10 set
stop
end
camera_task
hud off
cam_pos 600 -300 -600 attached_to "hero"
cam_focus "hero"
dolly 1
set_flag 0
cam_goto -600 -200 -600
wait_until distance_between "hero" and "replen1" > 500
cam_mode cockpit
wait_until "shuttle4" destroyed
cam_pos 1000 0 -5200 relative to "shuttle4"
cam_focus "shuttle4"
dolly 0
pause 50
phasemessage 97 200
mission_fail 200
end
;--------------------------
create "command"
label "P10big"
position 20315.3 -3375.96 59539.2
towards "hero"
armed_with "ENERGY 1" rate 0
inert
task
goto 24560.9 -3355.69 52524.1
shoot
goto 30298.4 -3315.84 45279.6
shoot
;==================================
do
goto 42672 -3420 43022.7
shoot "shuttle4"
pause 2
shoot "shuttle4"
pause 2
shoot "shuttle4"
goto 54162.3 -3268.56 39480.7
shoot "shuttle4"
pause 2
shoot "shuttle4"
goto 52095.1 -3265.87 30903
shoot "shuttle4"
pause 2
shoot "shuttle4"
pause 2
shoot "shuttle4"
goto 43206.9 -3267.89 31507.5
shoot "shuttle4"
pause 2
shoot "shuttle4"
pause 2
shoot "shuttle4"
forever
end
procedure "P10a"
wait_until number_of "fighters" <6
create "hfighter"
position 17000 0 500 relative to "P10big"
towards "hero"
armed_with "PLASMA BOLT 3" rate 0
task
do
goto 4000 500 4000 relative to "P10big"
break_task_if vel<2
shoot
shoot
goto 4000 1000 -4000 relative to "P10big"
break_task_if vel<2
shoot
shoot
shoot
goto -4000 500 -4000 relative to "P10big"
break_task_if vel<2
shoot
shoot
shoot
goto -4000 1000 4000 relative to "P10big"
break_task_if vel<2
shoot
shoot
shoot
until vel <2
explode
end
pause 90
end_procedure terminate after 12 loops
procedure "P10b"
wait_until number_of "aair" <6
create "lfighter"
position 500 0 17000 relative to "hero"
towards "hero"
armed_with "PLASMA BOLT 1" rate 12
task
set_vel 4
attack "hero"
break_task_if vel<2
explode
end
pause 90
end_procedure terminate after 12 loops
wait_until proc "P10a" terminated
wait_until proc "P10b" terminated
wait_until number_of "aliens"<=4
set_waypoint "P10big"
set_volatile "P10big"
phasemessage 33 60
wait_until "P10big" destroyed
clear_waypoint
;phasemessage 10 60
wait_until number_of "aliens"=0
#=========================
#=======take off shuttle 4
set_flag 10
camera_task
hud off
cam_pos 0 -2000 -1000 attached_to "shuttle4"
cam_focus "shuttle4"
dolly 0
pause 150
cam_goto 0 2500 500
pause 50
cam_pos 48350 -3480 36020
cam_focus 48285 -3480 34830
dolly 0
end
set_operate "shuttle4" "brocket"
setsfx "shuttle4" on
pause 50
set_task "shuttle4"
goto 47603 -19000 34739
end
pause 500
phasemessage 90 120
pause 100
kill "shuttle4"
hud on
;-------------------------------------------------------
;END OF SCENARIO
;-------------------------------------------------------