--betrayel
**************** CORE LEVEL CREATION STARTS **************
**************** CORE LEVEL CREATION STARTS **************
**************** CORE LEVEL CREATION STARTS **************

clear resources from last level

total memory cleanup
set activeworld 1
resetworld 1

load basic configuration

set landpatch land01_brokenpact22b
set landdeform off
set landheightmap heightmap_brokenpact22b

set minnewfogdistance 50000
set maxviewdistance 80000

**** RESOURCE PACK FILES START
if highmodeldetail
    load resourcepack http://internallink1/ql_highres_modelspack.cct slot1 highres_models
end if
if lowmodeldetail
    load resourcepack http://internallink1/ql_lowres_modelspack.cct slot1 lowres_models
end if

if highterraindetail
    load resourcepack http://internallink2/ql_highresterrain_brokenpact22b.cct slot2 highres_terrain
end if
if mediumterraindetail
    load resourcepack http://internallink2/ql_medresterrain_brokenpact22b.cct slot2 medres_terrain
end if
if lowterraindetail
    load resourcepack http://internallink2/ql_lowresterrain_brokenpact22b.cct slot2 lowres_terrain
end if

load texturepack http://internallink1/ql_mega_texturepack.cct slot3 textures

load resourcepack http://internallink1/ql_soundpack_blairgeneral.cct slot4 character_speech
load resourcepack http://internallink1/ql_soundpack_computer.cct slot5 computer_speech
load resourcepack http://internallink1/ql_soundpack_unitvoices.cct slot6 unit_speech

load resourcepack http://internallink1/ql_musicpack1.cct slot10 music_pack1
load resourcepack http://internallink1/ql_musicpack2.cct slot11 music_pack2
if nonwebversion
    load resourcepack http://internallink1/ql_musicpack3.cct slot12 music_pack3
end if

**** RESOURCE PACK FILES END

set weather rain
prepare landpatch

load basic variables

load basic models
load minimap

movemodel sky01 vector(0,0,30000)
movemodel sky02 vector(0,0,30000)

createmodel player17 resourcepod vector(70458,79888,4301) 2.0110 1.0000 [1]
createmodel player17 resourcepod vector(31214,74487,495) 69.7777 1.0000 [1]
createmodel player17 resourcepod vector(36595,51254,632) 128.8827 1.0000 [1]
createmodel player17 resourcepod vector(78915,38055,1453) -160.5695 1.0000 [1]
createmodel player17 resourcepod vector(100093,111892,1358) -38.4256 1.0000 [1]
createmodel player17 resourcepod vector(29684,104045,5602) 87.6995 1.0000 [1]
createmodel player17 resourcepod vector(83743,68320,4174) -136.3695 1.0000 [1]

if displayextramodels
    createmodel player16 s_tree01 vector(33686,24061,-996) 68.9237 6.5380 [3]
    createmodel player16 s_tree02 vector(10489,49846,-508) 61.8163 5.3714 [3]
    createmodel player16 s_tree02 vector(16873,74675,-508) 77.4700 7.0071 [3]
    createmodel player16 s_tree01 vector(52172,108134,-996) -112.6647 5.9086 [3]
    createmodel player16 s_tree02 vector(101124,105272,-508) -100.6909 6.7660 [3]
    createmodel player16 s_tree01 vector(106091,81974,-996) -154.4615 5.4034 [3]
    createmodel player16 s_tree02 vector(79761,37416,699238) 133.1586 6.0644 [3]
    createmodel player16 s_tree02 vector(103685,48031,-508) 157.5941 7.8178 [3]
end if

if displayextramodels and highterraindetail
    createmodel player16 s_tree02 vector(-5470,-18224,-508) 73.9301 10.2516 [3]
    createmodel player16 s_tree02 vector(-27309,29074,-508) 85.1457 10.1490 [3]
    createmodel player16 s_tree01 vector(-7107,145510,-996) -38.9167 11.3707 [3]
    createmodel player16 s_tree01 vector(132470,141533,-3052) -132.8118 12.5297 [3]
    createmodel player16 s_tree02 vector(171994,80011,-508) -144.9067 11.1639 [3]
    createmodel player16 s_tree01 vector(111145,-17298,-2474) 93.9497 12.4044 [3]
end if

positioncamera vector(4.39508e4,5.46573e4,-100.0000) vector(0.0000,0.0000,118.9864) vector(0.0000,-6.50000e4,1.32862e4) vector(0.0000,0.0000,0.0000)

clear startingunit
createmodel player1 epsilon vector(76814,74739,5561) -113.7330 1.0000 [1]

set maxplayers 1

**************** CORE LEVEL CREATION ENDS **************
**************** CORE LEVEL CREATION ENDS **************
**************** CORE LEVEL CREATION ENDS **************

if timer 1 >= 0
    settechlevel 1 1  [0,1,2,3,4,5,6,7,9,14]
    playercantarget 1 1 [1]
    playercantarget 1 4 [4]
    setai 1 4 0
    setunitstate 1 1 1 20 0 -1
    cleartasks 1 1
    set flag 1 to 1
    reset timer 1
end if

if gamedifficulty = easy
    setplayermoney 1 player 9000
    setmaxunits 1 player 30
end if

if gamedifficulty = medium
    setplayermoney 1 player 6000
    setmaxunits 1 player 25
end if

if gamedifficulty = hard
    setplayermoney 1 player 3000
    setmaxunits 1 player 20
end if

if flag 1 = 1
and timer 1 >= 10000
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01
    comsatline Computer: Recon-mode, activated. rgb(255,255,0)
    set flag 1 to 2
    reset timer 1
end if

if flag 1 = 2
and timer 1 >= 5000
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01
    comsatline >> Col. Blair: Commander, our mission here is to investigate a FTA distress call in the area. rgb(255,255,255)
    set flag 1 to 3
    reset timer 1
end if

if flag 1 = 3
and timer 1 >= 7000
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01
    comsatline >> Col. Blair: Before we can scout the area, we need to get a radar tower up for sufficient recon capabilities. rgb(255,255,255)
    set flag 1 to 4
    reset timer 1
end if

if flag 1 = 4
and timer 1 >= 10000
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01
    comsatline >> Col. Blair: I suggest you set up a base, we don't know what we're dealing with here. rgb(255,255,255)
    set flag 1 to 5
    reset timer 1
end if      
    
if flag 1 = 5
and timer 1 >= 7000
and soundchannel 1 is free
   addtask 1 1 defend_dropship pending primary scout the area to determine the source of the FTA distress call
   addtask 1 1 hold_sector pending secondary establish a base
   playglobalsound 1 99 computer011
   comsatline Computer: New task confirmed. rgb(255,255,0)
   highlighthud tasks
   set flag 1 to 6
   reset timer 1
end if

if flag 1 = 6
and playerhasunit 1 1 radartower
and soundchannel 1 is free
    createunit 1 4 epsilon vector(33275,65185,1578) 0 81 0 -1 
    setunitstate 1 4 1 20 0 1%
    playglobalsound 1 99 computer019
    
comsatline Computer: New radar signature detected. rgb(255,255,0)     
    radarbeacon 1 lastvector 10000
    set flag 1 to 7
    reset timer 1
end if

if flag 1 = 7
and playerhasunit 1 4 epsilon
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01
    comsatline >> Maj. Tyler: It's me Colonel. rgb(255,255,0)
    set flag 1 to 8
    reset timer 1
end if     

if flag 1 = 8
and timer 1 >= 5000
and soundchannel1 is free 
    playglobalsound 3 99 threebeeps01 
    comsatline >> Col. Blair: My God, it's Maj. Tyler! rgb(255,255,255)
    set flag 1 to 9
    reset timer 1
end if

if flag 1 = 9
and timer 1 >= 5000
and soundchannel 1 is free
    changetask 1 1 defend_dropship complete
    changetask 1 1 hold_sector complete
    playglobalsound 1 99 computer009
    
comsatline Computer: Objective complete. rgb(255,255,0)
    set flag 1 to 10
    reset timer 1
end if

if flag 1 = 10
and timer 1 >= 5000
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01  
    comsatline >> Col. Blair: How did you manage to escape the 8 Globex drop-ships? rgb(255,255,255)
    set flag 1 to 11
    reset timer 1
end if

if flag 1 = 11
and timer 1 >= 7000
and soundchannel 1 is free 
    playglobalsound 3 99 threebeeps01
    comsatline >> Maj. Tyler: I'm not sure Colonel, we somehow barely managed to escape with our lives. rgb(255,255,0)
    set flag 1 to 12
    reset timer 1
end if

if flag 1 = 12
and timer 1 >= 8000
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01
    comsatline >> Col. Blair: Commander, send over a Da Vinci to repair Maj. Tyler's drop-ship immediately! rgb(255,255,255)
    set flag 1 to 13
    reset timer 1
end if

if flag 1 = 13
and playerhasunit 1 1 davinci
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01
    comsatline >> Maj. Tyler: That won't be necessary Colonel. rgb(255,255,0)
    set flag 1 to 14
    reset timer 1
end if

if flag 1 = 14
and timer 1 >= 5000
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01
    comsatline >> Col. Blair: What do you mean!? rgb(255,255,255)
    set flag 1 to 15
    reset timer 1
end if

if flag 1 = 15
and timer 1 >= 3000
and soundchannel1 is free
    setunitstate 1 4 1 22 0 0%
    playglobalsound 3 99 threebeeps01
    comsatline >> Col. Blair: What the hell!? rgb(255,255,255)
    set flag 1 to 16
    reset timer 1
end if

if flag 1 = 16
and timer 1 >= 10000
and playerhasnounit 1 4 epsilon
and soundchannel1 is free
    createunit 1 4 omnithias vector(30362,57297,1920) 0 82 0 -1 0
    playglobalsound 1 99 computer019
    
comsatline Computer: New radar signature detected. rgb(255,255,0)
    radarbeacon 1 lastvector 10000
    set flag 1 to 17
    reset timer 1
end if  

if flag 1 = 17
and timer 1 >= 5000
and playerhasunit 1 4 omnithias
and soundchannel 1 is free
    setunitstate 1 4 1 20 0 -1
    playglobalsound 3 99 threebeeps01  
    comsatline >> Col. Blair: Tyler, you joined Globex!? Is this how you escaped!? rgb(255,255,255)
    set flag 1 to 18
    reset timer 1
end if

if flag 1 = 18
and timer 1 >= 6000
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01
    comsatline >> Maj. Tyler: Yes Colonel, and my first mission is to destroy...you! rgb(255,255,0)
    set flag 1 to 19
    reset timer 1
end if

if flag 1 = 19
and timer 1 >= 6000
and soundchannel 1 is free
    addtask 1 1 defend_dropship pending primary protect Epsilon at all costs
    addtask 1 1 hold_sector pending secondary defend the base at all costs
    playglobalsound 1 99 computer011
    comsatline Computer: New task confirmed. rgb(255,255,0)
    highlighthud tasks
    set flag 1 to 20
    reset timer 1
end if

if flag 1 = 20
and timer 1 >= 5000
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01  
    comsatline >> Col. Blair: Commander, if you have not, establish a base quickly while Tyler is establishing his. I do not think you have more than 3 minutes. rgb(255,255,255)
    set flag 1 to 21
    reset timer 1
end if

if flag 1 = 21
and timer 1 >= 12000
    createunit 1 4 milanos vector(27229,56205,715) 0 82 0 -1
    set flag 1 to 22
    reset timer 1
end if

if flag 1 = 22
and timer 1 >= 12000
    createunit 1 4 rotiris vector(32119,55283,731) 0 82 0 -1
    set flag 1 to 23
    reset timer 1
end if

if flag 1 = 23
and timer 1 >= 12000
    createunit 1 4 rotiris vector(32439,58607,559) 0 82 0 -1
    set flag 1 to 24
    reset timer 1
end if

if flag 1 = 24
and timer 1 >= 12000
    createunit 1 4 rotiris vector(30692,60271,583) 0 82 0 -1
    set flag 1 to 25
    reset timer 1
end if

if flag 1 = 25
and timer 1 >= 12000
    createunit 1 4 rotiris vector(28275,59531,642) 0 82 0 -1
    set flag 1 to 26
    reset timer 1
end if

if flag 1 = 26
and timer 1 >= 12000
    createunit 1 4 sios vector(30165,53533,675) 0 82 0 -1
    set flag 1 to 27
    reset timer 1
end if
    
if flag 1 = 27
and gamedifficulty = easy
and timer 1 >= 12000
    createunit 1 4 forsydon vector(33097,63088,735) 0 82 0 -1
    set flag 1 to 28
    reset timer 1
end if

if flag 1 = 27
and gamedifficulty = medium
and timer 1 >= 12000
    createunit 1 4 tryphon vector(33097,63088,735) 0 82 0 -1
    set flag 1 to 28
    reset timer 1
end if

if flag 1 = 27
and gamedifficulty = hard
and timer 1 >= 12000
    createunit 1 4 bowgerus vector(33097,63088,735) 0 82 0 -1
    set flag 1 to 28
    reset timer 1
end if

if flag 1 = 28
and gamedifficulty = easy
and timer 1 >= 12000
    createunit 1 4 forsydon vector(31204,62263,745) 0 82 0 -1
    set flag 1 to 29
    reset timer 1
end if

if flag 1 = 28
and gamedifficulty = medium
and timer 1 >= 12000
    createunit 1 4 tryphon vector(31204,62263,745) 0 82 0 -1
    set flag 1 to 29
    reset timer 1
end if

if flag 1 = 28
and gamedifficulty = hard
and timer 1 >= 12000
    createunit 1 4 bowgerus vector(31204,62263,745) 0 82 0 -1
    set flag 1 to 29
    reset timer 1
end if

if flag 1 = 29
and gamedifficulty = easy
and timer 1 >= 12000
    createunit 1 4 forsydon vector(31329,64446,763) 0 82 0 -1
    set flag 1 to 30
    reset timer 1
end if

if flag 1 = 29
and gamedifficulty = medium
and timer 1 >= 12000
    createunit 1 4 tryphon vector(31329,64446,763) 0 82 0 -1
    set flag 1 to 30
    reset timer 1
end if

if flag 1 = 29
and gamedifficulty = hard
and timer 1 >= 12000
    createunit 1 4 bowgerus vector(31329,64446,763) 0 82 0 -1
    set flag 1 to 30
    reset timer 1
end if

if flag 1 = 30
and gamedifficulty = easy
and timer 1 >= 12000
    createunit 1 4 forsydon vector(33305,65393,737) 0 82 0 -1
    set flag 1 to 31
    reset timer 1
end if

if flag 1 = 30
and gamedifficulty = medium
and timer 1 >= 12000
    createunit 1 4 tryphon vector(33305,65393,737) 0 82 0 -1
    set flag 1 to 31
    reset timer 1
end if

if flag 1 = 30
and gamedifficulty = hard
and timer 1 >= 12000
    createunit 1 4 bowgerus vector(33305,65393,737) 0 82 0 -1
    set flag 1 to 31
    reset timer 1
end if

if flag 1 = 31
and gamedifficulty = easy
and timer 1 >= 12000
    createunit 1 4 forsydon vector(37226,62627,681) 0 82 0 -1
    set flag 1 to 32
    reset timer 1
end if

if flag 1 = 31
and gamedifficulty = medium
and timer 1 >= 12000
    createunit 1 4 tryphon vector(37226,62627,681) 0 82 0 -1
    set flag 1 to 32
    reset timer 1
end if

if flag 1 = 31
and gamedifficulty = hard
and timer 1 >= 12000
    createunit 1 4 bowgerus vector(37226,62627,681) 0 82 0 -1
    set flag 1 to 32
    reset timer 1
end if

if flag 1 = 32
and gamedifficulty = easy
and timer 1 >= 12000
    createunit 1 4 forsydon vector(35343,61615,702) 0 82 0 -1
    set flag 1 to 33
    reset timer 1
end if

if flag 1 = 32
and gamedifficulty = medium
and timer 1 >= 12000
    createunit 1 4 tryphon vector(35343,61615,702) 0 82 0 -1
    set flag 1 to 33
    reset timer 1
end if

if flag 1 = 32
and gamedifficulty = hard
and timer 1 >= 12000
    createunit 1 4 bowgerus vector(35343,61615,702) 0 82 0 -1
    set flag 1 to 33
    reset timer 1
end if

if flag 1 = 33
and gamedifficulty = easy
and timer 1 >= 12000
     createunit 1 4 forsydon vector(36680,60017,676) 0 82 0 -1
    set flag 1 to 34
    reset timer 1
end if

if flag 1 = 33
and gamedifficulty = medium
and timer 1 >= 12000
     createunit 1 4 tryphon vector(36680,60017,676) 0 82 0 -1
    set flag 1 to 34
    reset timer 1
end if

if flag 1 = 33
and gamedifficulty = hard
and timer 1 >= 12000
     createunit 1 4 bowgerus vector(36680,60017,676) 0 82 0 -1
    set flag 1 to 34
    reset timer 1
end if

if flag 1 = 34
and gamedifficulty = easy
and timer 1 >= 12000
and soundchannel 1 is free
    createunit 1 4 forsydon vector(34919,59175,684) 0 82 0 -1
    playglobalsound 1 99 computer018
    
comsatline Computer: New threat detected. rgb(255,255,0) 
    radarbeacon 1 lastvector 10000
    set flag 1 to 35
    reset timer 1
end if

if flag 1 = 34
and gamedifficulty = medium
and timer 1 >= 12000
and soundchannel 1 is free
    createunit 1 4 tryphon vector(34919,59175,684) 0 82 0 -1
    playglobalsound 1 99 computer018
    
comsatline Computer: New threat detected. rgb(255,255,0) 
    radarbeacon 1 lastvector 10000
    set flag 1 to 35
    reset timer 1
end if

if flag 1 = 34
and gamedifficulty = hard
and timer 1 >= 12000
and soundchannel 1 is free
    createunit 1 4 bowgerus vector(34919,59175,684) 0 82 0 -1
    playglobalsound 1 99 computer018
    
comsatline Computer: New threat detected. rgb(255,255,0) 
    radarbeacon 1 lastvector 10000
    set flag 1 to 35
    reset timer 1
end if

if flag 1 = 35
and timer 1 >= 12000
and soundchannel 1 is free
    setai 1 4 1 100
    playercantarget 1 1 [1,4]
    playercantarget 1 4 [1,4]
    playglobalsound 3 99 threebeeps01
    comsatline >> Col. Blair: Here they come! rgb(255,255,255)
    set flag 1 to 36
    reset timer 1
    set flag 2 to 1
    reset timer 2
end if

if flag 1 = 36
and playerhasnounit 1 1 epsilon
    set flag 40 to 5
    reset timer 40
end if

if flag 1 = 36
and playerhasunit 1 1 epsilon
and playerhasnounit 1 4 omnithias
and playerhasnounit 1 4 forsydon
and playerhasnounit 1 4 tryphon
and playerhasnounit 1 4 bowgerus
and playerhasnounit 1 4 rotirus
and playerhasnounit 1 4 milanos
and playerhasnounit 1 4 sios
and soundchannel 1 is free
    playglobalsound 3 99 threebeeps01
    comsatline >> Col. Blair: I can't believe you actually did it! Great work commander, now lets go home. rgb(255,255,255)
    set flag 1 to 37
    reset timer 1 
end if

if flag 1 = 37
and timer 1 >= 7000
and soundchannel 1 is free     
    changetask 1 1 defend_dropship complete 
    changetask 1 1 hold_sector complete
    playglobalsound 1 99 computer016
    comsatline Computer: Mission successful. rgb(255,255,0)
    highlighthud tasks
end if


if flag 40 = 5
and playerhasnounit 1 1 epsilon
and soundchannel 1 is free
    playglobalsound 1 99 snd_blair_lost2
    comsatline >> Col. Blair: As far as I'm concerned, you were given a simple task: not let our forces be destroyed at the hands of the enemy. And you, blew it. I have nothing more to say to you at this point. You will hear the rest in my official report. Good day Commander. rgb(255,255,255)
    set flag 40 to 6
end if

if flag 40 = 6
and soundchannel 1 is free
    changetask 1 1 defend_dropship failed
    changetask 1 1 hold_sector failed
    playglobalsound 1 99 computer 015
    comsatline Computer: Mission Failed. rgb(255,255,0)
    highlighthud tasks
    comsatline ** Mission FAILED. Press Menu and Exit when ready. rgb(0,255,0)
end if

if flag 2 = 1
and timer 2 >= 30000
and playerhasunit 1 4 omnithias
and playerhasnounit 1 4 milanos
    createmodel player4 milanos vector(27229,56205,715) 0 82 0 -1
    set flag 2 to 2
    reset timer 2
    repeat this if
end if

if flag 2 = 1
and playerhasunit 1 4 omnithias
and playerhasunit 1 4 milanos
    set flag 2 to 2
    reset timer 2
    repeat this if
end if

if flag 2 = 2
and timer 2 >= 30000
and playerhasunit 1 4 omnithias
and playerhasnounit 1 4 rotiris
    createunit 1 4 rotiris vector(32119,55283,731) 0 82 0 -1
    createunit 1 4 rotiris vector(32439,58607,559) 0 82 0 -1
    createunit 1 4 rotiris vector(30692,60271,583) 0 82 0 -1
    createunit 1 4 rotiris vector(28275,59531,642) 0 82 0 -1
    set flag 2 to 3
    reset timer 2
    repeat this if
end if

if flag 2 = 2
and playerhasunit 1 4 omnithias
and playerhasunit 1 4 rotiris
    set flag 2 to 3
    reset timer 2
    repeat this if
end if

if flag 2 = 3
and timer 2 >= 30000
and playerhasunit 1 4 omnithias
and playerhasnounit 1 4 sios
    createunit 1 4 sios vector(30165,53533,675) 0 82 0 -1
    set flag 2 to 4
    reset timer 2
    repeat this if
end if

if flag 2 = 3
and playerhasunit 1 4 omnithias
and playerhasunit 1 4 sios
    set flag 2 to 4
    reset timer 2
    repeat this if
end if
    
if flag 2 = 4
and gamedifficulty = easy
and timer 2 >= 30000 
and playerhasunit 1 4 omnithias
and playerhasnounit 1 4 forsydon
    createunit 1 4 forsydon vector(33097,63088,735) 0 82 0 -1
    createunit 1 4 forsydon vector(31204,62263,745) 0 82 0 -1
    createunit 1 4 forsydon vector(31329,64446,763) 0 82 0 -1
    createunit 1 4 forsydon vector(33305,65393,737) 0 82 0 -1
    createunit 1 4 forsydon vector(37226,62627,681) 0 82 0 -1
    createunit 1 4 forsydon vector(35343,61615,702) 0 82 0 -1
    createunit 1 4 forsydon vector(36680,60017,676) 0 82 0 -1
    createunit 1 4 forsydon vector(34919,59175,684) 0 82 0 -1
    
comsatline Computer: New threat detected. rgb(255,255,0) 
    radarbeacon 1 lastvector 10000
    set flag 2 to 1
    reset timer 2
    repeat this if
end if

if flag 2 = 4
and gamedifficulty = medium
and timer 2 >= 30000 
and playerhasunit 1 4 omnithias
and playerhasnounit 1 4 tryphon
    createunit 1 4 tryphon vector(33097,63088,735) 0 82 0 -1
    createunit 1 4 tryphon vector(31204,62263,745) 0 82 0 -1
    createunit 1 4 tryphon vector(31329,64446,763) 0 82 0 -1
    createunit 1 4 tryphon vector(33305,65393,737) 0 82 0 -1
    createunit 1 4 tryphon vector(37226,62627,681) 0 82 0 -1
    createunit 1 4 tryphon vector(35343,61615,702) 0 82 0 -1
    createunit 1 4 tryphon vector(36680,60017,676) 0 82 0 -1
    createunit 1 4 tryphon vector(34919,59175,684) 0 82 0 -1
    
comsatline Computer: New threat detected. rgb(255,255,0) 
    radarbeacon 1 lastvector 10000
    set flag 2 to 1
    reset timer 2
    repeat this if
end if

if flag 2 = 4
and gamedifficulty = hard
and timer 2 >= 30000 
and playerhasunit 1 4 omnithias
and playerhasnounit 1 4 bowgerus
    createunit 1 4 bowgerus vector(33097,63088,735) 0 82 0 -1
    createunit 1 4 bowgerus vector(31204,62263,745) 0 82 0 -1
    createunit 1 4 bowgerus vector(31329,64446,763) 0 82 0 -1
    createunit 1 4 bowgerus vector(33305,65393,737) 0 82 0 -1
    createunit 1 4 bowgerus vector(37226,62627,681) 0 82 0 -1
    createunit 1 4 bowgerus vector(35343,61615,702) 0 82 0 -1
    createunit 1 4 bowgerus vector(36680,60017,676) 0 82 0 -1
    createunit 1 4 bowgerus vector(34919,59175,684) 0 82 0 -1
    
comsatline Computer: New threat detected. rgb(255,255,0) 
    radarbeacon 1 lastvector 10000
    set flag 2 to 1
    reset timer 2
    repeat this if
end if

if flag 2 = 4
and gamedifficulty = easy
and playerhasunit 1 4 omnithias
and playerhasunit 1 4 forsydon
    set flag 2 to 1
    reset timer 2
    repeat this if
end if

if flag 2 = 4
and gamedifficulty = medium
and playerhasunit 1 4 omnithias
and playerhasunit 1 4 tryphon
    set flag 2 to 1
    reset timer 2
    repeat this if
end if

if flag 2 = 4
and gamedifficulty = hard
and playerhasunit 1 4 omnithias
and playerhasunit 1 4 bowgerus
    set flag 2 to 1
    reset timer 2
    repeat this if
end if

**************** MUSIC ****************

if soundchannel 8 is free
    addmusic ql_track_6a
    addmusic ql_track_9a
    addmusic ql_track_10a
    addmusic ql_track_8c
    addmusic ql_track_6c
    addmusic ql_track_10b
    addmusic ql_track_9b
    addmusic ql_track_12b
    addmusic ql_track_11b
    addmusic ql_track_8a
    addmusic ql_track_6b
    addmusic ql_track_10c
    addmusic ql_track_12a
    addmusic ql_track_8b
    addmusic ql_track_11a
    pause between tracks 10000
end if

**************** END MUSIC ****************

**************** COMPUTER VOICES ****************

if timer 39 >= 0
    reset timer 39
endif

if timer 40 >= 0
    reset timer 40
endif

if unitstate 1 1 1 < 80
and timer 39 >= 180000
and playerpower < 100
and playerpower > 0
and soundchannel 1 is free
    playglobalsound 2 99 computer025
    comsatline Computer: Low Power. rgb(255,255,0)
    highlighthud power
    reset timer 39
    repeat this if
end if

if unitstate 1 1 1 < 80
and timer 40 >= 60000
and playerpower <= 0
and soundchannel 1 is free
    playglobalsound 2 99 computer026
    comsatline Computer: New generators required. rgb(255,255,0)
    highlighthud power
    reset timer 40
    repeat this if
end if

if unitstate 1 1 1 < 80
and unithealth 1 1 1 >= 95%
    set flag 40 to 0
    repeat this if
end if

if flag 40 = 0
and unitstate 1 1 1 < 80
and unithealth 1 1 1 < 95%
    set flag 40 to 1
    repeat this if
end if

if flag 40 = 1
and unitstate 1 1 1 < 80
and unithealth 1 1 1 < 95%
and soundchannel 1 is free
    playglobalsound 2 99 computer034
    comsatline Computer: Drop-ship under fire. rgb(255,255,0)
    set flag 40 to 2
    repeat this if
end if

if flag 40 = 2
and unitstate 1 1 1 < 80
and unithealth 1 1 1 < 70%
and soundchannel 1 is free
    playglobalsound 2 99 computer034
    comsatline Computer: Drop-ship under fire. rgb(255,255,0)
    set flag 40 to 3
    repeat this if
end if

if flag 40 = 3
and unitstate 1 1 1 < 80
and unithealth 1 1 1 < 50%
and soundchannel 1 is free
    playglobalsound 2 99 computer034
    comsatline Computer: Drop-ship under fire. rgb(255,255,0)
    set flag 40 to 4
    repeat this if
end if

if flag 40 = 4
and unitstate 1 1 1 < 80
and unithealth 1 1 1 < 30%
and soundchannel 1 is free
    playglobalsound 2 99 computer034
    comsatline Computer: Drop-ship under fire. rgb(255,255,0)
    set flag 40 to 5
    repeat this if
end if

**************** END COMPUTER VOICES ****************
